blob: dcd1ae6405960f4b3be74deab051ac11601d68d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dor com>
_pkgauthor=blacknon
_pkgname=hwatch
pkgname=${_pkgname}-bin
pkgver=0.3.18
pkgrel=1
pkgdesc='A modern alternative to the watch command'
url="https://github.com/${_pkgauthor}/${_pkgname}"
_urlraw="https://raw.githubusercontent.com/${_pkgauthor}/${_pkgname}/${pkgver}"
arch=('x86_64')
license=('MIT')
depends=('glibc')
makedepends=('gzip')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("LICENSE-${pkgver}::${_urlraw}/LICENSE"
"README-${pkgver}.md::${_urlraw}/README.md")
source_x86_64=("${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}.${arch[0]}-unknown-linux-gnu.tar.gz")
sha256sums=('83e4dd21429a91fb7cea67a476032a9641425e5355df2e0f589a738b6ec9fd2c'
'2edc5c3f59f0d2b285a657bf962f4d5bff4a73999e8455caed3ae0729ed5cd09')
sha256sums_x86_64=('b8abdbce22e6570cdfc1ce9b007b0e0aefc3b1f40cd32db832cdaaf9ba3a6b52')
build() {
cd "${srcdir}/" || exit
gzip "./man/${_pkgname}.1"
}
package() {
cd "${srcdir}/" || exit
install -Dm755 "./bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "./man/${_pkgname}.1.gz" "${pkgdir}/usr/share/man/man1/${_pkgname}.1.gz"
install -Dm644 "./completion/bash/${_pkgname}-completion.bash" "$pkgdir/usr/share/bash-completion/completions/${_pkgname}"
install -Dm644 "./completion/fish/${_pkgname}.fish" "$pkgdir/usr/share/fish/vendor_completions.d/${_pkgname}.fish"
install -Dm644 "./completion/zsh/_${_pkgname}" "$pkgdir/usr/share/zsh/site-functions/_${_pkgname}"
install -Dm644 "LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "README-${pkgver}.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|