summaryrefslogtreecommitdiffstats
path: root/abs/core/libxslt/PKGBUILD
blob: c956c0f082f0326f3e32966f27bac694b33348d9 (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
30
31
# $Id: PKGBUILD 87866 2010-08-18 15:17:10Z ibiru $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>

pkgname=libxslt
pkgver=1.1.26
pkgrel=2
pkgdesc="XML stylesheet transformation library"
arch=('i686' 'x86_64')
url="http://xmlsoft.org/XSLT/"
license=('custom')
depends=('libxml2>=2.7.7' 'libgcrypt>=1.4.6')
makedepends=('python2')
options=('!libtool')
source=(ftp://xmlsoft.org/libxslt/${pkgname}-${pkgver}.tar.gz)
md5sums=('e61d0364a30146aaa3001296f853b2b9')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --with-python=/usr/bin/python2.7
  make
  make DESTDIR="${pkgdir}" install

  for f in pyxsltproc.py extfunc.py exslt.py extelem.py basic.py; do
      sed -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \
          -i ${pkgdir}/usr/share/doc/libxslt-python-1.1.26/examples/${f}
  done

  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}