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

Felix Yan felixonmars at archlinux.org
Fri Jul 5 18:05:32 UTC 2019


    Date: Friday, July 5, 2019 @ 18:05:32
  Author: felixonmars
Revision: 487487

upgpkg: pius 2.2.7-2

revert back to python2 (https://github.com/jaymzh/pius/issues/131)

Modified:
  pius/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-05 18:02:53 UTC (rev 487486)
+++ PKGBUILD	2019-07-05 18:05:32 UTC (rev 487487)
@@ -2,28 +2,36 @@
 
 pkgname=pius
 pkgver=2.2.7
-pkgrel=1
+pkgrel=2
 pkgdesc="PGP Individual User Signer"
 arch=('any')
 url="https://www.phildev.net/pius/"
 license=('GPL')
-depends=('python-six')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/jaymzh/pius/archive/v$pkgver.tar.gz")
-sha512sums=('079fe93592383d0974a8d583772087d3ac0544dce92d4cbb0b4fd5169bd8e26bac71729f9ef989bbdea2911ba11a60eef48e274864f6601e53aba6b887f79978')
+depends=('python2-six')
+checkdepends=('python2-backports.unittest_mock' 'python2-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jaymzh/pius/archive/v$pkgver.tar.gz"
+        shebang.patch::https://github.com/jaymzh/pius/commit/f5f0d7ec21e784c6c876dfdaf82afbb10cd973cb.patch)
+sha512sums=('079fe93592383d0974a8d583772087d3ac0544dce92d4cbb0b4fd5169bd8e26bac71729f9ef989bbdea2911ba11a60eef48e274864f6601e53aba6b887f79978'
+            '0e2fc3609f9ed3e56b6d9a630626724c7eb76db241426e90ab69bd84db8a67eac9408363c3a8b57e6bcb054536ef0f08b380f2aa693f4cdc8c7e761f09083c7c')
 
+prepare() {
+  cd pius-$pkgver
+  patch -p1 -i ../shebang.patch
+}
+
 build() {
   cd pius-$pkgver
-  python setup.py build
+  python2 setup.py build
 }
 
 check() {
   cd pius-$pkgver
-  ./run_tests
+  python2 -m pytest
 }
 
 package() {
   cd pius-$pkgver
-  python setup.py install -O1 --prefix=/usr --root="$pkgdir"
+  python2 setup.py install -O1 --prefix=/usr --root="$pkgdir"
 }
 
 # vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list