aboutsummaryrefslogtreecommitdiffstats
path: root/main/augeas/APKBUILD
blob: 9e7d4a99f27a176c05552c553167451c32da0e1b (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=augeas
pkgver=0.8.0
pkgrel=0
pkgdesc="a configuration editing tool"
url="http://augeas.net"
arch="all"
license="LGPL"
depends=
makedepends="readline-dev"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-tests"
source="http://augeas.net/download/augeas-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

tests() {
	pkgdesc="Tests for Augeas lenses"
	mkdir -p "$subpkgdir"/usr/share/augeas/lenses/dist/
	mv "$pkgdir"/usr/share/augeas/lenses/dist/tests \
		"$subpkgdir"/usr/share/augeas/lenses/dist/
}
md5sums="e425bcfc46fd5b18473a4ff47c2878d3  augeas-0.8.0.tar.gz"