[arch-commits] Commit in python-unrardll/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Fri Sep 25 06:01:20 UTC 2020
Date: Friday, September 25, 2020 @ 06:01:19
Author: eschwartz
Revision: 711974
upgpkg: python-unrardll 0.1.4-3: drop python2
no longer used by calibre, and is therefore not needed at all
Modified:
python-unrardll/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++--------------------
1 file changed, 6 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-25 05:59:09 UTC (rev 711973)
+++ PKGBUILD 2020-09-25 06:01:19 UTC (rev 711974)
@@ -2,16 +2,15 @@
# Contributor: Eli Schwartz <eschwartz93 at gmail.com>
_pkgname=unrardll
-pkgbase='python-unrardll'
-pkgname=('python-unrardll' 'python2-unrardll')
+pkgname=python-unrardll
pkgver=0.1.4
-pkgrel=2
+pkgrel=3
pkgdesc="Python wrapper for UnRAR DLL"
arch=('x86_64')
url="https://github.com/kovidgoyal/${_pkgname}"
license=('BSD')
-depends=('libunrar')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('libunrar' 'python')
+makedepends=('python-setuptools')
source=("https://pypi.io/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
sha256sums=('4149c0729cf96a0bae80360e7d94dc40af1088c8da7f6eb8d10e09b8632e92ad'
'SKIP')
@@ -23,7 +22,6 @@
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py build
- python2 setup.py build
}
check() {
@@ -30,23 +28,11 @@
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py test
- python2 setup.py test
}
-package_python-unrardll() {
- depends+=('python')
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
- cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
-package_python2-unrardll() {
- depends+=('python2')
-
- cd "${srcdir}/${_pkgname}-${pkgver}"
- python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
More information about the arch-commits
mailing list