summaryrefslogtreecommitdiffstats
path: root/tidy-viewer/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tidy-viewer/PKGBUILD')
-rw-r--r--tidy-viewer/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/tidy-viewer/PKGBUILD b/tidy-viewer/PKGBUILD
new file mode 100644
index 0000000..fd4ff96
--- /dev/null
+++ b/tidy-viewer/PKGBUILD
@@ -0,0 +1,31 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=tidy-viewer
4_pkgname=tv
5pkgver=0.0.22
6pkgrel=1
7pkgdesc="CLI csv pretty printer that uses column styling"
8arch=('x86_64' 'aarch64')
9url="https://github.com/alexhallam/tv"
10license=('Unlicense')
11makedepends=('cargo')
12source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
13sha256sums=('b6f3edf58314b2f69a40d63a032684b1b30406eb03ab1926493b83e92da08884')
14
15prepare() {
16 cd "$_pkgname-$pkgver"
17 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
18}
19
20build() {
21 cd "$_pkgname-$pkgver"
22 export RUSTUP_TOOLCHAIN=stable
23 export CARGO_TARGET_DIR=target
24 cargo build --frozen --release
25}
26
27package() {
28 cd "$_pkgname-$pkgver"
29 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
30 install -Dm644 "$srcdir/$_pkgname-$pkgver/UNLICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
31}