From 5bacfc213cecad86e96d2988877b3a10e212f0c7 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 27 Nov 2022 13:01:26 +0300 Subject: ouch-git: Install completions and manpages --- ouch-git/.SRCINFO | 2 +- ouch-git/PKGBUILD | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) (limited to 'ouch-git') diff --git a/ouch-git/.SRCINFO b/ouch-git/.SRCINFO index 8f5b5e1..21b6928 100644 --- a/ouch-git/.SRCINFO +++ b/ouch-git/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = ouch-git pkgdesc = Painless compression and decompression in the terminal (git version) - pkgver = r397.abf1d4e + pkgver = r693.d4f181b pkgrel = 1 url = https://github.com/ouch-org/ouch/ arch = x86_64 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 @@ pkgname=ouch-git _pkgname=${pkgname%-git} -pkgver=r397.abf1d4e +pkgver=r693.d4f181b pkgrel=1 pkgdesc="Painless compression and decompression in the terminal (git version)" arch=('x86_64') @@ -28,7 +28,7 @@ build() { cd "$srcdir/${_pkgname}" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target - GEN_COMPLETIONS=1 cargo build --frozen --release --all-features + OUCH_ARTIFACTS_FOLDER=artifacts cargo build --frozen --release --all-features } check() { @@ -39,13 +39,20 @@ check() { package() { cd "$srcdir/${_pkgname}" + 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 + cd artifacts + + # install manpages + install -Dm0644 "${_pkgname}.1" -t "${pkgdir}/usr/share/man/man1" + install -Dm0644 "${_pkgname}-compress.1" -t "${pkgdir}/usr/share/man/man1" + install -Dm0644 "${_pkgname}-decompress.1" -t "${pkgdir}/usr/share/man/man1" + install -Dm0644 "${_pkgname}-list.1" -t "${pkgdir}/usr/share/man/man1" - 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}" + # install shell completions + 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