aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-24 06:32:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-24 06:33:05 +0000
commit6537a9c6d215ff611912a39e6f6598cd5fa4d734 (patch)
tree809a0049e8a0eb9bfce8e5a83c8ca760a7e3c7e7 /main/abuild
parent3f44107d1b8160608a7d1bb1bb8cb65f3d6d5c1f (diff)
downloadaports-6537a9c6d215ff611912a39e6f6598cd5fa4d734.tar.bz2
aports-6537a9c6d215ff611912a39e6f6598cd5fa4d734.tar.xz
main/abuild: split out apkbuild-cpan to subpackage
So we can add proper depends. We dont want depend on perl for the abuild main package.
Diffstat (limited to 'main/abuild')
-rw-r--r--main/abuild/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/abuild/APKBUILD b/main/abuild/APKBUILD
index e43fc434b0..a1812f3129 100644
--- a/main/abuild/APKBUILD
+++ b/main/abuild/APKBUILD
@@ -2,7 +2,7 @@
pkgdesc="Script to build Alpine Packages"
pkgname=abuild
pkgver=2.12.0
-pkgrel=0
+pkgrel=1
url=http://git.alpinelinux.org/cgit/abuild/
source="http://git.alpinelinux.org/cgit/abuild/snapshot/abuild-$pkgver.tar.bz2
"
@@ -10,6 +10,7 @@ depends="fakeroot file sudo pax-utils openssl apk-tools>=2.0.7-r1 uclibc-utils
abuildhelper curl"
makedepends="openssl-dev pkgconfig"
install="$pkgname.pre-install $pkgname.pre-upgrade"
+subpackages="apkbuild-cpan:cpan"
pkggroups="abuild"
arch="all"
license=GPL-2
@@ -38,4 +39,12 @@ package() {
install -d -m 775 -g abuild "$pkgdir"/var/cache/distfiles
}
+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="646b78381f0754d782840cba51ddd3b2 abuild-2.12.0.tar.bz2"