blob: 56455fff9e0e882477199631abcc8c24762e19d0 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=abuild
pkgver=2.19.1
_ver=${pkgver%_git*}
pkgrel=1
pkgdesc="Script to build Alpine Packages"
url="http://git.alpinelinux.org/cgit/abuild/"
arch="all"
license="GPL2"
depends="fakeroot sudo pax-utils openssl apk-tools>=2.0.7-r1 libc-utils"
if [ "$CBUILD" = "$CHOST" ]; then
depends="$depends curl"
fi
makedepends_build="pkgconfig"
makedepends_host="openssl-dev"
makedepends="$makedepends_host $makedepends_build"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="apkbuild-cpan:cpan"
pkggroups="abuild"
source="http://dev.alpinelinux.org/archive/abuild/abuild-$pkgver.tar.xz
0001-abuild-exit-with-error-if-pkgrel-is-unset.patch
"
_builddir="$srcdir/$pkgname-$_ver"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
sed -i -e "/^CHOST=/s/=.*/=$CHOST/" abuild.conf
}
build() {
cd "$_builddir"
make || return 1
}
package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
install -m 644 abuild.conf "$pkgdir"/etc/abuild.conf || return 1
install -d -m 775 -g abuild "$pkgdir"/var/cache/distfiles || return 1
}
cpan() {
pkgdesc="Script to generate perl APKBUILD from CPAN"
depends="perl perl-libwww perl-json"
arch="noarch"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/apkbuild-cpan "$subpkgdir"/usr/bin/
}
md5sums="8888d0fd3fcc620c8b815c473e51652d abuild-2.19.1.tar.xz
b29c403c214fe62983c9a039ce8c113f 0001-abuild-exit-with-error-if-pkgrel-is-unset.patch"
sha256sums="5e583d53eced10bdc39301c2cb9a74a644033e98daff636533859a929e27ca63 abuild-2.19.1.tar.xz
9f63efc778e67c45403af87b7174355cb03690db51c2605c7d29f818cc24caba 0001-abuild-exit-with-error-if-pkgrel-is-unset.patch"
sha512sums="b2e78b4d23d49477b27283cdc569d9b7bac5745024b50670251682dba26fc24d7d7b5d90d4e252af13ac3109252450169595215650713314f96bbacf485084c6 abuild-2.19.1.tar.xz
9bc14785134b0db7855471ea2dd7da4bb7cb6c5f91b1030a3e23d21c662175248f6455343bfeb0af1d34c046701d977b56c768b435a72051fe270eb56dbc534c 0001-abuild-exit-with-error-if-pkgrel-is-unset.patch"
|