diff options
author | soloturn | 2020-10-07 18:26:23 +0200 |
---|---|---|
committer | soloturn | 2020-10-07 18:26:23 +0200 |
commit | 64bbf881bf66c798d4dd93197557cc249d651a1b (patch) | |
tree | a0cd59275f2338345b78181b63e6530194b2c03a | |
parent | 03cd0bbb9b9bcf1c60a64803b5052ab0efec93a4 (diff) | |
download | aur-64bbf881bf66c798d4dd93197557cc249d651a1b.tar.gz |
swift-llvm not necessary to run swift, so put in swift-llvm-git, create version out of tag
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 11 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = swift-llvm-git - pkgver = 10.0.1 - pkgrel = 3 + pkgver = swift.DEVELOPMENT.SNAPSHOT.2020.09.28.a.r106.ga3d312281b3d + pkgrel = 1 url = https://github.com/apple/swift-llvm arch = x86_64 license = custom:Apache 2.0 with LLVM Exception @@ -3,9 +3,9 @@ # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com> pkgname=('swift-llvm-git' 'swift-llvm-libs-git') -instprefix="usr/lib/swift-git" -pkgver=10.0.1 -pkgrel=3 +instprefix="usr/lib/swift-llvm-git" +pkgver=swift.DEVELOPMENT.SNAPSHOT.2020.09.28.a.r106.ga3d312281b3d +pkgrel=1 arch=('x86_64') url="https://github.com/apple/swift-llvm" license=('custom:Apache 2.0 with LLVM Exception') @@ -30,6 +30,12 @@ prepare() { rm test/tools/llvm-ar/error-opening-permission.test } +pkgver() { + cd "$srcdir/llvm-project" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + + build() { cd "$srcdir/llvm-project/llvm/build" |