# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-conf
pkgver=3.20.0
pkgrel=0
pkgdesc="Alpine configuration management scripts"
url="https://git.alpinelinux.org/alpine-conf/about"
arch="all"
license="MIT"
depends="openrc>=0.24.1-r6 busybox>=1.26.1-r3"
checkdepends="kyua sfdisk"
source="https://gitlab.alpinelinux.org/alpine/alpine-conf/-/archive/$pkgver/alpine-conf-$pkgver.tar.gz
	"

build() {
	make PREFIX="/usr" VERSION=$pkgver-r$pkgrel
}

package() {
	make install PREFIX="/usr" DESTDIR="$pkgdir"
	for i in commit exclude include status update; do
		ln -s lbu "$pkgdir"/usr/sbin/lbu_$i
	done
}

check() {
	make check
}

sha512sums="
10bdc5d945df49513da29d30345236f2e70811a26d423bea8c085084774c98a28708cc76f32be1d04d602c9261d17c5eb43dab791159c2c3c560ff785aaef805  alpine-conf-3.20.0.tar.gz
"
