diff options
author | Ashley Towns | 2015-12-04 15:12:06 +1100 |
---|---|---|
committer | Ashley Towns | 2015-12-04 15:12:06 +1100 |
commit | 1c623ac1c49144b2ad179fa70e56ab576cfaac69 (patch) | |
tree | 1c3704df101607df2451b369a7b96f616c38e41a /PKGBUILD | |
download | aur-1c623ac1c49144b2ad179fa70e56ab576cfaac69.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..45654053513e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Ashley Towns <mail(at)ashleytowns(dot)id(dot)au> + +pkgname=swift-language-bin +pkgver=2.2.2015.12.01 +pkgrel=1 +pkgdesc="The swift programming language" +arch=('x86_64') +url="https://swift.org" +license=('custom') +depends=('icu55' 'ncurses5-compat-libs' 'libedit' 'python2' 'readline' 'libutil-linux' 'libbsd') +conflicts=('lldb') +options=('!strip') + +_version=2.2 +_snapshot=SNAPSHOT-2015-12-01-b + +source=("https://swift.org/builds/ubuntu1510/swift-${_version}-${_snapshot}/swift-${_version}-${_snapshot}-ubuntu15.10.tar.gz") +sha256sums=('04d62c13a50bb6c3003676fe7521c9e28bc7bc38e42524330595e80a6df24806') + +package() { + tar -C "$pkgdir" -xf "swift-${_version}"*.tar.gz --strip 1 + + # Permission fix + find "${pkgdir}" -type d -exec chmod 755 {} + + + # Remove all unnecessary stuff + rm -rf "${pkgdir}/usr/local" + + # Yuck! patching libedit SONAME + find "${pkgdir}/usr/bin" -type f -exec sed -i 's/libedit\.so\.2/libedit\.so\.0/g' {} \; + find "${pkgdir}/usr/lib" -type f -exec sed -i 's/libedit\.so\.2/libedit\.so\.0/g' {} \; + + # Move license + install -dm755 ${pkgdir}/usr/share/licenses/${pkgname} + mv ${pkgdir}/usr/share/swift/LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname} +} |