diff options
author | Robert Manner | 2022-04-19 23:39:59 +0200 |
---|---|---|
committer | Henry Nelson | 2022-04-22 20:32:27 -0400 |
commit | c20633c1a3c685ae419bd5b9b5ff778019f0744d (patch) | |
tree | 8f78359778f8144a9102b8edbaf3c6885e304c7c | |
parent | b1fbe521928f5105c0b77e335146d31ffca86173 (diff) | |
download | aur-c20633c1a3c685ae419bd5b9b5ff778019f0744d.tar.gz |
Add support for aarch64
Also disables symbol stripping, because it takes a lot of time and
source is stripped already.
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 13 insertions, 6 deletions
@@ -4,10 +4,14 @@ pkgbase = zig-static pkgrel = 1 url = https://ziglang.org/ arch = x86_64 + arch = aarch64 license = MIT provides = zig conflicts = zig - source = https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz - md5sums = 01daf426d9e1c86aad6e4b26351e1ae8 + options = !strip + source_x86_64 = https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz + md5sums_x86_64 = 01daf426d9e1c86aad6e4b26351e1ae8 + source_aarch64 = https://ziglang.org/download/0.9.1/zig-linux-aarch64-0.9.1.tar.xz + md5sums_aarch64 = d7b665a034281572664ed73fc3ec6684 pkgname = zig-static @@ -4,18 +4,21 @@ pkgver=0.9.1 pkgrel=1 epoch= pkgdesc="robust, optimal, and clear programming language" -arch=('x86_64') +arch=('x86_64' 'aarch64') url="https://ziglang.org/" license=('MIT') depends=() makedepends=() +options=('!strip') provides=('zig') conflicts=('zig') -source=("https://ziglang.org/download/$pkgver/zig-linux-x86_64-$pkgver.tar.xz") -md5sums=('01daf426d9e1c86aad6e4b26351e1ae8') +source_x86_64=("https://ziglang.org/download/$pkgver/zig-linux-x86_64-$pkgver.tar.xz") +source_aarch64=("https://ziglang.org/download/$pkgver/zig-linux-aarch64-$pkgver.tar.xz") +md5sums_x86_64=('01daf426d9e1c86aad6e4b26351e1ae8') +md5sums_aarch64=('d7b665a034281572664ed73fc3ec6684') package() { - cd "$srcdir/zig-linux-x86_64-$pkgver" + cd "$srcdir/zig-linux-${CARCH}-$pkgver" install -D zig "$pkgdir/usr/bin/zig" install -D LICENSE "$pkgdir/usr/share/licenses/zig/LICENSE" cp -r lib "$pkgdir/usr" |