# Maintainer: Natanael Copa pkgname=alpine-conf pkgver=2.11.1 pkgrel=1 pkgdesc="Alpine configuration management scripts" url=http://git.alpinelinux.org/cgit/$pkgname depends="openrc" source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 0001-setup-apkrepos-do-not-add-empty-mirrors.patch " arch="all" license="GPL-2" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$_builddir" make VERSION=$pkgver-r$pkgrel || return 1 } package() { cd "$_builddir" make install PREFIX= DESTDIR="$pkgdir" for i in commit exclude include status update; do ln -s lbu "$pkgdir"/sbin/lbu_$i done } md5sums="399dbc7c1eedd4b9e7539b141be82b75 alpine-conf-2.11.1.tar.bz2 4513e3c8df12020853c2b87f6ffe380a 0001-setup-apkrepos-do-not-add-empty-mirrors.patch"