diff options
author | xiota | 2023-12-28 23:42:05 -0800 |
---|---|---|
committer | xiota | 2023-12-28 23:43:22 -0800 |
commit | aa0da48008913e3b9e43e36e12a5346c3ac02942 (patch) | |
tree | bf5d8c65d5f517f20574b554bf6a581496d1d11e | |
parent | 9aedac65545f4bb499daea7cbfb6b1fc00261680 (diff) | |
download | aur-aa0da48008913e3b9e43e36e12a5346c3ac02942.tar.gz |
rename git folders, symlink to expected location
-rw-r--r-- | .SRCINFO | 128 | ||||
-rw-r--r-- | PKGBUILD | 240 |
2 files changed, 207 insertions, 161 deletions
@@ -1,13 +1,15 @@ pkgbase = swift-language-git pkgdesc = The Swift programming language, taken directly from the Apple repository - pkgver = 2023.10.30a.r490.gb15065675 + pkgver = 2023.12.21a.r6.gf08f86c7161 pkgrel = 1 url = https://swift.org/ arch = x86_64 - license = apache2 + license = Apache-2.0 makedepends = clang makedepends = cmake makedepends = git + makedepends = lld + makedepends = llvm makedepends = ninja makedepends = patch makedepends = python-six @@ -19,84 +21,86 @@ pkgbase = swift-language-git depends = python depends = libbsd depends = ncurses + provides = swift-language + conflicts = swift-language options = !strip source = git+https://github.com/apple/swift#branch=main - source = apple-cmark::git+https://github.com/apple/swift-cmark#branch=main - source = llbuild::git+https://github.com/apple/swift-llbuild#branch=main + source = 0001-arch-aur-patches.patch + source = 0002-stdint.patch + source = apple-indexstore-db::git+https://github.com/apple/indexstore-db#branch=main + source = apple-llvm-project::git+https://github.com/apple/llvm-project#branch=stable/20220421 + source = apple-sourcekit-lsp::git+https://github.com/apple/sourcekit-lsp#branch=main source = swift-argument-parser::git+https://github.com/apple/swift-argument-parser#commit=1.2.3 + source = swift-asn1::git+https://github.com/apple/swift-asn1#commit=1.0.0 source = swift-atomics::git+https://github.com/apple/swift-atomics#commit=1.0.2 + source = swift-certificates::git+https://github.com/apple/swift-certificates#commit=0.6.0 + source = swift-cmark::git+https://github.com/apple/swift-cmark#branch=gfm + source = swift-cmark::git+https://github.com/apple/swift-cmark#branch=main source = swift-collections::git+https://github.com/apple/swift-collections#commit=1.0.1 - source = swift-crypto::git+https://github.com/apple/swift-crypto#commit=2.5.0 - source = swift-driver::git+https://github.com/apple/swift-driver#branch=main - source = swift-numerics::git+https://github.com/apple/swift-numerics#commit=1.0.1 - source = swift-tools-support-core::git+https://github.com/apple/swift-tools-support-core#branch=main - source = swiftpm::git+https://github.com/apple/swift-package-manager#branch=main - source = swift-syntax::git+https://github.com/apple/swift-syntax#branch=main - source = swift-system::git+https://github.com/apple/swift-system#commit=1.1.1 - source = swift-stress-tester::git+https://github.com/apple/swift-stress-tester#branch=main - source = swift-corelibs-xctest::git+https://github.com/apple/swift-corelibs-xctest#branch=main source = swift-corelibs-foundation::git+https://github.com/apple/swift-corelibs-foundation#branch=main source = swift-corelibs-libdispatch::git+https://github.com/apple/swift-corelibs-libdispatch#branch=main - source = swift-integration-tests::git+https://github.com/apple/swift-integration-tests#branch=main - source = apple-llvm-project::git+https://github.com/apple/llvm-project#branch=stable/20220421 - source = swift-llvm-bindings::git+https://github.com/apple/swift-llvm-bindings#branch=stable/20220421 - source = 0001-arch-aur-patches.patch - source = indexstore-db::git+https://github.com/apple/indexstore-db#branch=main - source = yams::git+https://github.com/jpsim/Yams#commit=5.0.1 - source = sourcekit-lsp::git+https://github.com/apple/sourcekit-lsp#branch=main - source = swift-asn1::git+https://github.com/apple/swift-asn1#commit=1.0.0 - source = swift-certificates::git+https://github.com/apple/swift-certificates#commit=0.6.0 - source = swift-cmark::git+https://github.com/apple/swift-cmark#branch=gfm + source = swift-corelibs-xctest::git+https://github.com/apple/swift-corelibs-xctest#branch=main + source = swift-crypto::git+https://github.com/apple/swift-crypto#commit=2.5.0 source = swift-docc::git+https://github.com/apple/swift-docc#branch=main source = swift-docc-render-artifact::git+https://github.com/apple/swift-docc-render-artifact#branch=main source = swift-docc-symbolkit::git+https://github.com/apple/swift-docc-symbolkit#branch=main + source = swift-driver::git+https://github.com/apple/swift-driver#branch=main source = swift-experimental-string-processing::git+https://github.com/apple/swift-experimental-string-processing#branch=main source = swift-format::git+https://github.com/apple/swift-format#branch=main source = swift-installer-scripts::git+https://github.com/apple/swift-installer-scripts#branch=main + source = swift-integration-tests::git+https://github.com/apple/swift-integration-tests#branch=main + source = swift-llbuild::git+https://github.com/apple/swift-llbuild#branch=main + source = swift-llvm-bindings::git+https://github.com/apple/swift-llvm-bindings#branch=stable/20220421 source = swift-lmdb::git+https://github.com/apple/swift-lmdb#branch=main source = swift-markdown::git+https://github.com/apple/swift-markdown#branch=main source = swift-nio::git+https://github.com/apple/swift-nio#commit=2.31.2 source = swift-nio-ssl::git+https://github.com/apple/swift-nio-ssl#commit=2.15.0 + source = swift-numerics::git+https://github.com/apple/swift-numerics#commit=1.0.1 + source = swift-package-manager::git+https://github.com/apple/swift-package-manager#branch=main + source = swift-stress-tester::git+https://github.com/apple/swift-stress-tester#branch=main + source = swift-syntax::git+https://github.com/apple/swift-syntax#branch=main + source = swift-system::git+https://github.com/apple/swift-system#commit=1.1.1 source = swift-tools-support-core::git+https://github.com/apple/swift-tools-support-core#branch=main source = swift-xcode-playground-support::git+https://github.com/apple/swift-xcode-playground-support#branch=main - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP - md5sums = SKIP + source = yams::git+https://github.com/jpsim/Yams#commit=5.0.1 + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP pkgname = swift-language-git @@ -4,97 +4,103 @@ # Contributor: Gábor Sebestyén <segabor@gmail.com> # Contributor: Andrew Sun <adsun701@gmail.com> -pkgname=swift-language-git -pkgver=2023.10.30a.r490.gb15065675 +_pkgname="swift-language" +pkgname="$_pkgname-git" +pkgver=2023.12.21a.r6.gf08f86c7161 pkgrel=1 pkgdesc="The Swift programming language, taken directly from the Apple repository" arch=('x86_64') url="https://swift.org/" -license=('apache2') +license=('Apache-2.0') depends=('icu' 'libedit' 'libxml2' 'python' 'libbsd' 'ncurses' ) -makedepends=('clang' 'cmake' 'git' 'ninja' 'patch' 'python-six' 'rsync' 'swig') +makedepends=('clang' 'cmake' 'git' 'lld' 'llvm' 'ninja' 'patch' 'python-six' 'rsync' 'swig') + +provides=("$_pkgname") +conflicts=("$_pkgname") + source=( - 'git+https://github.com/apple/swift#branch=main' - 'apple-cmark::git+https://github.com/apple/swift-cmark#branch=main' - 'llbuild::git+https://github.com/apple/swift-llbuild#branch=main' - 'swift-argument-parser::git+https://github.com/apple/swift-argument-parser#commit=1.2.3' - 'swift-atomics::git+https://github.com/apple/swift-atomics#commit=1.0.2' - 'swift-collections::git+https://github.com/apple/swift-collections#commit=1.0.1' - 'swift-crypto::git+https://github.com/apple/swift-crypto#commit=2.5.0' - 'swift-driver::git+https://github.com/apple/swift-driver#branch=main' - 'swift-numerics::git+https://github.com/apple/swift-numerics#commit=1.0.1' - 'swift-tools-support-core::git+https://github.com/apple/swift-tools-support-core#branch=main' - 'swiftpm::git+https://github.com/apple/swift-package-manager#branch=main' - 'swift-syntax::git+https://github.com/apple/swift-syntax#branch=main' - 'swift-system::git+https://github.com/apple/swift-system#commit=1.1.1' - 'swift-stress-tester::git+https://github.com/apple/swift-stress-tester#branch=main' - 'swift-corelibs-xctest::git+https://github.com/apple/swift-corelibs-xctest#branch=main' - 'swift-corelibs-foundation::git+https://github.com/apple/swift-corelibs-foundation#branch=main' - 'swift-corelibs-libdispatch::git+https://github.com/apple/swift-corelibs-libdispatch#branch=main' - 'swift-integration-tests::git+https://github.com/apple/swift-integration-tests#branch=main' - 'apple-llvm-project::git+https://github.com/apple/llvm-project#branch=stable/20220421' - 'swift-llvm-bindings::git+https://github.com/apple/swift-llvm-bindings#branch=stable/20220421' - '0001-arch-aur-patches.patch' - 'indexstore-db::git+https://github.com/apple/indexstore-db#branch=main' - 'yams::git+https://github.com/jpsim/Yams#commit=5.0.1' - 'sourcekit-lsp::git+https://github.com/apple/sourcekit-lsp#branch=main' - 'swift-asn1::git+https://github.com/apple/swift-asn1#commit=1.0.0' - 'swift-certificates::git+https://github.com/apple/swift-certificates#commit=0.6.0' - 'swift-cmark::git+https://github.com/apple/swift-cmark#branch=gfm' - 'swift-docc::git+https://github.com/apple/swift-docc#branch=main' - 'swift-docc-render-artifact::git+https://github.com/apple/swift-docc-render-artifact#branch=main' - 'swift-docc-symbolkit::git+https://github.com/apple/swift-docc-symbolkit#branch=main' - 'swift-experimental-string-processing::git+https://github.com/apple/swift-experimental-string-processing#branch=main' - 'swift-format::git+https://github.com/apple/swift-format#branch=main' - 'swift-installer-scripts::git+https://github.com/apple/swift-installer-scripts#branch=main' - 'swift-lmdb::git+https://github.com/apple/swift-lmdb#branch=main' - 'swift-markdown::git+https://github.com/apple/swift-markdown#branch=main' - 'swift-nio::git+https://github.com/apple/swift-nio#commit=2.31.2' - 'swift-nio-ssl::git+https://github.com/apple/swift-nio-ssl#commit=2.15.0' - 'swift-tools-support-core::git+https://github.com/apple/swift-tools-support-core#branch=main' - 'swift-xcode-playground-support::git+https://github.com/apple/swift-xcode-playground-support#branch=main' + 'git+https://github.com/apple/swift#branch=main' + '0001-arch-aur-patches.patch' + '0002-stdint.patch' + + 'apple-indexstore-db'::'git+https://github.com/apple/indexstore-db#branch=main' + 'apple-llvm-project'::'git+https://github.com/apple/llvm-project#branch=stable/20220421' + 'apple-sourcekit-lsp'::'git+https://github.com/apple/sourcekit-lsp#branch=main' + 'swift-argument-parser'::'git+https://github.com/apple/swift-argument-parser#commit=1.2.3' + 'swift-asn1'::'git+https://github.com/apple/swift-asn1#commit=1.0.0' + 'swift-atomics'::'git+https://github.com/apple/swift-atomics#commit=1.0.2' + 'swift-certificates'::'git+https://github.com/apple/swift-certificates#commit=0.6.0' + 'swift-cmark'::'git+https://github.com/apple/swift-cmark#branch=gfm' + 'swift-cmark'::'git+https://github.com/apple/swift-cmark#branch=main' + 'swift-collections'::'git+https://github.com/apple/swift-collections#commit=1.0.1' + 'swift-corelibs-foundation'::'git+https://github.com/apple/swift-corelibs-foundation#branch=main' + 'swift-corelibs-libdispatch'::'git+https://github.com/apple/swift-corelibs-libdispatch#branch=main' + 'swift-corelibs-xctest'::'git+https://github.com/apple/swift-corelibs-xctest#branch=main' + 'swift-crypto'::'git+https://github.com/apple/swift-crypto#commit=2.5.0' + 'swift-docc'::'git+https://github.com/apple/swift-docc#branch=main' + 'swift-docc-render-artifact'::'git+https://github.com/apple/swift-docc-render-artifact#branch=main' + 'swift-docc-symbolkit'::'git+https://github.com/apple/swift-docc-symbolkit#branch=main' + 'swift-driver'::'git+https://github.com/apple/swift-driver#branch=main' + 'swift-experimental-string-processing'::'git+https://github.com/apple/swift-experimental-string-processing#branch=main' + 'swift-format'::'git+https://github.com/apple/swift-format#branch=main' + 'swift-installer-scripts'::'git+https://github.com/apple/swift-installer-scripts#branch=main' + 'swift-integration-tests'::'git+https://github.com/apple/swift-integration-tests#branch=main' + 'swift-llbuild'::'git+https://github.com/apple/swift-llbuild#branch=main' + 'swift-llvm-bindings'::'git+https://github.com/apple/swift-llvm-bindings#branch=stable/20220421' + 'swift-lmdb'::'git+https://github.com/apple/swift-lmdb#branch=main' + 'swift-markdown'::'git+https://github.com/apple/swift-markdown#branch=main' + 'swift-nio'::'git+https://github.com/apple/swift-nio#commit=2.31.2' + 'swift-nio-ssl'::'git+https://github.com/apple/swift-nio-ssl#commit=2.15.0' + 'swift-numerics'::'git+https://github.com/apple/swift-numerics#commit=1.0.1' + 'swift-package-manager'::'git+https://github.com/apple/swift-package-manager#branch=main' + 'swift-stress-tester'::'git+https://github.com/apple/swift-stress-tester#branch=main' + 'swift-syntax'::'git+https://github.com/apple/swift-syntax#branch=main' + 'swift-system'::'git+https://github.com/apple/swift-system#commit=1.1.1' + 'swift-tools-support-core'::'git+https://github.com/apple/swift-tools-support-core#branch=main' + 'swift-xcode-playground-support'::'git+https://github.com/apple/swift-xcode-playground-support#branch=main' + 'yams'::'git+https://github.com/jpsim/Yams#commit=5.0.1' ) -noextract=() -md5sums=( - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' - 'SKIP' +sha256sums=( + 'SKIP' + 'SKIP' + 'SKIP' + + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' ) @@ -106,32 +112,68 @@ md5sums=( options=(!strip) prepare () { - ( cd swift && patch -p1 -i "$srcdir/0001-arch-aur-patches.patch" ) + ln -sfP 'apple-indexstore-db' 'indexstore-db' + ln -sfP 'apple-llvm-project' 'llvm-project' + ln -sfP 'apple-sourcekit-lsp' 'sourcekit-lsp' + ln -sfP 'swift-argument-parser' 'argument-parser' + ln -sfP 'swift-asn1' 'asn1' + ln -sfP 'swift-atomics' 'atomics' + ln -sfP 'swift-certificates' 'certificates' + ln -sfP 'swift-cmark' 'cmark' + ln -sfP 'swift-cmark' 'cmark' + ln -sfP 'swift-collections' 'collections' + ln -sfP 'swift-corelibs-foundation' 'corelibs-foundation' + ln -sfP 'swift-corelibs-libdispatch' 'corelibs-libdispatch' + ln -sfP 'swift-corelibs-xctest' 'corelibs-xctest' + ln -sfP 'swift-crypto' 'crypto' + ln -sfP 'swift-docc' 'docc' + ln -sfP 'swift-docc-render-artifact' 'docc-render-artifact' + ln -sfP 'swift-docc-symbolkit' 'docc-symbolkit' + ln -sfP 'swift-driver' 'driver' + ln -sfP 'swift-experimental-string-processing' 'experimental-string-processing' + ln -sfP 'swift-format' 'format' + ln -sfP 'swift-installer-scripts' 'installer-scripts' + ln -sfP 'swift-integration-tests' 'integration-tests' + ln -sfP 'swift-llbuild' 'llbuild' + ln -sfP 'swift-llvm-bindings' 'llvm-bindings' + ln -sfP 'swift-lmdb' 'lmdb' + ln -sfP 'swift-markdown' 'markdown' + ln -sfP 'swift-nio' 'nio' + ln -sfP 'swift-nio-ssl' 'nio-ssl' + ln -sfP 'swift-numerics' 'numerics' + ln -sfP 'swift-package-manager' 'package-manager' + ln -sfP 'swift-stress-tester' 'stress-tester' + ln -sfP 'swift-syntax' 'syntax' + ln -sfP 'swift-system' 'system' + ln -sfP 'swift-tools-support-core' 'tools-support-core' + ln -sfP 'swift-xcode-playground-support' 'xcode-playground-support' + + ( cd swift && patch -p1 -i "$srcdir/0001-arch-aur-patches.patch" ) + ( cd llvm-project && patch -p1 -F100 -i "$srcdir/0002-stdint.patch" ) } pkgver() { - cd "$srcdir/swift" - git describe --long | sed -E 's/^[^0-9]+//;s/-([^0-9]+)/\1/;s/([^-]*-g)/r\1/;s/-/./g' + cd "swift" + git describe --long | sed -E 's/^[^0-9]+//;s/-([^0-9]+)/\1/;s/([^-]*-g)/r\1/;s/-/./g' } build() { - cd "$srcdir" - # Fix /usr/include error - find "$srcdir/swift/stdlib/public/SwiftShims" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g' - find "$srcdir/apple-llvm-project/clang" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g' - find "$srcdir/apple-llvm-project/clang-tools-extra" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g' + # Fix /usr/include error + find "$srcdir/swift/stdlib/public/SwiftShims" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g' + find "$srcdir/llvm-project/clang" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g' + find "$srcdir/llvm-project/clang-tools-extra" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g' - # By default in /etc/makepkg.conf this is "-D_FORTIFY_SOURCE=2" - # Which will break `compiler-rt` - unset CPPFLAGS - export DISTCC_HOSTS='--randomize localhost red,cpp,lzo green,cpp,lzo blue,cpp,lzo' + # By default in /etc/makepkg.conf this is "-D_FORTIFY_SOURCE=2" + # Which will break `compiler-rt` + unset CPPFLAGS + export DISTCC_HOSTS='--randomize localhost red,cpp,lzo green,cpp,lzo blue,cpp,lzo' - python swift/utils/build-script --preset=buildbot_linux,no_test install_destdir="$srcdir/destdir" + python swift/utils/build-script --preset=buildbot_linux,no_test install_destdir="$srcdir/destdir" } package() { - ls -la $srcdir/destdir - mv $srcdir/destdir/* $pkgdir + ls -la "$srcdir/destdir" + mv "$srcdir/destdir"/* "$pkgdir" } # vim:set ts=2 sw=2 et: |