summaryrefslogtreecommitdiff
path: root/community/xmlstarlet/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/xmlstarlet/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/xmlstarlet/PKGBUILD')
-rw-r--r--community/xmlstarlet/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/xmlstarlet/PKGBUILD b/community/xmlstarlet/PKGBUILD
new file mode 100644
index 000000000..a701d2730
--- /dev/null
+++ b/community/xmlstarlet/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 83360 2013-01-30 09:39:18Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: PyroPeter <abi1789@googlemail.com>
+# Contributor: BlackEagle <ike.devolder@scarlet.be>
+# Contributor: chochem <chochem@gmail.com>
+
+pkgname=xmlstarlet
+pkgver=1.4.2
+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=('ee8df42efd2417f74a1f5e3b7fe9e023')
+
+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
+}