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

Felix Yan fyan at archlinux.org
Fri Mar 18 03:46:12 UTC 2016


    Date: Friday, March 18, 2016 @ 04:46:11
  Author: fyan
Revision: 262029

upgpkg: python-lxml 3.6.0-1

Modified:
  python-lxml/trunk/PKGBUILD

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++------------------------
 1 file changed, 24 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-18 03:20:06 UTC (rev 262028)
+++ PKGBUILD	2016-03-18 03:46:11 UTC (rev 262029)
@@ -4,7 +4,7 @@
 
 pkgbase=python-lxml
 pkgname=('python-lxml' 'python2-lxml' 'python-lxml-docs')
-pkgver=3.5.0
+pkgver=3.6.0
 pkgrel=1
 arch=('i686' 'x86_64')
 license=('BSD' 'custom')
@@ -11,33 +11,33 @@
 url="http://lxml.de/"
 makedepends=('libxslt' 'python-cssselect' 'python2-cssselect')
 source=(http://pypi.python.org/packages/source/l/lxml/lxml-${pkgver}.tar.gz{,.asc})
-md5sums=('9f0c5f1eb43ff44d5455dab4b4efbe73'
+md5sums=('5957cc384bd6e83934be35c057ec03b6'
          'SKIP')
 validpgpkeys=('1737D5FB8DACC53CA96A77AB0D3D536908D3A01E')  # Stefan Behnel
 
 prepare() {
   cp -a lxml-$pkgver{,-py2}
+
+  # Setting LC_CTYPE to workaround encoding issue
+  export LC_CTYPE=en_US.UTF-8
 }
 
 build() {
-  cd lxml-$pkgver
+  cd "$srcdir"/lxml-$pkgver
   python setup.py build
 
-  cd ../lxml-$pkgver-py2
+  cd "$srcdir"/lxml-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  # Setting LANG to workaround encoding issue
   # TODO: Find a sane way to skip inplace build
 
-  cd lxml-$pkgver
-  LANG=en_US.UTF-8 make PYTHON=python test
-  # PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.4:$PYTHONPATH" python test.py -p -v
+  cd "$srcdir"/lxml-$pkgver
+  make PYTHON=python test
 
-  cd ../lxml-$pkgver-py2
-  LANG=en_US.UTF-8 make PYTHON=python2 test
-  # PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 test.py -p -v
+  cd "$srcdir"/lxml-$pkgver-py2
+  make PYTHON=python2 test
 }
 
 package_python2-lxml() {
@@ -47,14 +47,14 @@
               'python-lxml-docs: offline docs')
 
   cd lxml-$pkgver-py2
-  python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
+  python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
  
   install -Dm644 LICENSES.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
   install -Dm644 doc/licenses/BSD.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/BSD.txt
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
   install -Dm644 doc/licenses/elementtree.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/elementtree.txt
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
 }
 
 package_python-lxml() {
@@ -63,14 +63,14 @@
   optdepends=('python-lxml-docs: offline docs')
 
   cd lxml-$pkgver
-  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
+  python setup.py install --root="$pkgdir" --skip-build --optimize=1
   
   install -Dm644 LICENSES.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
   install -Dm644 doc/licenses/BSD.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/BSD.txt
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
   install -Dm644 doc/licenses/elementtree.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/elementtree.txt
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
 }
 
 package_python-lxml-docs() {
@@ -78,13 +78,13 @@
   options=('docs')
 
   cd lxml-$pkgver
-  install -d "${pkgdir}"/usr/share/doc/${pkgbase}
-  cp -r doc/html "${pkgdir}"/usr/share/doc/${pkgbase}
+  install -d "$pkgdir"/usr/share/doc/$pkgbase
+  cp -r doc/html "$pkgdir"/usr/share/doc/$pkgbase
 
   install -Dm644 LICENSES.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
   install -Dm644 doc/licenses/BSD.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/BSD.txt
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
   install -Dm644 doc/licenses/elementtree.txt \
-    "${pkgdir}"/usr/share/licenses/$pkgname/elementtree.txt
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
 }



More information about the arch-commits mailing list