aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/APKBUILD
blob: 06e27456a327b6f942d1e2e698595d9074773adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-conf
pkgver=3.2.0
pkgrel=1
pkgdesc="Alpine configuration management scripts"
url=http://git.alpinelinux.org/cgit/$pkgname
arch="all"
license="GPL2"
depends="openrc"
source="http://dev.alpinelinux.org/archive/alpine-conf/alpine-conf-$pkgver.tar.xz
	0001-setup-interfaces-replace-non-breaking-space-with-nor.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $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" || return 1
	for i in commit exclude include status update; do
		ln -s lbu "$pkgdir"/sbin/lbu_$i
	done
}

md5sums="db580800445157df07c681722aab4b6b  alpine-conf-3.2.0.tar.xz
15eecd5eef638a7366e32c5a8c215674  0001-setup-interfaces-replace-non-breaking-space-with-nor.patch"
sha256sums="9a2d1b23ba9f19ecdd07798d79f8ab6ba63ea28daa1cbbf19da8bd1c2e6b9484  alpine-conf-3.2.0.tar.xz
a8122d90fbd7fd69ef793f8f116a1a518d861b6bfde8b837dbcb6477aa16933e  0001-setup-interfaces-replace-non-breaking-space-with-nor.patch"
sha512sums="9e1b41d94212596693d7e98f3a310b0576c86628ed528a1f112fab72bc4d14e88d99a7bedf834563e0337ccf0b256a450e47bfb3a4dd4935130fcd503d35f2ea  alpine-conf-3.2.0.tar.xz
e11988eda8162463c980fd99f5492aa18e92ccf3e8ac52416145713ecf989758b84a603a8857dd9cf603ffd8cf3ce181a12eb5c90ae8709eac4c85bf1ee9fde0  0001-setup-interfaces-replace-non-breaking-space-with-nor.patch"