summaryrefslogtreecommitdiff
path: root/repo/xmlstarlet/xmlstarlet.xibuild
blob: 3a979ae92c9a5d4a1b82a11c37ef62dd76362a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

NAME="xmlstarlet"
DESC="A set of tools to transform, query, validate, and edit XML documents"

MAKEDEPS="ghostscript libxml2 libxslt"

PKG_VER=1.6.1
SOURCE="https://sourceforge.net/projects/xmlstar/files/xmlstarlet/$PKG_VER/xmlstarlet-$PKG_VER.tar.gz/download"

build() {
	LIBXSLT_PREFIX=/usr \
	LIBXML_PREFIX=/usr \
	./configure \
			--prefix=/usr \
			--enable-build-docs
	make
}

package() {
	make DESTDIR="$PKG_DEST" install
	ln -s xml $PKG_DEST/usr/bin/xmlstarlet
	install -Dm0644 Copyright $PKG_DEST/usr/share/licenses/xmlstarlet/COPYING
}