summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaarten de Vries2016-11-26 15:58:15 +0100
committerMaarten de Vries2017-05-25 14:50:52 +0200
commit93ce1fee39362be9b48099bbc7e1f9bfafc39d88 (patch)
tree0e2a394a971d64ba0066941e0b640dde92a30cb4 /PKGBUILD
parente9f155ba069f75484dfc65d34f4c3059d3c0934a (diff)
downloadaur-93ce1fee39362be9b48099bbc7e1f9bfafc39d88.tar.gz
Rely on clang 3.9 for linker.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 19 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b24be7b4396..3c4b5ef2d1f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,20 +4,32 @@
pkgname=cloudabi-clang
pkgver=1
-pkgrel=2
+pkgrel=3
pkgdesc="Symlinks for the clang toolchain for CloudABI."
url='http://clang.llvm.org/'
arch=('any')
depends=(
- 'clang>=3.7'
- 'cloudabi-binutils'
+ 'clang>=3.9'
+ 'lld>=3.9'
)
+replaces=(cloudabi-binutils)
+conflicts=(cloudabi-binutils)
+provides=(cloudabi-binutils)
+
license=(custom:LLVM)
+_make_links() {
+ local arch="$1"
+ ln -s clang "$pkgdir/usr/bin/$arch-unknown-cloudabi-cc"
+ ln -s clang "$pkgdir/usr/bin/$arch-unknown-cloudabi-c++"
+ ln -s lld "$pkgdir/usr/bin/$arch-unknown-cloudabi-ld"
+}
+
package() {
install -d "$pkgdir/usr/bin"
- ln -s clang "$pkgdir/usr/bin/x86_64-unknown-cloudabi-cc"
- ln -s clang "$pkgdir/usr/bin/x86_64-unknown-cloudabi-c++"
- ln -s clang "$pkgdir/usr/bin/aarch64-unknown-cloudabi-cc"
- ln -s clang "$pkgdir/usr/bin/aarch64-unknown-cloudabi-c++"
+
+ _make_links x86_64
+ _make_links i686
+ _make_links aarch64
+ _make_links armv6
}