# $Id: PKGBUILD 81711 2012-12-27 13:15:34Z spupykin $ # Maintainer: Sergej Pupykin # Maintainer: PyroPeter # Contributor: BlackEagle # Contributor: chochem pkgname=xmlstarlet pkgver=1.4.1 pkgrel=1 pkgdesc="A set of tools to transform, query, validate, and edit XML documents" arch=('i686' 'x86_64') url="http://xmlstar.sourceforge.net/" license=('MIT') depends=('libxslt>=1.1.9') source=("xmlstarlet-$pkgver.tar.gz::http://sourceforge.net/projects/xmlstar/files/xmlstarlet/$pkgver/xmlstarlet-$pkgver.tar.gz/download") md5sums=('fd78564417634583692b04193bc0bbc6') build() { cd "$srcdir/$pkgname-$pkgver" local xsltlibs=$(pkg-config --libs libxslt libexslt) local xmllibs=$(pkg-config --libs libxml-2.0) LIBXSLT_PREFIX=/usr \ LIBXML_PREFIX=/usr \ LIBXSLT_LIBS="${xsltlibs}" \ LIBXML_LIBS="${xmllibs}" \ ./configure --prefix=/usr make make DESTDIR="${pkgdir}" install install -Dm0644 Copyright $pkgdir/usr/share/licenses/$pkgname/COPYING ln -s xml ${pkgdir}/usr/bin/xmlstarlet }