blob: 0c89f33b7643a6365ac10b57bdc4df7c6a88a76f (
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
|
pkgname="bash-get-git"
pkgver=12.9bee7b8
pkgrel=1
pkgdesc="go get inspired bash get tool"
url="https://github.com/reconquest/bash-get"
arch=('any')
license=('GPL')
makedepends=()
source=("bash-get::git://github.com/reconquest/bash-get.git")
md5sums=(SKIP)
pkgver() {
cd "${pkgname%%-git}"
echo $(git rev-list --count master).$(git rev-parse --short master)
}
build() {
cd "${pkgname%%-git}"
git submodule update --init --recursive
}
package() {
install -DTm 0777 "$srcdir/${pkgname%%-git}/get" "$pkgdir/usr/lib/bash-get/get"
cp -r "$srcdir/${pkgname%%-git}/vendor" "$pkgdir/usr/lib/bash-get/"
install -d "$pkgdir/usr/bin"
ln -fs /usr/lib/bash-get/get "$pkgdir/usr/bin/get"
find "$pkgdir" -wholename "*tests*" -type f -delete
find "$pkgdir" -wholename "*.git*" -type f -delete
find "$pkgdir" -type d -empty -delete
}
|