summaryrefslogtreecommitdiff
path: root/repo/augeas/augeas.xibuild
blob: 20644826dd3e68d4857ac624340130c980a36c8a (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
#!/bin/sh

NAME="augeas"
DESC="A configuration editing tool"

MAKEDEPS=" autoconf automake libxml2 readline libtool"

PKG_VER=1.12.0
SOURCE="http://download.augeas.net/augeas-$PKG_VER.tar.gz"

ADDITIONAL="
acf.aug
awall.aug
fix-test.patch
"

prepare() {
    apply_patches
	autoreconf -f -i
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-static \
		--enable-shared \
		--disable-gnulib-tests
	make
}

package() {
	make DESTDIR="$PKG_DEST" install
	rm -rf "$PKG_DEST"/usr/lib/charset.alias
	# Upstream packaging mistake, this should never have been installed
	rm -f "$PKG_DEST"/usr/bin/dump

	local lens
	for lens in acf awall; do
		install -m 644 "$BUILD_ROOT"/$lens.aug "$PKG_DEST"/usr/share/augeas/lenses
	done
}