Commit b8d47cee authored by Milan P. Stanić's avatar Milan P. Stanić

community/crystal: add fix to build with changes in llvm5

parent 84574037
......@@ -3,7 +3,7 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=crystal
pkgver=0.28.0
pkgrel=0
pkgrel=1
_bootver=0.27.2
_llvmver=5
pkgdesc="The Crystal Programming Language"
......@@ -22,6 +22,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/crystal-lang/$pkgname/archiv
https://dev.alpinelinux.org/archive/crystal/crystal-$_bootver-aarch64-alpine-linux-musl.tar.gz
disable-specs-using-GB2312-encoding.patch
fix-spec-std-kernel-spec.cr.patch
fix-llmv5-version.patch
"
builddir="$srcdir/$pkgname-$pkgver"
......@@ -122,4 +123,5 @@ sha512sums="ea0d0938fa90db1b8e395e1daf777c36be5366046c1df7764409e14cf490b4e5f502
19b733fcb2508f2f708b12daf47cb6919085602fae396561a72ec5ec4cec1a4e008aa951385b3fe51f27ff7b2b4fc0afd4d0ddae41467294b7a7b335c246fe47 crystal-0.27.2-x86_64-alpine-linux-musl.tar.gz
449399d213896b15cea818ae2ae649a0b7194aab9daab105a876145974e6b61868a8da0c8a607614e931969943f09d640796c6f71f1d1ce8bf47973dccaf6447 crystal-0.27.2-aarch64-alpine-linux-musl.tar.gz
269976fbc990dde075769e651c9fac6e7e0b39681e55cbd067c6d2a790c58a096bdc9981f62ae69b5217623025ba768daa63bc5316bd8ddd18192d88839aedcb disable-specs-using-GB2312-encoding.patch
ee1d81b40a9b15b2abfecbc61a1ef830700cc5613f9d2626722e8393633ed5d40329ac1fc2813b08b66c689876d3bd8a9f949a22beeda572ea3d4753f58417a8 fix-spec-std-kernel-spec.cr.patch"
ee1d81b40a9b15b2abfecbc61a1ef830700cc5613f9d2626722e8393633ed5d40329ac1fc2813b08b66c689876d3bd8a9f949a22beeda572ea3d4753f58417a8 fix-spec-std-kernel-spec.cr.patch
9ea84621c4348e9ca746b043186b99b59dbbe7ef3530b5b51394c799debe1db5df20c06bc647e97741ae18010344bf10be2bb3db25071b03c04a066124ec00d4 fix-llmv5-version.patch"
--- a/src/llvm/lib_llvm.cr
+++ b/src/llvm/lib_llvm.cr
@@ -5,7 +5,7 @@
command -v llvm-config-6.0 || command -v llvm-config60 || \
(command -v llvm-config > /dev/null && (case "$(llvm-config --version)" in 6.0*) command -v llvm-config;; *) false;; esac)) || \
command -v llvm-config-5.0 || command -v llvm-config50 || \
- (command -v llvm-config > /dev/null && (case "$(llvm-config --version)" in 5.0*) command -v llvm-config;; *) false;; esac)) || \
+ (command -v llvm5-config > /dev/null && (case "$(llvm5-config --version)" in 5.0*) command -v llvm5-config;; *) false;; esac)) || \
command -v llvm-config-4.0 || command -v llvm-config40 || \
(command -v llvm-config > /dev/null && (case "$(llvm-config --version)" in 4.0*) command -v llvm-config;; *) false;; esac)) || \
command -v llvm-config-3.9 || command -v llvm-config39 || \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment