diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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 | } |