1 # Maintainer: PyroPeter <abi1789@googlemail.com>
2 # Contributor: BlackEagle <ike.devolder@scarlet.be>
3 # Contributor: chochem <chochem@gmail.com>
8 pkgdesc="A set of tools to transform, query, validate, and edit XML documents"
10 url="http://xmlstar.sourceforge.net/"
12 depends=('libxslt>=1.1.9')
13 source=("xmlstarlet-$pkgver.tar.gz::http://sourceforge.net/projects/xmlstar/files/xmlstarlet/$pkgver/xmlstarlet-$pkgver.tar.gz/download")
14 md5sums=('4553fb51c38372e862987d0447e730ba')
17 cd "$srcdir/$pkgname-$pkgver"
18 local xsltlibs=$(pkg-config --libs libxslt libexslt)
19 local xmllibs=$(pkg-config --libs libxml-2.0)
21 LIBXSLT_PREFIX=/usr LIBXML_PREFIX=/usr LIBXSLT_LIBS="${xsltlibs}" LIBXML_LIBS="${xmllibs}" ./configure --prefix=/usr
24 make DESTDIR="${pkgdir}" install
25 mkdir -p $pkgdir/usr/share/licenses/$pkgname
26 cp Copyright $pkgdir/usr/share/licenses/$pkgname/COPYING
27 ln -s /usr/bin/xml ${pkgdir}/usr/bin/xmlstarlet