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

Levente Polyak anthraxx at archlinux.org
Mon Jun 11 22:44:32 UTC 2018


    Date: Monday, June 11, 2018 @ 22:44:32
  Author: anthraxx
Revision: 342398

upgpkg: python-libarchive-c 2.8-1

Modified:
  python-libarchive-c/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++++--------------
 1 file changed, 19 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-11 22:20:47 UTC (rev 342397)
+++ PKGBUILD	2018-06-11 22:44:32 UTC (rev 342398)
@@ -2,40 +2,45 @@
 
 pkgbase=python-libarchive-c
 pkgname=('python-libarchive-c' 'python2-libarchive-c')
-pkgver=2.7
-pkgrel=2
+pkgver=2.8
+pkgrel=1
 pkgdesc='Python interface to libarchive'
 url='https://github.com/Changaco/python-libarchive-c'
 arch=('any')
 license=('CC0')
 makedepends=('python-setuptools' 'python2-setuptools' 'libarchive')
-checkdepends=('python-pytest-cov' 'python2-pytest-cov')
+checkdepends=('python-pytest-cov' 'python-mock' 'python2-pytest-cov' 'python2-mock')
 source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/Changaco/python-libarchive-c/archive/${pkgver}.tar.gz)
-sha512sums=('15ef4e3689d412fa524858067fc7f68cc909ffb916367d7edb3e0940f114385bab5d0f97a89f90ced59a5cf6d63e78c89d652f7817d6e49f38d244cc6316a424')
+sha512sums=('1fd6353b75d332791d789493a0e4ab96309010d759fcd26d430812817b4de3a59baf8e4b770c07091985921fedbddef44611f38b4a9ecbaaa399bd886050bec9')
 
 prepare() {
-  cd ${pkgbase}-${pkgver}
-  sed '/os.umask(2)/d' -i setup.py
+  sed '/os.umask(2)/d' -i ${pkgbase}-${pkgver}/setup.py
+  cp -a ${pkgbase}-${pkgver}{,-py2}
 }
 
 check() {
-  cd ${pkgbase}-${pkgver}
-  LC_CTYPE=en_US.UTF-8 py.test
-  LC_CTYPE=en_US.UTF-8 py.test2
+  (cd ${pkgbase}-${pkgver}
+    LC_CTYPE=en_US.UTF-8 py.test
+  )
+  (cd ${pkgbase}-${pkgver}
+    LC_CTYPE=en_US.UTF-8 py.test2
+  )
 }
 
 package_python-libarchive-c() {
   depends=('python' 'libarchive')
   cd ${pkgbase}-${pkgver}
-  python setup.py install -O1 --root="${pkgdir}"
-  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 
 package_python2-libarchive-c() {
   depends=('python2' 'libarchive')
-  cd ${pkgbase}-${pkgver}
-  python2 setup.py install -O1 --root="${pkgdir}"
-  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+  cd ${pkgbase}-${pkgver}-py2
+  python2 setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list