summaryrefslogtreecommitdiffstats
path: root/ouch/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2023-01-28 20:15:42 +0300
committerYigit Sever2023-01-28 20:16:41 +0300
commit6a1c9c0f1eabefdc720736f7428b0cf2b9d846ba (patch)
tree4979bf19262374c98fbd2199fbb6dd486d244335 /ouch/PKGBUILD
parent044fd81159581a8f3f683b0ee3d1a54730aec7e2 (diff)
downloadpackages-6a1c9c0f1eabefdc720736f7428b0cf2b9d846ba.tar.gz
packages-6a1c9c0f1eabefdc720736f7428b0cf2b9d846ba.tar.bz2
packages-6a1c9c0f1eabefdc720736f7428b0cf2b9d846ba.zip
Deleted package: ouch
Deleted package: ouch
Diffstat (limited to 'ouch/PKGBUILD')
-rw-r--r--ouch/PKGBUILD51
1 files changed, 0 insertions, 51 deletions
diff --git a/ouch/PKGBUILD b/ouch/PKGBUILD
deleted file mode 100644
index c85e3e9..0000000
--- a/ouch/PKGBUILD
+++ /dev/null
@@ -1,51 +0,0 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=ouch
4pkgver=0.4.1
5pkgrel=1
6pkgdesc="Painless compression and decompression in the terminal"
7arch=('x86_64')
8url="https://github.com/ouch-org/ouch"
9license=('MIT')
10makedepends=('cargo')
11conflicts=(${pkgname}-git ${pkgname}-bin)
12source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
13sha256sums=('b0fcd6bbe6c66544b5bf1167d72605427c5cc6afae564f23f3eff5ea22b01b79')
14
15prepare() {
16 cd "$srcdir/$pkgname-$pkgver"
17 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
18}
19
20build() {
21 cd "$srcdir/$pkgname-$pkgver"
22 export RUSTUP_TOOLCHAIN=stable
23 export CARGO_TARGET_DIR=target
24 OUCH_ARTIFACTS_FOLDER=artifacts cargo build --frozen --release --all-features
25}
26
27check() {
28 cd "$srcdir/$pkgname-$pkgver"
29 export RUSTUP_TOOLCHAIN=stable
30 cargo test --frozen --all-features
31}
32
33package() {
34 cd "$srcdir/$pkgname-$pkgver"
35
36 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
37 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
38
39 cd "$srcdir/$pkgname-$pkgver/artifacts"
40
41 # install manpages
42 install -Dm0644 "${pkgname}.1" -t "${pkgdir}/usr/share/man/man1"
43 install -Dm0644 "${pkgname}-compress.1" -t "${pkgdir}/usr/share/man/man1"
44 install -Dm0644 "${pkgname}-decompress.1" -t "${pkgdir}/usr/share/man/man1"
45 install -Dm0644 "${pkgname}-list.1" -t "${pkgdir}/usr/share/man/man1"
46
47 # install shell completions
48 install -Dm0644 "${pkgname}.bash" "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
49 install -Dm0644 "${pkgname}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
50 install -Dm0644 "_${pkgname}" "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
51}