summaryrefslogtreecommitdiff
path: root/libre/xmlstarlet/PKGBUILD
blob: c8c1267153728a05b66d91563407a26351fd9a18 (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
26
27
28
29
# From https://aur.archlinux.org/packages.php?ID=20101.
# Maintainer (Arch): PyroPeter <abi1789@googlemail.com>
# Contributor (Arch): BlackEagle <ike.devolder@scarlet.be>
# Contributor (Arch): 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' 'mips64el')
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
}