diff options
author | Yigit Sever | 2021-10-10 23:49:53 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-10 23:49:53 +0300 |
commit | d5d40c0b16ce208a311be010f7f3e9d2ddfd7645 (patch) | |
tree | 2b9d3250d1e954d8f9e8a28aec8d406c04c6b6eb | |
parent | f3d02f3000112dab531da860a6658b6f66df21b4 (diff) | |
download | packages-d5d40c0b16ce208a311be010f7f3e9d2ddfd7645.tar.gz packages-d5d40c0b16ce208a311be010f7f3e9d2ddfd7645.tar.bz2 packages-d5d40c0b16ce208a311be010f7f3e9d2ddfd7645.zip |
Add aarch64
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 20 |
2 files changed, 11 insertions, 10 deletions
@@ -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 |
@@ -5,7 +5,7 @@ _pkgname=tv | |||
5 | pkgver=0.0.21 | 5 | pkgver=0.0.21 |
6 | pkgrel=1 | 6 | pkgrel=1 |
7 | pkgdesc="CLI csv pretty printer that uses column styling" | 7 | pkgdesc="CLI csv pretty printer that uses column styling" |
8 | arch=('x86_64') | 8 | arch=('x86_64' 'aarch64') |
9 | url="https://github.com/alexhallam/tv" | 9 | url="https://github.com/alexhallam/tv" |
10 | license=('Unlicense') | 10 | license=('Unlicense') |
11 | makedepends=('cargo') | 11 | makedepends=('cargo') |
@@ -13,19 +13,19 @@ source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") | |||
13 | sha256sums=('bee01aa9b07a9ec45f6a88f64b515d1eb88933d0bbb43de23452a434f00a0bae') | 13 | sha256sums=('bee01aa9b07a9ec45f6a88f64b515d1eb88933d0bbb43de23452a434f00a0bae') |
14 | 14 | ||
15 | prepare() { | 15 | prepare() { |
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 | ||
20 | build() { | 20 | build() { |
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 | ||
27 | package() { | 27 | package() { |
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 | } |