mirror of
https://github.com/eosswedenorg/eosio-unpack-abi
synced 2026-06-16 05:04:57 +02:00
scripts/build_deb.sh: Use GOARCH for PACKAGE_ARCH if defined.
This commit is contained in:
parent
3224d955e4
commit
d1071f1f16
1 changed files with 6 additions and 1 deletions
|
|
@ -3,11 +3,16 @@
|
|||
DEFAULT_BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
BASE_DIR=${PACKAGE_BASE_DIR:-${DEFAULT_BASE_DIR}}
|
||||
|
||||
PACKAGE_ARCH=$(dpkg --print-architecture)
|
||||
PACKAGE_ARCH=${GOARCH:-$(dpkg --print-architecture)}
|
||||
# Replace GOARCH's 386 to i386
|
||||
if [ "${PACKAGE_ARCH}" == "386" ]; then
|
||||
PACKAGE_ARCH="i386"
|
||||
fi
|
||||
PACKAGE_TMPDIR=${PACKAGE_TMPDIR:-debpkg}
|
||||
PACKAGE_RELEASE=${PACKAGE_RELEASE:-1}
|
||||
PACKAGE_FULLNAME="${PACKAGE_NAME}_${PACKAGE_VERSION}-${PACKAGE_RELEASE}_${PACKAGE_ARCH}"
|
||||
|
||||
|
||||
rm -fr ${BASE_DIR}/${PACKAGE_TMPDIR}
|
||||
|
||||
# Create debian files.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue