Commit ba771e47 authored by Francesco Colista's avatar Francesco Colista

community/xmlstarlet: moved from unmaintained, cleaned up APKBUILD

parent aec0ebf7
......@@ -8,35 +8,28 @@ url="http://xmlstar.sourceforge.net"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev ghostscript libxml2-dev libxslt-dev"
makedepends="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
}
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
LIBXSLT_PREFIX=/usr LIBXML_PREFIX=/usr ./configure --prefix=/usr --enable-build-docs
cd "$builddir"
LIBXSLT_PREFIX=/usr \
LIBXML_PREFIX=/usr \
./configure \
--prefix=/usr \
--enable-build-docs
make || return 1
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="${pkgdir}" install
install -Dm0644 Copyright $pkgdir/usr/share/licenses/$pkgname/COPYING
ln -s xml ${pkgdir}/usr/bin/xmlstarlet
install -Dm0644 Copyright $pkgdir/usr/share/licenses/$pkgname/COPYING
}
md5sums="f3c5dfa3b1a2ee06cd57c255cc8b70a0 xmlstarlet-1.6.1.tar.gz"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment