blob: 4ca7e6de1cc5be2ee4dfc6947f43265c224f19ee (
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: Vitalii Kuzhdin <vitaliikuzhdin@gmail.com>
_pkgname="funzzy"
pkgname="${_pkgname}-bin"
pkgver=1.5.0
pkgrel=1
pkgdesc="A lightweight generic purpose file watcher"
arch=('x86_64')
url="https://github.com/cristianoliveira/${_pkgname}"
license=('MIT')
depends=('gcc-libs' 'glibc')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
_pkgsrc="${_pkgname}-${pkgver}"
noextract=("${_pkgsrc}-x86_64.tar.gz")
source=("README-${pkgver}.md::${url}/raw/v${pkgver}/README.md"
"LICENSE-${pkgver}::${url}/raw/v${pkgver}/LICENSE")
source_x86_64=("${_pkgsrc}-x86_64.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-x86_64-unknown-linux-gnu.tar.gz")
sha256sums=('915cf73aad93ba3ae5add4e76803b030c1de18c4e93afe37a3eadb9737c22da5'
'06d192e34ed1d62acb191604c71067f6b40bda375e44f92b953bdb0ad7c524db')
sha256sums_x86_64=('6ffce42e64b8c0a3da272eb654ba82273e045454d5f3d3c8e4633840e470a6b9')
prepare() {
cd "${srcdir}"
mkdir -p "${srcdir}/${_pkgsrc}-${CARCH}"
bsdtar -xzf "${_pkgsrc}-${CARCH}.tar.gz" --strip-components 1 -C "${srcdir}/${_pkgsrc}-${CARCH}"
}
build() {
cd "${srcdir}"
mv -f "README-${pkgver}.md" "${_pkgsrc}-${CARCH}/README.md"
mv -f "LICENSE-${pkgver}" "${_pkgsrc}-${CARCH}/LICENSE"
}
package() {
cd "${srcdir}/${_pkgsrc}-${CARCH}"
install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
cd "${pkgdir}/usr/bin"
ln -s "${_pkgname}" "fzz"
}
|