# Maintainer: Natanael Copa pkgname=augeas pkgver=1.8.0 pkgrel=1 pkgdesc="A configuration editing tool" url="http://augeas.net" arch="all" license="LGPL2+" depends="" makedepends="readline-dev libxml2-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-tests::noarch $pkgname-libs" source="http://download.augeas.net/augeas-$pkgver.tar.gz acf.aug" builddir="$srcdir/$pkgname-$pkgver" 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" 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 } sha512sums="bc7b450b7ef20b7c5bac1b500c89569673a164d32e0f29b5ca100657d0100fcdbb14027d559e206b5ada2c389ac3641181a97cc0c5dcceb1ae1e9932b2decf2c augeas-1.8.0.tar.gz 74d728abdf4d3eebdeb3823c1d2588c214fd52734c8855fe3ddbfb6465d31c88d093df356e42effdd3dbdff1a62c52894c7aa840bd6ea8df4995c4f3aa53e919 acf.aug"