summaryrefslogtreecommitdiffstats
path: root/tidy-viewer
diff options
context:
space:
mode:
authorYigit Sever2022-12-16 00:00:05 +0300
committerYigit Sever2022-12-16 00:00:05 +0300
commitc7c7aa71e6938d430cff7d07b3a46d2cce2117b4 (patch)
tree94f34d4b187a642fb8bc977550fe8e7d49e95b00 /tidy-viewer
parentbe775b4afde01dcd5cb88d68832261c875781574 (diff)
parent24b36246f8386e15bdb22b33e72904d2b3697571 (diff)
downloadpackages-c7c7aa71e6938d430cff7d07b3a46d2cce2117b4.tar.gz
packages-c7c7aa71e6938d430cff7d07b3a46d2cce2117b4.tar.bz2
packages-c7c7aa71e6938d430cff7d07b3a46d2cce2117b4.zip
Add 'tidy-viewer/' from commit '24b36246f8386e15bdb22b33e72904d2b3697571'
git-subtree-dir: tidy-viewer git-subtree-mainline: be775b4afde01dcd5cb88d68832261c875781574 git-subtree-split: 24b36246f8386e15bdb22b33e72904d2b3697571
Diffstat (limited to 'tidy-viewer')
-rw-r--r--tidy-viewer/.SRCINFO13
-rw-r--r--tidy-viewer/.gitignore3
-rw-r--r--tidy-viewer/PKGBUILD31
3 files changed, 47 insertions, 0 deletions
diff --git a/tidy-viewer/.SRCINFO b/tidy-viewer/.SRCINFO
new file mode 100644
index 0000000..6c123ed
--- /dev/null
+++ b/tidy-viewer/.SRCINFO
@@ -0,0 +1,13 @@
1pkgbase = tidy-viewer
2 pkgdesc = CLI csv pretty printer that uses column styling
3 pkgver = 1.4.9
4 pkgrel = 1
5 url = https://github.com/alexhallam/tv
6 arch = x86_64
7 arch = aarch64
8 license = Unlicense
9 makedepends = cargo
10 source = tv-1.4.9.tar.gz::https://github.com/alexhallam/tv/archive/1.4.9.tar.gz
11 sha256sums = 2e9a8ad5a9a0b3fced659483e3807a4222b1bb6656d975a62c8ff4c5d81f55fc
12
13pkgname = tidy-viewer
diff --git a/tidy-viewer/.gitignore b/tidy-viewer/.gitignore
new file mode 100644
index 0000000..1d65adf
--- /dev/null
+++ b/tidy-viewer/.gitignore
@@ -0,0 +1,3 @@
1*
2!PKGBUILD
3!.SRCINFO
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
3pkgname=tidy-viewer
4_pkgname=tv
5pkgver=1.4.9
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=('2e9a8ad5a9a0b3fced659483e3807a4222b1bb6656d975a62c8ff4c5d81f55fc')
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}