diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-25 03:14:54 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-25 23:58:00 +0200 |
commit | 7bd21b564bf2d6e9f1604393fb019cd11dfb1bbd (patch) | |
tree | 36e1b06b022c574540f7a3d5fad83a7cbedac026 /testing/crystal | |
parent | e0c7bc6d2a6316df8b1023581712314ac2ef82c1 (diff) | |
download | aports-7bd21b564bf2d6e9f1604393fb019cd11dfb1bbd.tar.bz2 aports-7bd21b564bf2d6e9f1604393fb019cd11dfb1bbd.tar.xz |
testing/crystal: minor changes in abuild
Diffstat (limited to 'testing/crystal')
-rw-r--r-- | testing/crystal/APKBUILD | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/testing/crystal/APKBUILD b/testing/crystal/APKBUILD index 0ca756427d..4f15afa31a 100644 --- a/testing/crystal/APKBUILD +++ b/testing/crystal/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Jakub Jirutka <jakub@jirutka.cz> -# TODO: Fix SSL bindings for LibreSSL (it's probably broken). +# TODO: Fix SSL bindings for LibreSSL (https://github.com/crystal-lang/crystal/issues/4676) pkgname=crystal pkgver=0.24.2 pkgrel=1 @@ -36,7 +36,7 @@ export CRYSTAL_CACHE_DIR="$srcdir/.cache" # we can also use prebuilt binary from upstream if needed. snapshot() { local binary="$builddir/.build/crystal" - local tarname="$pkgname-$pkgver-$CHOST" + local tarname="$pkgname-$pkgver-$CTARGET" if [ ! -f "$binary" ] || ! file "$binary" | grep -qw 'statically linked'; then msg "Building statically linked crystal..." @@ -64,9 +64,7 @@ prepare() { release = 1 threads = ${JOBS:-2} verbose = 1 - EXTRA_FLAGS = --target $CTARGET ${BUILD_STATIC:+"--link-flags=-no-pie"} - CFLAGS = $CFLAGS - CXXFLAGS = $CXXFLAGS + EXTRA_FLAGS = --verbose --target $CTARGET ${BUILD_STATIC:+"--link-flags=-no-pie"} LLVM_CONFIG = /usr/lib/llvm$_llvmver/bin/llvm-config EOF } @@ -76,7 +74,7 @@ build() { make crystal \ CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \ - PATH="$srcdir/$pkgname-$_bootver-$CHOST/bin:$PATH" \ + PATH="$srcdir/$pkgname-$_bootver-$CBUILD/bin:$PATH" \ static=${BUILD_STATIC:-} } |