blob: 598bd92a2e1fb00ec75ffcc65bedebfcf5fbe4a5 (
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
44
45
46
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgdesc="Script to build Alpine Packages"
pkgname=abuild
pkgver=2.7.2
pkgrel=2
url=http://git.alpinelinux.org/cgit/abuild/
source="http://git.alpinelinux.org/cgit/abuild.git/snapshot/abuild-$pkgver.tar.bz2
0001-abuild-only-warn-when-we-think-there-should-have-bee.patch
enhanced-subpkgdesc.patch
0001-Delete-downloaded-source-if-fails-md5sum.patch
"
depends="fakeroot file sudo pax-utils openssl apk-tools>=2.0.7-r1"
makedepends="openssl-dev pkgconfig"
install="$pkgname.pre-install $pkgname.pre-upgrade"
pkggroups="abuild"
arch="all"
license=GPL-2
prepare() {
cd "$srcdir/$pkgname-$pkgver"
for i in $source; do
case $i in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
}
build() {
cd "$srcdir/$pkgname-$pkgver"
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make install DESTDIR="$pkgdir"
install -m 644 abuild.conf "$pkgdir"/etc/abuild.conf
install -d -m 775 -g abuild "$pkgdir"/var/cache/distfiles
}
md5sums="6b621f93e51faf19dc1edffbfaba67d1 abuild-2.7.2.tar.bz2
865f1e53e76cb77abb356cd6bb5b9588 0001-abuild-only-warn-when-we-think-there-should-have-bee.patch
7fbc7dd27edae8cc5b2bc0a499aac8b6 enhanced-subpkgdesc.patch
29b02ad1d49939e4fe7ad6b022188992 0001-Delete-downloaded-source-if-fails-md5sum.patch"
|