From 644666a1364d32020cd14c0d54356a57be6f9601 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 16 Nov 2021 15:56:06 +0300 Subject: Tracking adopted packages - dvc - flowy - ouch{-bin, -git,} --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..37e0570 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = ouch + pkgdesc = Painless compression and decompression in the terminal + pkgver = 0.3.1 + pkgrel = 3 + url = https://github.com/ouch-org/ouch + arch = x86_64 + license = MIT + makedepends = cargo + conflicts = ouch-git + conflicts = ouch-bin + source = ouch-0.3.1.tar.gz::https://github.com/ouch-org/ouch/archive/0.3.1.tar.gz + sha256sums = 269abaf5ac2f80da3796dbf5e73419c1b64104d1295f3ff57965141f079e6f6d + +pkgname = ouch diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..5d3f5fa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Yigit Sever + +pkgname=ouch +pkgver=0.3.1 +pkgrel=3 +pkgdesc="Painless compression and decompression in the terminal" +arch=('x86_64') +url="https://github.com/ouch-org/ouch" +license=('MIT') +makedepends=('cargo') +conflicts=(${pkgname}-git ${pkgname}-bin) +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=('269abaf5ac2f80da3796dbf5e73419c1b64104d1295f3ff57965141f079e6f6d') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + GEN_COMPLETIONS=1 cargo build --frozen --release --all-features +} + +check() { + cd "$srcdir/$pkgname-$pkgver" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + cd target/release/build/ouch-*/out/completions + sed -i "s/':output -- The resulting file. It's extensions can be used to specify the compression formats:_files'/\":output -- The resulting file. It's extensions can be used to specify the compression formats:_files\"/" _ouch + + install -Dm0644 ${pkgname}.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}" + install -Dm0644 ${pkgname}.fish "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish" + install -Dm0644 _${pkgname} "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}" +} -- cgit v1.2.3-70-g09d2