summaryrefslogtreecommitdiffstats
path: root/ouch-bin/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2023-06-08 01:19:16 +0300
committerYigit Sever2023-06-08 01:19:16 +0300
commit4ad3153961d105e05714df6216ef5cae6233a589 (patch)
treec27e3f5158651ccc52321ec6aecc5c0364330e4d /ouch-bin/PKGBUILD
parentfd3fc7abf4c0c4b8f4a93a779b348e8f085dd21a (diff)
parent762735cf6d6cc4d4c423f20b586fb968be645700 (diff)
downloadpackages-4ad3153961d105e05714df6216ef5cae6233a589.tar.gz
packages-4ad3153961d105e05714df6216ef5cae6233a589.tar.bz2
packages-4ad3153961d105e05714df6216ef5cae6233a589.zip
Add 'ouch-bin/' from commit '762735cf6d6cc4d4c423f20b586fb968be645700'
git-subtree-dir: ouch-bin git-subtree-mainline: fd3fc7abf4c0c4b8f4a93a779b348e8f085dd21a git-subtree-split: 762735cf6d6cc4d4c423f20b586fb968be645700
Diffstat (limited to 'ouch-bin/PKGBUILD')
-rw-r--r--ouch-bin/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/ouch-bin/PKGBUILD b/ouch-bin/PKGBUILD
new file mode 100644
index 0000000..53a278a
--- /dev/null
+++ b/ouch-bin/PKGBUILD
@@ -0,0 +1,40 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=ouch-bin
4_pkgname=${pkgname%-bin}
5pkgver=0.4.1
6pkgrel=1
7pkgdesc="Painless compression and decompression in the terminal (binary release)"
8arch=('x86_64')
9url="https://github.com/ouch-org/ouch"
10license=('MIT')
11provides=(${_pkgname})
12conflicts=(${_pkgname} ${_pkgname}-git)
13source=("${_pkgname}-${pkgver}.tar.gz::${url}/releases/download/${pkgver}/ouch-x86_64-unknown-linux-gnu.tar.gz")
14sha256sums=('b27902df86aa2b4df28e1d53214af1d5391beabd4c1cbee850d80c2168329d62')
15
16package() {
17 # Binary releaes is archived in a folder with a generic name, it is not ideal
18 # (e.g. aur helpers will complain about name clashes)
19 # So we fix it
20 cd "${srcdir}"
21 mkdir "${_pkgname}-${pkgver}"
22 mv "${srcdir}/ouch-x86_64-unknown-linux-gnu/"* "${_pkgname}-${pkgver}"
23 rmdir ouch-x86_64-unknown-linux-gnu
24
25 cd "${srcdir}/${_pkgname}-${pkgver}"
26
27 install -Dm0755 -t "${pkgdir}/usr/bin" "${_pkgname}"
28 install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
29
30 # install manpages
31 install -Dm0644 "man/${_pkgname}.1" -t "${pkgdir}/usr/share/man/man1"
32 install -Dm0644 "man/${_pkgname}-compress.1" -t "${pkgdir}/usr/share/man/man1"
33 install -Dm0644 "man/${_pkgname}-decompress.1" -t "${pkgdir}/usr/share/man/man1"
34 install -Dm0644 "man/${_pkgname}-list.1" -t "${pkgdir}/usr/share/man/man1"
35
36 # install shell completions
37 install -Dm0644 "completions/${_pkgname}.bash" "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
38 install -Dm0644 "completions/${_pkgname}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/${_pkgname}.fish"
39 install -Dm0644 "completions/_${_pkgname}" "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
40}