From 18c0df690607f56c2ccb7dcf23a03e6df8a15f9e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 3 Nov 2021 20:18:51 +0300 Subject: Add new conflict, install license --- PKGBUILD | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index 417d414..5d3f5fa 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,37 +2,39 @@ pkgname=ouch pkgver=0.3.1 -pkgrel=2 +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) +conflicts=(${pkgname}-git ${pkgname}-bin) source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=('269abaf5ac2f80da3796dbf5e73419c1b64104d1295f3ff57965141f079e6f6d') prepare() { - cd "$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd "$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target GEN_COMPLETIONS=1 cargo build --frozen --release --all-features } check() { - cd "$pkgname-$pkgver" + cd "$srcdir/$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { - cd "$pkgname-$pkgver" + 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 -- cgit v1.2.3-70-g09d2