# Maintainer: Natanael Copa pkgname=augeas pkgver=1.5.0 pkgrel=1 pkgdesc="A configuration editing tool" url="http://augeas.net" arch="all" license="LGPL2+" depends="" depends_dev="" makedepends="$depends_dev readline-dev libxml2-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-tests $pkgname-libs" source="http://download.augeas.net/augeas-$pkgver.tar.gz 0001-Shellvars-include-lbu.conf.patch acf.aug" _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 \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 make tests || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -rf "$pkgdir"/usr/lib/charset.alias || return 1 install -m 644 "$srcdir"/acf.aug "$pkgdir"/usr/share/augeas/lenses } tests() { pkgdesc="Tests for Augeas lenses" arch="noarch" mkdir -p "$subpkgdir"/usr/share/augeas/lenses/dist/ mv "$pkgdir"/usr/share/augeas/lenses/dist/tests \ "$subpkgdir"/usr/share/augeas/lenses/dist/ } libs() { pkgdesc="Libraries for augeas" replaces="augeas" mkdir -p "$subpkgdir"/usr/ "$subpkgdir"/usr/share/augeas/ mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1 mv "$pkgdir"/usr/share/augeas/lenses \ "$subpkgdir"/usr/share/augeas/ || return 1 } md5sums="01190e455c513124a2dae29a1182c113 augeas-1.5.0.tar.gz d7c31dd45e5b16f5b940972655e1cb29 0001-Shellvars-include-lbu.conf.patch b1b8d849f0125e1124af92b9925f735e acf.aug" sha256sums="223bb6e6fe3e9e92277dafd5d34e623733eb969a72a382998d204feab253f73f augeas-1.5.0.tar.gz 46b72b2dc0179eea1bc1a3beb9fb8614bbc150134da9e78c0cbe6d0b759217f7 0001-Shellvars-include-lbu.conf.patch e3b4e75119c7939d92c91f3f6c6a553a90923572f9c2e387b2b745470ad6dba4 acf.aug" sha512sums="4683668c6562e14cd39bda69f2fa7f6db5f5a76386521a9b10c41fa2031c10ff158f682b56066d0525554c4229677c64e92f6453f75d185d367bc7481fc10695 augeas-1.5.0.tar.gz 450053c2427d4e105facf223e0ca7d948fdb544d54610fd15f7c52fdbd51aa832744057f1e5e57f4b0899649fed989c9d644409b24c603c9f73dd42999c0e30d 0001-Shellvars-include-lbu.conf.patch 74d728abdf4d3eebdeb3823c1d2588c214fd52734c8855fe3ddbfb6465d31c88d093df356e42effdd3dbdff1a62c52894c7aa840bd6ea8df4995c4f3aa53e919 acf.aug"