aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-19 08:41:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-19 08:42:04 +0000
commitf519d04f84b33fa3c9eeda53d6434ff9bccab61d (patch)
treeae1b6ced46adee8577ca6995cb68b4ee06bb26eb /main/abuild/APKBUILD
parent03250c1b50f9d9f705d454864045a65c91a2d346 (diff)
downloadaports-f519d04f84b33fa3c9eeda53d6434ff9bccab61d.tar.bz2
aports-f519d04f84b33fa3c9eeda53d6434ff9bccab61d.tar.xz
main/abuild: avoid duplicate provides
Diffstat (limited to 'main/abuild/APKBUILD')
-rw-r--r--main/abuild/APKBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/main/abuild/APKBUILD b/main/abuild/APKBUILD
index 7eb2a82584..c498b6cb2b 100644
--- a/main/abuild/APKBUILD
+++ b/main/abuild/APKBUILD
@@ -1,8 +1,9 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgdesc="Script to build Alpine Packages"
pkgname=abuild
-pkgver=2.12.1
-pkgrel=9
+pkgver=2.12.1_git20120919
+_ver=${pkgver%_git*}
+pkgrel=0
url=http://git.alpinelinux.org/cgit/abuild/
depends="fakeroot file sudo pax-utils openssl apk-tools>=2.0.7-r1 uclibc-utils
abuildhelper curl"
@@ -12,11 +13,12 @@ subpackages="apkbuild-cpan:cpan"
pkggroups="abuild"
arch="all"
license=GPL-2
-source="http://git.alpinelinux.org/cgit/abuild/snapshot/abuild-$pkgver.tar.bz2
+source="http://git.alpinelinux.org/cgit/abuild/snapshot/abuild-$_ver.tar.bz2
abuild-git.patch"
+_builddir="$srcdir/$pkgname-$_ver"
prepare() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
for i in $source; do
case $i in
*.patch)
@@ -30,12 +32,12 @@ prepare() {
}
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
make install DESTDIR="$pkgdir"
install -m 644 abuild.conf "$pkgdir"/etc/abuild.conf
install -d -m 775 -g abuild "$pkgdir"/var/cache/distfiles
@@ -50,4 +52,4 @@ cpan() {
}
md5sums="92348750a3354c3ec7b811716543b8e5 abuild-2.12.1.tar.bz2
-90018b9a6e428de018cdd7ff868ebf85 abuild-git.patch"
+896303f1bf063284ce663f6e506fdacd abuild-git.patch"