You use the ${arch}
variable in the source
url. But that does not work. ${arch}
will always be x86_64
- no matter on which actual cpu architecture you run makepkg.
You want to use ${CARCH}
which will correctly substitute the architecure. I am running on aarch64 and can confirm that for me aarch64
will be used.
It would be great if you could modify the PKGBUILD
so that aarch64 is really supported. Here is the necessary diff (you can test that with CARCH=aarch64 makepkg -scAL -f
):
diff --git a/PKGBUILD b/PKGBUILD
index 8f855b5..ff2f15f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,9 +13,12 @@ depends=('msodbcsql')
optdepends=('mssql-server: Enter T-SQL statements to an SQL Server database')
options=('!strip')
install="${pkgname}.install"
-source=("https://packages.microsoft.com/rhel/${_rhelver}/prod/Packages/m/${pkgname}18-${pkgver}-${pkgrel}.${arch}.rpm")
-sha256sums=('1e1d77a80e9abb7d98cf9e8b25cdf052302ec5163ae94ab9cd586dbfefb78194')
-sha512sums=('5663b0b360941fdcfba50972ac2e01f629a0acaf32343de5ab468d06a2a3c11e3c44194454608f2240d698585cdb12300b932115a29942ad5d42d7932b260736')
+source_x86_64=("https://packages.microsoft.com/rhel/${_rhelver}/prod/Packages/m/${pkgname}18-${pkgver}-${pkgrel}.${CARCH}.rpm")
+source_aarch64=($source_x86_64)
+sha256sums_x86_64=('1e1d77a80e9abb7d98cf9e8b25cdf052302ec5163ae94ab9cd586dbfefb78194')
+sha512sums_x86_64=('5663b0b360941fdcfba50972ac2e01f629a0acaf32343de5ab468d06a2a3c11e3c44194454608f2240d698585cdb12300b932115a29942ad5d42d7932b260736')
+sha256sums_aarch64=('8bfbd58fefc9d4550fa478b712ce8528f49a18255584045b04228b3907ce4f26')
+sha512sums_aarch64=('7489ff2603b68bcdb8d6e4850d209759c6c251da4e944aaf26db3447a7e90a571d28b8ebc0200a477a476caee96a35cc3849e53b82b8f41edefae63d6ebb8bce')
package() {
cd "$srcdir"
Pinned Comments
ryanbarillos commented on 2024-08-28 08:47 (UTC)
Package has now been updated to the most latest version of 18.4.1.1
Yay!
ryanbarillos commented on 2024-01-18 09:25 (UTC)
NOTES: