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