summaryrefslogtreecommitdiff
path: root/libre/xmlstarlet/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-01-22 19:23:52 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-01-22 19:23:52 +0100
commitb543a7db6e4e322e600e0aae3266b87d9b4bb6f4 (patch)
tree5ef5b50c0f818e363a1b6c312ff5af313de2da6c /libre/xmlstarlet/PKGBUILD
parent20d27b4ecd70e8dd86f4e1fb3a1e97ea00479878 (diff)
downloadabslibre-b543a7db6e4e322e600e0aae3266b87d9b4bb6f4.tar.gz
abslibre-b543a7db6e4e322e600e0aae3266b87d9b4bb6f4.tar.bz2
abslibre-b543a7db6e4e322e600e0aae3266b87d9b4bb6f4.zip
Add xmlstarlet from AUR, to be used to build iceweasel-i18n.
Diffstat (limited to 'libre/xmlstarlet/PKGBUILD')
-rw-r--r--libre/xmlstarlet/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/libre/xmlstarlet/PKGBUILD b/libre/xmlstarlet/PKGBUILD
new file mode 100644
index 000000000..a06daf063
--- /dev/null
+++ b/libre/xmlstarlet/PKGBUILD
@@ -0,0 +1,29 @@
+# From https://aur.archlinux.org/packages.php?ID=20101.
+# Maintainer: PyroPeter <abi1789@googlemail.com>
+# Contributor: BlackEagle <ike.devolder@scarlet.be>
+# Contributor: chochem <chochem@gmail.com>
+
+pkgname=xmlstarlet
+pkgver=1.3.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=('custom: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=('5173ad3f01ec0ba0d54bd1fbfc057abf')
+
+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
+ mkdir -p $pkgdir/usr/share/licenses/$pkgname
+ cp Copyright $pkgdir/usr/share/licenses/$pkgname/COPYING
+ ln -s /usr/bin/xml ${pkgdir}/usr/bin/xmlstarlet
+}