aboutsummaryrefslogtreecommitdiffstats
path: root/main/augeas/APKBUILD
blob: a336a06364230d451846cdb18f0f8a2617e99c8c (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
44
45
46
47
48
49
50
51
52
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=augeas
pkgver=0.10.0
pkgrel=2
pkgdesc="a configuration editing tool"
url="http://augeas.net"
arch="all"
license="LGPL"
depends=
depends_dev="libxml2-dev"
makedepends="$depends_dev readline-dev"
install=
subpackages="$pkgname-dev $pkgname-doc $pkgname-tests"
source="http://augeas.net/download/augeas-$pkgver.tar.gz
	regexp.c.patch
	augeas-requires-libxml2.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	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"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

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="fe1834e90a066c3208ac0214622c7352  augeas-0.10.0.tar.gz
a9f0fe2cd7e6aebf916747207cc2b537  regexp.c.patch
ea212ab45cde19301646b974cc0941e8  augeas-requires-libxml2.patch"