Created
August 6, 2018 21:54
-
-
Save ahti/2068d54d3d2ee282dfa35364cda17440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p=$(cd ../swift; pwd) | |
pkgname=swift-git | |
pkgver=$(cd $p/swift; git describe | tr - _) | |
pkgrel=1 | |
pkgdesc="Swift git builds." | |
arch=('x86_64') | |
url="https://swift.org" | |
license=('apache') | |
depends=('python2' 'python2-six' 'libutil-linux' 'icu' 'libbsd' 'libedit' 'libxml2' 'sqlite' 'ncurses' 'libblocksruntime') | |
makedepends=() | |
conflicts=('lldb' 'swift-language-git') | |
options=('!strip') | |
provides=('swift-language' 'lldb') | |
replaces=('swift-language-bin') | |
source=() | |
sha256sums=() | |
subdir=master | |
package() { | |
cd $p/swift | |
./utils/build-script \ | |
--extra-cmake-options="-DPython_ADDITIONAL_VERSIONS=2.7,-DLLDB_USE_SYSTEM_SIX:BOOL=TRUE" \ | |
--assertions --release --build-ninja --reconfigure \ | |
--build-subdir=$subdir \ | |
--build-swift-static-stdlib --build-swift-static-sdk-overlay \ | |
--llbuild --swiftpm --xctest --lldb --foundation --libdispatch \ | |
--install-destdir="$pkgdir" --install-prefix=/usr \ | |
--install-swift --install-llbuild --install-swiftpm --install-xctest --install-lldb --install-foundation --install-libdispatch \ | |
--swift-install-components="autolink-driver;compiler;clang-builtin-headers;stdlib;swift-remote-mirror;sdk-overlay;license;sourcekit-inproc" | |
rmdir "$pkgdir/usr/local/include" | |
rmdir "$pkgdir/usr/local" | |
rm $pkgdir/usr/lib/python2.7/site-packages/six.py* | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment