diff options
-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 | } |