# Maintainer: Natanael Copa pkgdesc="Script to build Alpine Packages" pkgname=abuild pkgver=2.9.1 pkgrel=2 url=http://git.alpinelinux.org/cgit/abuild/ source="http://git.alpinelinux.org/cgit/abuild.git/snapshot/abuild-$pkgver.tar.bz2 0001-buildrepo-fix-purging-of-old-packages.patch 0002-buildrepo-fix-previous-commit.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="e6c418567cd95eacc1278850dc88ee00 abuild-2.9.1.tar.bz2 6ad9a80d107beda61e30b33f4fb35a35 0001-buildrepo-fix-purging-of-old-packages.patch 0da412b51c7f177a140fff08c76a9270 0002-buildrepo-fix-previous-commit.patch"