mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:57:14 +08:00
37 lines
955 B
Bash
37 lines
955 B
Bash
# Maintainer: AlmAck <almack@chakraos.org>
|
|
|
|
pkgname=libxslt
|
|
pkgver=1.1.32
|
|
pkgrel=1
|
|
pkgdesc="XML stylesheet transformation library"
|
|
arch=('x86_64')
|
|
url="http://xmlsoft.org/XSLT/"
|
|
license=('custom')
|
|
depends=('libxml2' 'libgcrypt')
|
|
makedepends=('python2')
|
|
checkdepends=('docbook-xml')
|
|
source=(ftp://xmlsoft.org/libxslt/${pkgname}-${pkgver}.tar.gz)
|
|
md5sums=('1fc72f98e98bf4443f1651165f3aa146')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed -e 's|/usr/bin/python -u|/usr/bin/python2 -u|g' -e 's|/usr/bin/python$|/usr/bin/python2|g' -i python/tests/*.py
|
|
./configure --prefix=/usr --with-python=/usr/bin/python2
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
|
|
rm -f "${pkgdir}"/usr/lib/python*/site-packages/*.a
|
|
}
|