Browse Source

fix

tags/v0.0.60
Peter Vivell 6 years ago
parent
commit
465f252198
1 changed files with 1 additions and 9 deletions
  1. 1
    9
      drone.yml

+ 1
- 9
drone.yml View File

43
       - BUILD_DEPS=libhidapi-dev libssl-dev
43
       - BUILD_DEPS=libhidapi-dev libssl-dev
44
       - BUILD_ARCH=i386 amd64 armhf armel # amd64 arm64 armel armhf i386 mips mips64el mipsel powerpc ppc64el s390x
44
       - BUILD_ARCH=i386 amd64 armhf armel # amd64 arm64 armel armhf i386 mips mips64el mipsel powerpc ppc64el s390x
45
 
45
 
46
-
47
-
48
-
49
 - name: build
46
 - name: build
50
   image: reg.unino.de/develop/debian-${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}:latest
47
   image: reg.unino.de/develop/debian-${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}:latest
51
   # https://readme.drone.io/user-guide/pipeline/
48
   # https://readme.drone.io/user-guide/pipeline/
58
     # https://wiki.debian.org/CrossCompiling#Building_with_dpkg-buildpackage
55
     # https://wiki.debian.org/CrossCompiling#Building_with_dpkg-buildpackage
59
     BUILD_ARCH: amd64 armhf # amd64 arm64 armel armhf i386 mips mips64el mipsel powerpc ppc64el s390x
56
     BUILD_ARCH: amd64 armhf # amd64 arm64 armel armhf i386 mips mips64el mipsel powerpc ppc64el s390x
60
   commands:
57
   commands:
61
-
62
-
63
     # DEB_BUILD_ARCH DEB_HOST_ARCH TARGET=armhf
58
     # DEB_BUILD_ARCH DEB_HOST_ARCH TARGET=armhf
64
-
65
     - PKG_NAME="${DRONE_REPO_NAME}" &&
59
     - PKG_NAME="${DRONE_REPO_NAME}" &&
66
       PKG_VERSION="$(git describe --always)" &&
60
       PKG_VERSION="$(git describe --always)" &&
67
       PKG_SRC_ROOT="$(pwd)" &&
61
       PKG_SRC_ROOT="$(pwd)" &&
82
         mkdir -p "$${PKG_BUILD_DIR}" &&
76
         mkdir -p "$${PKG_BUILD_DIR}" &&
83
         tar -xf "$${PKG_RELEASE_DIR}/$${PKG_DEB_ARCHIVE}" -C "$${PKG_BUILD_DIR}" --strip 1 &&
77
         tar -xf "$${PKG_RELEASE_DIR}/$${PKG_DEB_ARCHIVE}" -C "$${PKG_BUILD_DIR}" --strip 1 &&
84
         cd "$${PKG_BUILD_DIR}" &&
78
         cd "$${PKG_BUILD_DIR}" &&
85
-        export MAKEFLAGS="$${MAKEFLAGS}" &&
86
         case $${PKG_ARCH} in 
79
         case $${PKG_ARCH} in 
87
           amd64) PREFIX="" ;;
80
           amd64) PREFIX="" ;;
88
           armhf) PREFIX="arm-linux-gnueabihf-" ;;
81
           armhf) PREFIX="arm-linux-gnueabihf-" ;;
90
         export CC="$${PREFIX}gcc" &&
83
         export CC="$${PREFIX}gcc" &&
91
         export LD="$${PREFIX}ld" &&
84
         export LD="$${PREFIX}ld" &&
92
         export STRIP="$${PREFIX}strip" &&
85
         export STRIP="$${PREFIX}strip" &&
93
-        echo $${CC} &&
86
+        export MAKEFLAGS="$${MAKEFLAGS}" &&
94
         make &&
87
         make &&
95
         tar --exclude='./.*'
88
         tar --exclude='./.*'
96
           --transform "s/\./$${PKG_RELEASE_ARCHIVE_ROOT}/"
89
           --transform "s/\./$${PKG_RELEASE_ARCHIVE_ROOT}/"
102
       find "$${PKG_RELEASE_DIR}" -type f -exec md5sum '{}' \;
95
       find "$${PKG_RELEASE_DIR}" -type f -exec md5sum '{}' \;
103
 
96
 
104
 
97
 
105
-
106
 #        tar --exclude='./.*'
98
 #        tar --exclude='./.*'
107
 #          --transform "s/$${PKG_DIST_DIR}/$${PKG_RELEASE_ARCHIVE_ROOT}/"
99
 #          --transform "s/$${PKG_DIST_DIR}/$${PKG_RELEASE_ARCHIVE_ROOT}/"
108
 #          -cJvf "$${PKG_RELEASE_DIR}/$${PKG_RELEASE_ARCHIVE}" "${PKG_DIST_DIR}" &&
100
 #          -cJvf "$${PKG_RELEASE_DIR}/$${PKG_RELEASE_ARCHIVE}" "${PKG_DIST_DIR}" &&

Loading…
Cancel
Save