aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/APKBUILD
blob: 5e460521a517d06749853b57a03182431722448f (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.0.2
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-timezone-move-etc-zoneinfo-localtime-to-etc-lo.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="47d68ae225cd301a4c77230299892c72  alpine-conf-3.0.2.tar.xz
d068ca120f9264c993bd8a62d457959f  0001-setup-timezone-move-etc-zoneinfo-localtime-to-etc-lo.patch"
sha256sums="2973063ef0bb6da8bab3d6e87d1815ce4844722cc10e98b95367e6f85588d186  alpine-conf-3.0.2.tar.xz
fd4f7724cbe3e92378b20e10b948b9d8e0b0548dce2b96acad92b8d75bf46640  0001-setup-timezone-move-etc-zoneinfo-localtime-to-etc-lo.patch"
sha512sums="08d2d4afe25b27796d08f48a369a245ea695785b5db4eda33a8569b661a16fb1560cbb6e98bebb07bc7afc18f9c0ea648b66ad7596d8636d0ad7d0112a002e22  alpine-conf-3.0.2.tar.xz
fc4b5579194c46e3214fa6108a229cc2213cedd868278a7b010d13ac751908a821dc1c0c7cc96363723733eae105dd20a77e22d9eb84fcf528f4bb9a91ca1bf9  0001-setup-timezone-move-etc-zoneinfo-localtime-to-etc-lo.patch"