mirror of
https://github.com/archlinux/aur.git
synced 2025-12-10 08:05:42 +01:00
Updates
This commit is contained in:
parent
b94aa505bb
commit
10c3e29e6b
2 changed files with 14 additions and 27 deletions
9
.SRCINFO
9
.SRCINFO
|
|
@ -1,15 +1,12 @@
|
|||
pkgbase = swift-bin
|
||||
pkgdesc = Binary builds of the Swift programming language
|
||||
pkgver = 5.2.3
|
||||
pkgver = 5.2.4
|
||||
pkgrel = 1
|
||||
url = https://swift.org
|
||||
arch = x86_64
|
||||
license = apache
|
||||
makedepends = patchelf
|
||||
makedepends = rpmextract
|
||||
depends = clang
|
||||
depends = icu63
|
||||
depends = libbsd
|
||||
depends = libutil-linux
|
||||
depends = libxml2
|
||||
depends = python3
|
||||
|
|
@ -17,8 +14,8 @@ pkgbase = swift-bin
|
|||
conflicts = swift-language-git
|
||||
replaces = swift-language-bin
|
||||
options = !strip
|
||||
source = https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/s/swift-lang-5.2.3-1.fc33.x86_64.rpm
|
||||
sha256sums = 5b960d79ed8bb755ccb5fa37a0cb82903a6fad656104952fbb0940c08a693020
|
||||
source = https://swift.org/builds/swift-5.2.4-release/centos8/swift-5.2.4-RELEASE/swift-5.2.4-RELEASE-centos8.tar.gz
|
||||
sha256sums = dd07e4e8f57b8339d4a720c45b1279a8e8d8d3ce6695f82919db1674923d8794
|
||||
|
||||
pkgname = swift-bin
|
||||
|
||||
|
|
|
|||
32
PKGBUILD
32
PKGBUILD
|
|
@ -2,21 +2,20 @@
|
|||
# Contributor: Frederic Bezies <fredbezies at gmail dot com>, youngunix <>
|
||||
|
||||
pkgname=swift-bin
|
||||
pkgver=5.2.3
|
||||
pkgver=5.2.4
|
||||
pkgrel=1
|
||||
pkgdesc="Binary builds of the Swift programming language"
|
||||
arch=('x86_64')
|
||||
url="https://swift.org"
|
||||
license=('apache')
|
||||
depends=('clang' 'icu63' 'libbsd' 'libutil-linux' 'libxml2' 'python3')
|
||||
depends=('libutil-linux' 'libxml2' 'python3')
|
||||
makedepends=('patchelf' 'rpmextract')
|
||||
conflicts=('swift-language-git')
|
||||
options=('!strip')
|
||||
provides=('swift-language')
|
||||
replaces=('swift-language-bin')
|
||||
_urlbase='https://download.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/s'
|
||||
source=("$_urlbase/swift-lang-$pkgver-1.fc33.x86_64.rpm")
|
||||
sha256sums=('5b960d79ed8bb755ccb5fa37a0cb82903a6fad656104952fbb0940c08a693020')
|
||||
source=("https://swift.org/builds/swift-$pkgver-release/centos8/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-centos8.tar.gz")
|
||||
sha256sums=('dd07e4e8f57b8339d4a720c45b1279a8e8d8d3ce6695f82919db1674923d8794')
|
||||
|
||||
package() {
|
||||
find_elf_only() {
|
||||
|
|
@ -27,28 +26,19 @@ package() {
|
|||
"$@"
|
||||
}
|
||||
|
||||
cp -Ppr "${srcdir}"/usr "${pkgdir}"
|
||||
mkdir -p "${pkgdir}/usr/lib/swift"
|
||||
cp -Ppr "${srcdir}/swift-$pkgver-RELEASE-centos8"/usr/* "${pkgdir}/usr/lib/swift"
|
||||
|
||||
# Merge libexec and lib
|
||||
mv "${pkgdir}/usr/"{libexec/*,lib}
|
||||
rmdir "${pkgdir}/usr/libexec"
|
||||
|
||||
# Rewrite the symlinks and binaries to use lib instead of libexec
|
||||
find_elf_only -exec sed -i 's|/usr/libexec|/usr/lib/./.|g' {} \;
|
||||
for bin in "${pkgdir}/usr/bin/"*; do
|
||||
ln -sf /usr/lib/swift/bin/${bin##*/} $bin
|
||||
# Symlink the desired binaries to /usr/bin
|
||||
mkdir -p "${pkgdir}/usr/bin"
|
||||
for bin in sourcekit-lsp swift swiftc; do
|
||||
ln -s "/usr/lib/swift/bin/$bin" "${pkgdir}/usr/bin/$bin"
|
||||
done
|
||||
|
||||
# Create the needed aliases for libncurses
|
||||
# Patch the binaries to use the changed ncurses names
|
||||
patchelf=(patchelf)
|
||||
for lib in ncurses panel form; do
|
||||
patchelf+=(--replace-needed "lib${lib}.so.6" "lib${lib}w.so")
|
||||
done
|
||||
find_elf_only -exec "${patchelf[@]}" {} \;
|
||||
|
||||
# Rename the LICENSE file directory
|
||||
mv "${pkgdir}/usr/share/licenses/swift-"{lang,bin}
|
||||
|
||||
# Remove Fedora .build-id stuff
|
||||
rm -rf "${pkgdir}/usr/lib/.build-id"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue