|
|
@@ -55,6 +55,7 @@ steps:
|
|
55
|
55
|
depends_on: [ clone, prepare ]
|
|
56
|
56
|
environment:
|
|
57
|
57
|
MAKEFLAGS: -j 1
|
|
|
58
|
+ # https://wiki.debian.org/CrossCompiling#Building_with_dpkg-buildpackage
|
|
58
|
59
|
BUILD_ARCH: amd64 armhf # amd64 arm64 armel armhf i386 mips mips64el mipsel powerpc ppc64el s390x
|
|
59
|
60
|
commands:
|
|
60
|
61
|
|
|
|
@@ -68,12 +69,10 @@ steps:
|
|
68
|
69
|
tar --exclude='./.*' --exclude='debian' --exclude="$${PKG_RELEASE_DIR}"
|
|
69
|
70
|
--exclude="$${PKG_DEB_ARCHIVE}"
|
|
70
|
71
|
--transform "s/\./$${PKG_DEB_ARCHIVE_ROOT}/"
|
|
71
|
|
- -cJvf "$${PKG_DEB_ARCHIVE}" .
|
|
72
|
|
-
|
|
73
|
|
- # https://wiki.debian.org/CrossCompiling#Building_with_dpkg-buildpackage
|
|
74
|
|
- - PKG_BUILDHOST_ARCH="amd64" &&
|
|
|
72
|
+ -cJvf "$${PKG_DEB_ARCHIVE}" . &&
|
|
|
73
|
+ PKG_BUILDHOST_ARCH="amd64" &&
|
|
75
|
74
|
PKG_SRC_ROOT="$(pwd)" &&
|
|
76
|
|
- for PKG_ARCH in $${BUILD_ARCH} ; do cd "$${PKG_SRC_ROOT}" &&
|
|
|
75
|
+ for PKG_ARCH in $${BUILD_ARCH} ; do cd "$${PKG_SRC_ROOT}" && echo "Building for $${ARCH}" &&
|
|
77
|
76
|
PKG_RELEASE_ARCHIVE="$${PKG_NAME}_$${PKG_VERSION}_$${PKG_ARCH}.tar.xz" &&
|
|
78
|
77
|
PKG_RELEASE_ARCHIVE_ROOT="$${PKG_NAME}-$${PKG_VERSION}" &&
|
|
79
|
78
|
PKG_BUILD_DIR="build/$${PKG_ARCH}/$${PKG_ARCHIVE_ROOT}" &&
|