summarylogtreecommitdiffstats
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
parente9f155ba069f75484dfc65d34f4c3059d3c0934a (diff)
downloadaur-93ce1fee39362be9b48099bbc7e1f9bfafc39d88.tar.gz
Rely on clang 3.9 for linker.
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD26
2 files changed, 23 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7f79d2d7843..494656053ae 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,13 @@
-# Generated by mksrcinfo v8
-# Thu Mar 10 19:41:09 UTC 2016
pkgbase = cloudabi-clang
pkgdesc = Symlinks for the clang toolchain for CloudABI.
pkgver = 1
- pkgrel = 2
+ pkgrel = 3
url = http://clang.llvm.org/
arch = any
license = custom:LLVM
- depends = clang>=3.7
- depends = cloudabi-binutils
+ depends = clang>=3.9
+ conflicts = cloudabi-binutils
+ replaces = cloudabi-binutils
pkgname = cloudabi-clang
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
}