-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD-git
38 lines (33 loc) · 861 Bytes
/
PKGBUILD-git
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
# Maintainer: Gaël PORTAY <gael.portay@gmail.com>
pkgname=domake-git
pkgver=master
pkgrel=1
pkgdesc='Docker make'
arch=('any')
url="https://github.com/gportay/$pkgname"
license=('MIT')
depends=('docker' 'dosh')
makedepends=('asciidoctor')
checkdepends=('shellcheck')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/gportay/${pkgname%-git}.git")
sha256sums=('SKIP')
validpgpkeys=('8F3491E60E62695ED780AC672FA122CA0501CA71')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
make doc
}
check() {
cd "$srcdir/$pkgname"
make -k check
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" PREFIX="/usr" install install-doc
install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}