diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-12-15 21:42:25 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-12-15 21:42:25 +0000 |
commit | 2566377b7a5e650c109a6535a55e02a9d572a256 (patch) | |
tree | 44a01702748d36a94f71b00577ddbdcb5df44d18 /testing/xmlstarlet | |
parent | 53755310bfe5234314fadbe84cf49c16ec60e959 (diff) | |
download | aports-2566377b7a5e650c109a6535a55e02a9d572a256.tar.bz2 aports-2566377b7a5e650c109a6535a55e02a9d572a256.tar.xz |
testing/xmlstarlet: new aport. Fixes #4934
Diffstat (limited to 'testing/xmlstarlet')
-rw-r--r-- | testing/xmlstarlet/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/xmlstarlet/APKBUILD b/testing/xmlstarlet/APKBUILD new file mode 100644 index 0000000000..e50de8dfe7 --- /dev/null +++ b/testing/xmlstarlet/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=xmlstarlet +pkgver=1.6.1 +pkgrel=0 +pkgdesc="A set of tools to transform, query, validate, and edit XML documents" +url="http://xmlstar.sourceforge.net" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev ghostscript libxml2-dev libxslt-dev" +install="" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::http://sourceforge.net/projects/xmlstar/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz/download" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + LIBXSLT_PREFIX=/usr LIBXML_PREFIX=/usr ./configure --prefix=/usr --enable-build-docs + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="${pkgdir}" install + install -Dm0644 Copyright $pkgdir/usr/share/licenses/$pkgname/COPYING + ln -s xml ${pkgdir}/usr/bin/xmlstarlet +} + +md5sums="f3c5dfa3b1a2ee06cd57c255cc8b70a0 xmlstarlet-1.6.1.tar.gz" +sha256sums="15d838c4f3375332fd95554619179b69e4ec91418a3a5296e7c631b7ed19e7ca xmlstarlet-1.6.1.tar.gz" +sha512sums="4228df812caec7059d7a76986c4d9a4262bd861cc53dca05f341ae6c062be05f1c39fc637918ab00f60f40587c6c556e3c9bfaf8a18b149e3c321a92214dbe8b xmlstarlet-1.6.1.tar.gz" |