From d5d40c0b16ce208a311be010f7f3e9d2ddfd7645 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 10 Oct 2021 23:49:53 +0300 Subject: Add aarch64 --- .SRCINFO | 1 + PKGBUILD | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 7c20821..1d68ec3 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -4,6 +4,7 @@ pkgbase = tidy-viewer pkgrel = 1 url = https://github.com/alexhallam/tv arch = x86_64 + arch = aarch64 license = Unlicense makedepends = cargo source = tv-0.0.21.tar.gz::https://github.com/alexhallam/tv/archive/0.0.21.tar.gz diff --git a/PKGBUILD b/PKGBUILD index 9e0bb28..c2a5aa9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ _pkgname=tv pkgver=0.0.21 pkgrel=1 pkgdesc="CLI csv pretty printer that uses column styling" -arch=('x86_64') +arch=('x86_64' 'aarch64') url="https://github.com/alexhallam/tv" license=('Unlicense') makedepends=('cargo') @@ -13,19 +13,19 @@ source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=('bee01aa9b07a9ec45f6a88f64b515d1eb88933d0bbb43de23452a434f00a0bae') prepare() { - cd "$_pkgname-$pkgver" - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + cd "$_pkgname-$pkgver" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd "$_pkgname-$pkgver" - export RUSTUP_TOOLCHAIN=stable - export CARGO_TARGET_DIR=target - cargo build --frozen --release + cd "$_pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release } package() { - cd "$_pkgname-$pkgver" - install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" - install -Dm644 "$srcdir/$_pkgname-$pkgver/UNLICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "$_pkgname-$pkgver" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install -Dm644 "$srcdir/$_pkgname-$pkgver/UNLICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -- cgit v1.2.3-70-g09d2