blob: 49617cce96678fec3fdfc4501b97a2dc3590feb2 (
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
|
# Maintainer: Vinson Chuong <vinsonchuong@gmail.com>
pkgname=gitaur
pkgver=0.1.8
pkgrel=1
pkgdesc=A\ set\ of\ command-line\ scripts\ that\ automate\ common\ tasks\ in\ maintaining\ AUR\ packages\ on\ GitHub
arch=(any)
url=https://github.com/vinsonchuong/gitaur
license=(MIT)
depends=(
aura
bash-common-parse-options
hub
jq
namcap
ninka
pkgbuild-introspection
)
makedepends=(clidoc)
source=(https://github.com/vinsonchuong/gitaur/archive/v0.1.8-1.tar.gz)
md5sums=('28642814d4e413fb35776ea43b6deb64')
build ()
{
cd "${srcdir}/${pkgname}-${pkgver}-${pkgrel}";
clidoc doc/*.md
}
package ()
{
cd "${srcdir}/${pkgname}-${pkgver}-${pkgrel}";
[[ -d 'bin' ]] && install -Dm755 -t "${pkgdir}/usr/bin" bin/*;
if [[ -d 'lib' ]]; then
for file in $(find 'lib' -type 'f');
do
install -D -m "$(stat -c '%a' "$file")" "$file" "${pkgdir}/usr/lib/${pkgname}/${file#'lib/'}";
done;
fi;
[[ -d 'help' ]] && install -Dm644 -t "${pkgdir}/usr/share/${pkgname}/help" help/*;
[[ -f 'README.md' ]] && install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md';
[[ -d 'doc' ]] && install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/doc" doc/*.md;
[[ -f 'LICENSE' ]] && install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" 'LICENSE';
[[ -d 'man' ]] && install -Dm644 -t "${pkgdir}/usr/share/man/man1" man/*
}
|