summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-10-10 23:49:53 +0300
committerYigit Sever2021-10-10 23:49:53 +0300
commitd5d40c0b16ce208a311be010f7f3e9d2ddfd7645 (patch)
tree2b9d3250d1e954d8f9e8a28aec8d406c04c6b6eb
parentf3d02f3000112dab531da860a6658b6f66df21b4 (diff)
downloadpackages-d5d40c0b16ce208a311be010f7f3e9d2ddfd7645.tar.gz
packages-d5d40c0b16ce208a311be010f7f3e9d2ddfd7645.tar.bz2
packages-d5d40c0b16ce208a311be010f7f3e9d2ddfd7645.zip
Add aarch64
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD20
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
4 pkgrel = 1 4 pkgrel = 1
5 url = https://github.com/alexhallam/tv 5 url = https://github.com/alexhallam/tv
6 arch = x86_64 6 arch = x86_64
7 arch = aarch64
7 license = Unlicense 8 license = Unlicense
8 makedepends = cargo 9 makedepends = cargo
9 source = tv-0.0.21.tar.gz::https://github.com/alexhallam/tv/archive/0.0.21.tar.gz 10 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
5pkgver=0.0.21 5pkgver=0.0.21
6pkgrel=1 6pkgrel=1
7pkgdesc="CLI csv pretty printer that uses column styling" 7pkgdesc="CLI csv pretty printer that uses column styling"
8arch=('x86_64') 8arch=('x86_64' 'aarch64')
9url="https://github.com/alexhallam/tv" 9url="https://github.com/alexhallam/tv"
10license=('Unlicense') 10license=('Unlicense')
11makedepends=('cargo') 11makedepends=('cargo')
@@ -13,19 +13,19 @@ source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
13sha256sums=('bee01aa9b07a9ec45f6a88f64b515d1eb88933d0bbb43de23452a434f00a0bae') 13sha256sums=('bee01aa9b07a9ec45f6a88f64b515d1eb88933d0bbb43de23452a434f00a0bae')
14 14
15prepare() { 15prepare() {
16 cd "$_pkgname-$pkgver" 16 cd "$_pkgname-$pkgver"
17 cargo fetch --locked --target "$CARCH-unknown-linux-gnu" 17 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
18} 18}
19 19
20build() { 20build() {
21 cd "$_pkgname-$pkgver" 21 cd "$_pkgname-$pkgver"
22 export RUSTUP_TOOLCHAIN=stable 22 export RUSTUP_TOOLCHAIN=stable
23 export CARGO_TARGET_DIR=target 23 export CARGO_TARGET_DIR=target
24 cargo build --frozen --release 24 cargo build --frozen --release
25} 25}
26 26
27package() { 27package() {
28 cd "$_pkgname-$pkgver" 28 cd "$_pkgname-$pkgver"
29 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" 29 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
30 install -Dm644 "$srcdir/$_pkgname-$pkgver/UNLICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" 30 install -Dm644 "$srcdir/$_pkgname-$pkgver/UNLICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
31} 31}