diff options
author | Theo Tosini | 2015-12-06 18:10:48 -0500 |
---|---|---|
committer | Theo Tosini | 2015-12-06 18:10:48 -0500 |
commit | 91d4e4dd5961506ad05b03a40476ee087d6d788b (patch) | |
tree | 32d97d1a095f47742f5a9835698862360558acef | |
parent | 67311c8398f56d60f91bbecedb7441c2b817cfc5 (diff) | |
download | aur-91d4e4dd5961506ad05b03a40476ee087d6d788b.tar.gz |
Fix bugs
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 15 |
3 files changed, 20 insertions, 5 deletions
@@ -1,6 +1,8 @@ +# Generated by mksrcinfo v8 +# Sun Dec 6 22:56:33 UTC 2015 pkgbase = swift-language-git pkgdesc = The Swift programming language, taken directly from the Apple repository - pkgver = swift.2.2.SNAPSHOT.2015.12.01.b.r289.gc959ce2 + pkgver = swift.2.2.SNAPSHOT.2015.12.01.b.r537.g072a459 pkgrel = 1 url = https://swift.org/ arch = x86_64 @@ -15,6 +17,7 @@ pkgbase = swift-language-git depends = swig depends = python2 depends = libbsd + depends = ncurses provides = swift-language conflicts = swift-language-bin source = git+https://github.com/apple/swift diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..db26ec24eb20 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/pkg/ +/src/ +*.tar.xz +*.tar.xz.sig +.DS_Store @@ -1,13 +1,13 @@ # Maintainer: Theo Tosini <theo.tosini@theoduino.me> pkgname=swift-language-git -pkgver=swift.2.2.SNAPSHOT.2015.12.01.b.r289.gc959ce2 +pkgver=swift.2.2.SNAPSHOT.2015.12.01.b.r537.g072a459 pkgrel=1 pkgdesc="The Swift programming language, taken directly from the Apple repository" arch=('x86_64') url="https://swift.org/" license=('apache2') groups=() -depends=('icu' 'libedit' 'libxml2' 'swig' 'python2' 'libbsd') +depends=('icu' 'libedit' 'libxml2' 'swig' 'python2' 'libbsd' 'ncurses' ) makedepends=('git' 'ninja' 'cmake' 'clang') provides=('swift-language') conflicts=('swift-language-bin') @@ -43,9 +43,16 @@ pkgver() { build() { cd "$srcdir/swift" # Patch to use python2 - find . -type f -print0 | xargs -0 sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/env python2/g' + find "$srcdir" -type f -print0 | xargs -0 sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/env python2/g' + # Fix /usr/include error + find "$srcdir" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g' # Release build - LDFLAGS='-ldl -lpthread' python2 utils/build-script -p -R + LDFLAGS='-ldl -lpthread' python2 utils/build-script -b -p --foundation --xctest -R +} + +check() { + cd "$srcdir/swift" + python2 utils/build-script -t } package() { |