From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- tidy-viewer | 1 - tidy-viewer/.SRCINFO | 13 +++++++++++++ tidy-viewer/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) delete mode 160000 tidy-viewer create mode 100644 tidy-viewer/.SRCINFO create mode 100644 tidy-viewer/PKGBUILD (limited to 'tidy-viewer') diff --git a/tidy-viewer b/tidy-viewer deleted file mode 160000 index d5d40c0..0000000 --- a/tidy-viewer +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d5d40c0b16ce208a311be010f7f3e9d2ddfd7645 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 @@ +pkgbase = tidy-viewer + pkgdesc = CLI csv pretty printer that uses column styling + pkgver = 0.0.22 + pkgrel = 1 + url = https://github.com/alexhallam/tv + arch = x86_64 + arch = aarch64 + license = Unlicense + makedepends = cargo + source = tv-0.0.22.tar.gz::https://github.com/alexhallam/tv/archive/0.0.22.tar.gz + sha256sums = bee01aa9b07a9ec45f6a88f64b515d1eb88933d0bbb43de23452a434f00a0bae + +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 @@ +# Maintainer: Yigit Sever + +pkgname=tidy-viewer +_pkgname=tv +pkgver=0.0.22 +pkgrel=1 +pkgdesc="CLI csv pretty printer that uses column styling" +arch=('x86_64' 'aarch64') +url="https://github.com/alexhallam/tv" +license=('Unlicense') +makedepends=('cargo') +source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=('b6f3edf58314b2f69a40d63a032684b1b30406eb03ab1926493b83e92da08884') + +prepare() { + cd "$_pkgname-$pkgver" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$_pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release +} + +package() { + cd "$_pkgname-$pkgver" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install -Dm644 "$srcdir/$_pkgname-$pkgver/UNLICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} -- cgit v1.2.3-70-g09d2