[arch-commits] Commit in libxslt/trunk (PKGBUILD)
Jan de Groot
jgc at archlinux.org
Mon Oct 31 21:53:50 UTC 2016
Date: Monday, October 31, 2016 @ 21:53:49
Author: jgc
Revision: 279549
upgpkg: libxslt 1.1.29+23+geb1030d-1
Fix some security issues
Modified:
libxslt/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-31 21:50:07 UTC (rev 279548)
+++ PKGBUILD 2016-10-31 21:53:49 UTC (rev 279549)
@@ -3,7 +3,7 @@
# Contributor: John Proctor <jproctor at prium.net>
pkgname=libxslt
-pkgver=1.1.29
+pkgver=1.1.29+23+geb1030d
pkgrel=1
pkgdesc="XML stylesheet transformation library"
arch=('i686' 'x86_64')
@@ -10,18 +10,25 @@
url="http://xmlsoft.org/XSLT/"
license=('custom')
depends=('libxml2' 'libgcrypt')
-makedepends=('python2')
+makedepends=('python2' git)
checkdepends=('docbook-xml' 'python')
-source=(http://xmlsoft.org/sources/${pkgname}-${pkgver}.tar.gz)
-md5sums=('a129d3c44c022de3b9dcf6d6f288d72e')
+_commit=eb1030de31165b68487f288308f9d1810fed6880 # master
+source=("git://git.gnome.org/libxslt#commit=$_commit")
+md5sums=('SKIP')
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
prepare() {
- cd $pkgname-$pkgver
+ cd $pkgname
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
+ NOCONFIGURE=1 ./autogen.sh
}
build() {
- cd $pkgname-$pkgver
+ cd $pkgname
./configure --prefix=/usr --with-python=/usr/bin/python2
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
@@ -29,12 +36,12 @@
}
check() {
- cd $pkgname-$pkgver
+ cd $pkgname
make check
}
package() {
- cd $pkgname-$pkgver
+ cd $pkgname
make DESTDIR="${pkgdir}" install
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
More information about the arch-commits
mailing list