summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-09-27 21:25:15 +0300
committerYigit Sever2021-09-27 21:25:15 +0300
commit5cc1d2593915d927b920bfcc8eed0ae9b0e81736 (patch)
tree4e18f6d4acc9d3df44989ccfbec838a592aa346d
downloadpackages-5cc1d2593915d927b920bfcc8eed0ae9b0e81736.tar.gz
packages-5cc1d2593915d927b920bfcc8eed0ae9b0e81736.tar.bz2
packages-5cc1d2593915d927b920bfcc8eed0ae9b0e81736.zip
Initial commit v0.0.13
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD31
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..fd2e790
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,12 @@
1pkgbase = tidy-viewer
2 pkgdesc = CLI csv pretty printer that uses column styling
3 pkgver = 0.0.13
4 pkgrel = 1
5 url = https://github.com/alexhallam/tv
6 arch = x86_64
7 license = custom:unlicense
8 makedepends = cargo
9 source = tv-0.0.13.tar.gz::https://github.com/alexhallam/tv/archive/0.0.13.tar.gz
10 sha256sums = 9997675073806cb35286b3a499dbfb18ca14aa8bcba7fbda752e6b0cd05f623f
11
12pkgname = tidy-viewer
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..c1aba49
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=tidy-viewer
4_pkgname=tv
5pkgver=0.0.13
6pkgrel=1
7pkgdesc="CLI csv pretty printer that uses column styling"
8arch=('x86_64')
9url="https://github.com/alexhallam/tv"
10license=('custom:unlicense')
11makedepends=('cargo')
12source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
13sha256sums=('9997675073806cb35286b3a499dbfb18ca14aa8bcba7fbda752e6b0cd05f623f')
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}