diff options
author | Yigit Sever | 2021-10-29 01:30:24 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 01:30:24 +0300 |
commit | 31d147b20c67d95a9e306d0749200bf964ac42af (patch) | |
tree | b0fbe2bb5aa0fec9983746a91d188643ca93466d /tidy-viewer | |
parent | 4a31e5e0f3442a4a5ec9fba94f7bbc2c88312c69 (diff) | |
download | packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.gz packages-31d147b20c67d95a9e306d0749200bf964ac42af.tar.bz2 packages-31d147b20c67d95a9e306d0749200bf964ac42af.zip |
Use actual files instead of submodules
Diffstat (limited to 'tidy-viewer')
m--------- | tidy-viewer | 22 | ||||
-rw-r--r-- | tidy-viewer/.SRCINFO | 13 | ||||
-rw-r--r-- | tidy-viewer/PKGBUILD | 31 |
3 files changed, 44 insertions, 22 deletions
diff --git a/tidy-viewer b/tidy-viewer deleted file mode 160000 | |||
Subproject d5d40c0b16ce208a311be010f7f3e9d2ddfd764 | |||
diff --git a/tidy-viewer/.SRCINFO b/tidy-viewer/.SRCINFO new file mode 100644 index 0000000..1e79a67 --- /dev/null +++ b/tidy-viewer/.SRCINFO | |||
@@ -0,0 +1,13 @@ | |||
1 | pkgbase = tidy-viewer | ||
2 | pkgdesc = CLI csv pretty printer that uses column styling | ||
3 | pkgver = 0.0.22 | ||
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-0.0.22.tar.gz::https://github.com/alexhallam/tv/archive/0.0.22.tar.gz | ||
11 | sha256sums = bee01aa9b07a9ec45f6a88f64b515d1eb88933d0bbb43de23452a434f00a0bae | ||
12 | |||
13 | pkgname = tidy-viewer | ||
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 | |||
3 | pkgname=tidy-viewer | ||
4 | _pkgname=tv | ||
5 | pkgver=0.0.22 | ||
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=('b6f3edf58314b2f69a40d63a032684b1b30406eb03ab1926493b83e92da08884') | ||
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 | } | ||