From e472f310ce22e6726391142d4b9a53705853452a Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 3 Nov 2021 11:14:42 +0300 Subject: Initial commit, 0.3.1 --- PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..6d00377 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Yigit Sever + +pkgname=ouch +pkgver=0.3.1 +pkgrel=1 +pkgdesc="Painless compression and decompression in the terminal" +arch=('x86_64') +url="https://github.com/ouch-org/ouch" +license=('MIT') +makedepends=('cargo') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") +sha256sums=('269abaf5ac2f80da3796dbf5e73419c1b64104d1295f3ff57965141f079e6f6d') + +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 --all-features +} + +package() { + cd "$pkgname-$pkgver" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" +} -- cgit v1.2.3-70-g09d2