[arch-commits] Commit in libxslt/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sun Sep 10 08:16:50 UTC 2017


    Date: Sunday, September 10, 2017 @ 08:16:49
  Author: heftig
Revision: 305216

1.1.30-1

Modified:
  libxslt/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++----------------
 1 file changed, 14 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-09-10 08:11:19 UTC (rev 305215)
+++ PKGBUILD	2017-09-10 08:16:49 UTC (rev 305216)
@@ -3,16 +3,16 @@
 # Contributor: John Proctor <jproctor at prium.net>
 
 pkgname=libxslt
-pkgver=1.1.29+42+gac341cbd
-pkgrel=2
+pkgver=1.1.30
+pkgrel=1
 pkgdesc="XML stylesheet transformation library"
-arch=('i686' 'x86_64')
 url="http://xmlsoft.org/XSLT/"
-license=('custom')
-depends=('libxml2' 'libgcrypt')
-makedepends=('python2' git)
-checkdepends=('docbook-xml' 'python')
-_commit=ac341cbd792ee572941cc9a66e73800219a1a386  # master
+arch=(i686 x86_64)
+license=(custom)
+depends=(libxml2 libgcrypt)
+makedepends=(python2 git)
+checkdepends=(docbook-xml python)
+_commit=bec1788d0627db0b510dcb337f989fae0440dbd5  # tags/v1.1.30^0
 source=("git+https://git.gnome.org/browse/libxslt#commit=$_commit")
 md5sums=('SKIP')
 
@@ -23,7 +23,9 @@
 
 prepare() {
   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
+  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
 }
 
@@ -30,7 +32,6 @@
 build() {
   cd $pkgname
   ./configure --prefix=/usr --with-python=/usr/bin/python2
-
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
@@ -42,10 +43,7 @@
 
 package() {
   cd $pkgname
-  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
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  find "$pkgdir" -name '*.a' -print -delete
 }



More information about the arch-commits mailing list