aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2019-08-22 17:15:33 +0000
committerMilan P. Stanić <mps@arvanta.net>2019-08-22 20:17:57 +0200
commit284dccd1b95258f680a1aa3f9744f69646e033d1 (patch)
treea4546763256444a9beb29e03c9600b326fea335f
parentb07864e63065274e8222394ae04d068371d7a36a (diff)
downloadaports-284dccd1b95258f680a1aa3f9744f69646e033d1.tar.bz2
aports-284dccd1b95258f680a1aa3f9744f69646e033d1.tar.xz
community/crystal: build with llvm5 to enable on aarch64
use llvm5 instead of llvm8 because build on aarch64 does not work with llvm8, although build with llvm8 work on x86_64 re-enable build on aarch64
-rw-r--r--community/crystal/APKBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/community/crystal/APKBUILD b/community/crystal/APKBUILD
index 9a1f03f8e7..30690e5752 100644
--- a/community/crystal/APKBUILD
+++ b/community/crystal/APKBUILD
@@ -3,12 +3,12 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=crystal
pkgver=0.30.1
-pkgrel=0
+pkgrel=1
_bootver=0.29.0
-_llvmver=8
+_llvmver=5
pkgdesc="The Crystal Programming Language"
url="https://crystal-lang.org/"
-arch="x86_64" # disable aarch64 till fixed (upstream ?)
+arch="x86_64 aarch64"
license="Apache-2.0"
depends="gc-dev libatomic_ops libevent-dev libevent-static gcc gmp-dev pcre-dev"
checkdepends="openssl-dev libxml2-dev readline-dev tzdata yaml-dev zlib-dev"
@@ -75,6 +75,7 @@ build() {
make crystal \
CRYSTAL_CONFIG_PATH="lib:$_shardsdir:$_coredir" \
PATH="$srcdir/$pkgname-$_bootver-$CBUILD/bin:$PATH" \
+ LLVM_CONFIG="llvm5-config" \
release=1 \
static=${BUILD_STATIC:-}
}
@@ -82,7 +83,8 @@ build() {
check() {
cd "$builddir"
- make spec PATH=".build:$PATH" SPEC_FLAGS="--no-color --verbose"
+ make spec LLVM_CONFIG="llvm5-config" PATH=".build:$PATH" \
+ SPEC_FLAGS="--no-color --verbose"
}
package() {