updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / xml2 / PKGBUILD
blob0516af339d73e7665c3fe808ebcb1d183606546a
1 # Contributor: Orivej Desh <masecretaire@gmx.fr>
2 # Maintainer: Orivej Desh <masecretaire@gmx.fr>
3 pkgname=xml2
4 pkgver=0.4
5 pkgrel=2
6 pkgdesc="XML/Unix Processing Tools to convert XML and HTML to and from a line-oriented format more amenable to processing by classic Unix pipeline processing tools, like grep, sed, awk, cut, shell scripts, and so forth"
7 arch=("i686" "x86_64")
8 url="http://www.ofb.net/~egnor/xml2/"
9 license=("GPL")
10 depends=("libxml2")
11 source=("http://download.ofb.net/gale/$pkgname-$pkgver.tar.gz"
12         "01_use_libxml2_instead_of_libxml.patch")
13 md5sums=('8a0ef16fe0b3e1495307318c590c1ec0'
14          '9e810be33d2abbc8aabd8203db1f9654')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
18   patch -Np1 -i ../01_use_libxml2_instead_of_libxml.patch || return 1
19   autoreconf
20   ./configure --prefix=/usr
21   make || return 1
22   make DESTDIR="$pkgdir" install
23   cd "$pkgdir/usr/bin"
24   rm html2 2html
25   ln -s xml2 html2
26   ln -s 2xml 2html