summaryrefslogtreecommitdiffstats
path: root/ouch-git/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2022-11-27 13:01:26 +0300
committerYigit Sever2022-11-27 13:01:26 +0300
commit5bacfc213cecad86e96d2988877b3a10e212f0c7 (patch)
tree78b39e3703b6c6c941f474fbf55d9d92bb949fb6 /ouch-git/PKGBUILD
parentb65686d4e4256f45fad660c4739cf3e690d41c05 (diff)
downloadpackages-5bacfc213cecad86e96d2988877b3a10e212f0c7.tar.gz
packages-5bacfc213cecad86e96d2988877b3a10e212f0c7.tar.bz2
packages-5bacfc213cecad86e96d2988877b3a10e212f0c7.zip
ouch-git: Install completions and manpages
Diffstat (limited to 'ouch-git/PKGBUILD')
-rw-r--r--ouch-git/PKGBUILD21
1 files changed, 14 insertions, 7 deletions
diff --git a/ouch-git/PKGBUILD b/ouch-git/PKGBUILD
index 8e036ce..7a33f12 100644
--- a/ouch-git/PKGBUILD
+++ b/ouch-git/PKGBUILD
@@ -2,7 +2,7 @@
2 2
3pkgname=ouch-git 3pkgname=ouch-git
4_pkgname=${pkgname%-git} 4_pkgname=${pkgname%-git}
5pkgver=r397.abf1d4e 5pkgver=r693.d4f181b
6pkgrel=1 6pkgrel=1
7pkgdesc="Painless compression and decompression in the terminal (git version)" 7pkgdesc="Painless compression and decompression in the terminal (git version)"
8arch=('x86_64') 8arch=('x86_64')
@@ -28,7 +28,7 @@ build() {
28 cd "$srcdir/${_pkgname}" 28 cd "$srcdir/${_pkgname}"
29 export RUSTUP_TOOLCHAIN=stable 29 export RUSTUP_TOOLCHAIN=stable
30 export CARGO_TARGET_DIR=target 30 export CARGO_TARGET_DIR=target
31 GEN_COMPLETIONS=1 cargo build --frozen --release --all-features 31 OUCH_ARTIFACTS_FOLDER=artifacts cargo build --frozen --release --all-features
32} 32}
33 33
34check() { 34check() {
@@ -39,13 +39,20 @@ check() {
39 39
40package() { 40package() {
41 cd "$srcdir/${_pkgname}" 41 cd "$srcdir/${_pkgname}"
42
42 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${_pkgname}" 43 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${_pkgname}"
43 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE" 44 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
44 45
45 cd target/release/build/ouch-*/out/completions 46 cd artifacts
46 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 47
48 # install manpages
49 install -Dm0644 "${_pkgname}.1" -t "${pkgdir}/usr/share/man/man1"
50 install -Dm0644 "${_pkgname}-compress.1" -t "${pkgdir}/usr/share/man/man1"
51 install -Dm0644 "${_pkgname}-decompress.1" -t "${pkgdir}/usr/share/man/man1"
52 install -Dm0644 "${_pkgname}-list.1" -t "${pkgdir}/usr/share/man/man1"
47 53
48 install -Dm0644 ${_pkgname}.bash "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}" 54 # install shell completions
49 install -Dm0644 ${_pkgname}.fish "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish" 55 install -Dm0644 "${_pkgname}.bash" "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
50 install -Dm0644 _${_pkgname} "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}" 56 install -Dm0644 "${_pkgname}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish"
57 install -Dm0644 "_${_pkgname}" "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
51} 58}