summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorskydrome2018-01-30 05:25:32 -0500
committerskydrome2018-01-30 05:25:32 -0500
commit15a4a21f45c8bf9256e0667c46521e186ce7e6a2 (patch)
tree910efb136ec42c34586d7aa420cb47841dace827
parentd993cb6adfe03a977689aa4205859569403325f9 (diff)
downloadaur-15a4a21f45c8bf9256e0667c46521e186ce7e6a2.tar.gz
fix arm
-rw-r--r--PKGBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f2992dbf4c01..730ea411784f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,8 +29,10 @@ build() {
source /etc/profile.d/jre.sh
export JAVA_HOME="${JAVA_HOME:-/usr/lib/jvm/default}"
- [[ "$CARCH" = @(x86_64|aarch64) ]] && _bits=64 || _bits=32
- ant -Dbits=${_bits} -Dos.arch="$(uname -m)" jar compile-c-unix
+ [[ "$CARCH" = @(x86_64|aarch64) ]] && _bits=64 || _bits=32
+ [[ "$CARCH" = arm* ]] && _arch=armhf || _arch=x86
+
+ ant -Dbits="$_bits" -Ddist.arch="$_arch" jar compile-c-unix
}
package() {