The Postman team has released an arm64 version. This diff makes it work there
diff --git a/.SRCINFO b/.SRCINFO
index 6b2d42c..0cd2eab 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,6 +4,7 @@ pkgbase = postman-bin
pkgrel = 1
url = https://www.getpostman.com
arch = x86_64
+ arch = aarch64
license = custom
depends = libxss
depends = nss
@@ -11,9 +12,13 @@ pkgbase = postman-bin
provides = postman
conflicts = postman
options = !strip
- source = postman-10.10.3-linux-x64.tar.gz::https://dl.pstmn.io/download/version/10.10.3/linux64
- source = postman.desktop
- sha256sums = 33360662fae7a6e2b9a8f84c94f3f8305df37f5255bf88c45e6e690a6b813436
- sha256sums = d87542ac18455ff341da7c5efd01db96a01f659b1bf546840aa4ac8bd085802d
+ source_x86_64 = postman-10.10.3-linux-x64.tar.gz::https://dl.pstmn.io/download/version/10.10.3/linux64
+ source_x86_64 = postman.desktop
+ sha256sums_x86_64 = 33360662fae7a6e2b9a8f84c94f3f8305df37f5255bf88c45e6e690a6b813436
+ sha256sums_x86_64 = d87542ac18455ff341da7c5efd01db96a01f659b1bf546840aa4ac8bd085802d
+ source_aarch64 = postman-10.10.3-linux-arm64.tar.gz::https://dl.pstmn.io/download/version/10.10.3/linux_arm64
+ source_aarch64 = postman.desktop
+ sha256sums_aarch64 = f0a0b5b21db09db95eea15a68e75f070c87f2fe7eb087eccc3682a0e7b452b77
+ sha256sums_aarch64 = d87542ac18455ff341da7c5efd01db96a01f659b1bf546840aa4ac8bd085802d
pkgname = postman-bin
diff --git a/PKGBUILD b/PKGBUILD
index c537c69..20e2566 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,17 +6,24 @@ pkgrel=1
pkgdesc="Build, test, and document your APIs faster"
provides=('postman')
conflicts=('postman')
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
url="https://www.getpostman.com"
options=(!strip)
license=('custom')
-source=(
+source_x86_64=(
"postman-${pkgver}-linux-x64.tar.gz::https://dl.pstmn.io/download/version/${pkgver}/linux64"
"postman.desktop"
)
+source_aarch64=(
+ "postman-${pkgver}-linux-arm64.tar.gz::https://dl.pstmn.io/download/version/${pkgver}/linux_arm64"
+ "postman.desktop"
+)
depends=(libxss nss gtk3)
-sha256sums=('33360662fae7a6e2b9a8f84c94f3f8305df37f5255bf88c45e6e690a6b813436'
- 'd87542ac18455ff341da7c5efd01db96a01f659b1bf546840aa4ac8bd085802d')
+sha256sums_x86_64=('33360662fae7a6e2b9a8f84c94f3f8305df37f5255bf88c45e6e690a6b813436'
+ 'd87542ac18455ff341da7c5efd01db96a01f659b1bf546840aa4ac8bd085802d')
+sha256sums_aarch64=('f0a0b5b21db09db95eea15a68e75f070c87f2fe7eb087eccc3682a0e7b452b77'
+ 'd87542ac18455ff341da7c5efd01db96a01f659b1bf546840aa4ac8bd085802d')
+
package() {
install -dm755 "${pkgdir}/opt/"
cp -r "Postman" "${pkgdir}/opt/postman"
Pinned Comments
j.taala commented on 2021-09-17 09:50 (UTC) (edited on 2021-12-21 22:53 (UTC) by j.taala)
@ntfc I was going to go the other way (update to 9.0.1 instead of reverting back to 8.11.1).
P.S. postman are pretty bad at updating their release notes page (even after a new version is out).
If you want to revert to any previous version you can do so by cloning the aur repo and changing the version in the PKGBUILD file and using makepkg to build it (it will download and install that version for you). E.g.:
Edit the
PKGBUILD
file with whatever editor you like: edit line 4 to bepkgver=8.11.1
or whatever version you like, then save and exit out of the editor and runupdpkgsums
will download the file and update sha for file in PKGBUILD so it will install with makepkg