summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 10 insertions, 10 deletions
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}