Package Details: swift-bin 5.7.3-1

Git Clone URL: https://aur.archlinux.org/swift-bin.git (read-only, click to copy)
Package Base: swift-bin
Description: Binary builds of the Swift programming language
Upstream URL: https://swift.org
Keywords: apple language swift swiftlang
Licenses: Apache
Provides: swift-language
Replaces: swift-language-bin
Submitter: ashleyis
Maintainer: susurri
Last Packager: susurri
Votes: 77
Popularity: 0.019398
First Submitted: 2015-12-04 17:31 (UTC)
Last Updated: 2023-01-19 06:27 (UTC)

Required by (10)

Sources (1)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 16 Next › Last »

drshapeless commented on 2022-11-08 15:28 (UTC)

For the 5.7.1 release version.

@@ -3,7 +3,7 @@
 # Contributor: Frederic Bezies <fredbezies at gmail dot com>, youngunix <>

 pkgname=swift-bin
-pkgver=5.6
+pkgver=5.7.1
 pkgrel=1
 pkgdesc="Binary builds of the Swift programming language"
 arch=('x86_64')
@@ -15,8 +15,8 @@ optdepends=('python36: required for REPL')
 options=('!strip')
 provides=('swift-language')
 replaces=('swift-language-bin')
-source=("https://swift.org/builds/swift-$pkgver-release/centos8/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-centos8.tar.gz")
-sha256sums=('80fa936a30bbc599a619d352fb271de4060bee9f04151cbfda3d755f4c9e4257')
+source=("https://swift.org/builds/swift-$pkgver-release/centos7/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-centos7.tar.gz")
+sha256sums=('137e50059dc6a3b4dcc92a22ef7721b74157b4ab5332d2e77b321f14d799769a')

 package() {
   find_elf_only() {
@@ -28,7 +28,7 @@ package() {
   }

   mkdir -p "${pkgdir}/usr/lib/swift"
-  cp -Ppr "${srcdir}/swift-$pkgver-RELEASE-centos8"/usr/* "${pkgdir}/usr/lib/swift"
+  cp -Ppr "${srcdir}/swift-$pkgver-RELEASE-centos7"/usr/* "${pkgdir}/usr/lib/swift"

   # Symlink the desired binaries to /usr/bin
   mkdir -p "${pkgdir}/usr/bin"

HurricanePootis commented on 2022-09-08 14:30 (UTC)

Here is a patchfile to get swift-bin with latest 5.6.3 release

diff --git a/PKGBUILD b/PKGBUILD
index 3d21a03..ff4b55b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: Frederic Bezies <fredbezies at gmail dot com>, youngunix <>

 pkgname=swift-bin
-pkgver=5.6
+pkgver=5.6.3
 pkgrel=1
 pkgdesc="Binary builds of the Swift programming language"
 arch=('x86_64')
@@ -15,8 +15,8 @@ optdepends=('python36: required for REPL')
 options=('!strip')
 provides=('swift-language')
 replaces=('swift-language-bin')
-source=("https://swift.org/builds/swift-$pkgver-release/centos8/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-centos8.tar.gz")
-sha256sums=('80fa936a30bbc599a619d352fb271de4060bee9f04151cbfda3d755f4c9e4257')
+source=("https://download.swift.org/swift-$pkgver-release/centos7/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-centos7.tar.gz")
+sha256sums=('c1de2c22f3c2b6a1896b7e43b2abeea80db1aedcd035734496a99a6dba743401')

 package() {
   find_elf_only() {
@@ -28,7 +28,7 @@ package() {
   }

   mkdir -p "${pkgdir}/usr/lib/swift"
-  cp -Ppr "${srcdir}/swift-$pkgver-RELEASE-centos8"/usr/* "${pkgdir}/usr/lib/swift"
+  cp -Ppr "${srcdir}/swift-$pkgver-RELEASE-centos7"/usr/* "${pkgdir}/usr/lib/swift"

   # Symlink the desired binaries to /usr/bin
   mkdir -p "${pkgdir}/usr/bin"

Aranom commented on 2022-04-26 06:43 (UTC)

Haven't extensively tested this, but this PKGBUILD uses CentOS 7 distribution for 5.6.1 https://gist.githubusercontent.com/abarisain/eed1965b93b85710be266a36b92c4232/raw/14fbe130ba01db8d4e6d96686647798a0d31baf8/PKGBUILD

Had to rewrite libtinfo to libncurses: /usr/lib/libtinfo.so is a plaintext file that says "INPUT(libncurses.so.6)" which fails at runtime As ncurses contains the tinfo feature, I skipped the middleman rather than linking to libtinfo.so.6

mkhsu commented on 2022-04-19 02:46 (UTC)

CentOS 8 deprecated https://github.com/apple/swift/pull/42343

miten commented on 2022-02-13 23:55 (UTC) (edited on 2022-02-14 00:17 (UTC) by miten)

I will maintain swift-bin for the time being. If anyone wants to be a co-maintainer, please let me know.

P.S. I have made python36 an optional dependency.

kylef commented on 2021-10-23 08:46 (UTC)

@refi.64, any thoughts to making python36 an optional dependency? It isn't needed for many uses of Swift, only the REPL (which not everyone uses). To be honest, I do patch the PKGBUILD to drop this dependency out myself.

pcbeard commented on 2021-09-21 06:54 (UTC)

Same patch works for the 5.5 release, just had to change pkgver=5.5.

pcbeard commented on 2021-09-19 05:33 (UTC) (edited on 2021-09-19 06:06 (UTC) by pcbeard)

5.4.3 is out. What would it take to move forward? This patch worked for me:

diff --git a/PKGBUILD b/PKGBUILD
index af2121e..43f56e4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,3 +4,3 @@
 pkgname=swift-bin
-pkgver=5.4.2
+pkgver=5.4.3
 pkgrel=1
@@ -10,3 +10,3 @@ url="https://swift.org"
 license=('apache')
-depends=('libutil-linux' 'libxml2' 'python36')
+depends=('libutil-linux' 'libxml2' 'python')
 makedepends=('patchelf')
@@ -16,3 +16,3 @@ replaces=('swift-language-bin')
 source=("https://swift.org/builds/swift-$pkgver-release/centos8/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-centos8.tar.gz")
-sha256sums=('48997efc0d3b5a87082609b2d2bab21e421e711427386def6b6e761e5491167f')
+sha256sums=('1a86b6d964804f9d37dcbb9da24b902211b108deef1b73c4005837073b0244ee')

Surprisingly the missing ':' character bug still persists. Fixed in Ubuntu.

Also, when I run the swift command, I see these errors:

warning: (x86_64) /usr/lib/libstdc++.so.6 unsupported DW_FORM value: 0x1f
warning: (x86_64) /usr/lib/libgcc_s.so.1 unsupported DW_FORM value: 0x1f