# Maintainer: Natanael Copa pkgdesc="Script to build Alpine Packages" pkgname=abuild pkgver=2.5 pkgrel=2 url=http://git.alpinelinux.org/cgit/abuild/ source="http://git.alpinelinux.org/cgit/abuild/snapshot/abuild-$pkgver.tar.bz2 0001-abuild-automatically-add-libgcc-to-depends-when-libp.patch gawk.patch " depends="fakeroot file sudo pax-utils openssl apk-tools" makedepends="openssl-dev pkgconfig" arch="x86 x86_64" 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 } md5sums="2173f4775cb2672661cfc3de55c8450e abuild-2.5.tar.bz2 ce8a7d262d3a341faed0b67c5c894225 0001-abuild-automatically-add-libgcc-to-depends-when-libp.patch 7131a1eb6cbc03a2ec70da91be0d16c4 gawk.patch"