[arch-commits] Commit in python-pdfrw/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed Jan 1 15:56:28 UTC 2020
Date: Wednesday, January 1, 2020 @ 15:56:27
Author: jelle
Revision: 545839
upgpkg: python-pdfrw 0.4-4
Remove python2
Modified:
python-pdfrw/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-01 15:49:19 UTC (rev 545838)
+++ PKGBUILD 2020-01-01 15:56:27 UTC (rev 545839)
@@ -3,14 +3,15 @@
_pypiname=pdfrw
pkgbase=python-pdfrw
-pkgname=(python-pdfrw python2-pdfrw)
+pkgname=(python-pdfrw)
pkgver=0.4
-pkgrel=3
+pkgrel=4
pkgdesc='Convert restructured text to PDF via reportlab.'
arch=('any')
url="https://github.com/pmaupin/$_pypiname"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
source=("$_pypiname-$pkgver.tar.gz::https://github.com/pmaupin/$_pypiname/archive/v$pkgver.tar.gz")
md5sums=('8dc599a0c808a15f1499c0116ee3c92d')
@@ -18,16 +19,8 @@
cp -r "$srcdir/$_pypiname-$pkgver" "$srcdir/$_pypiname-$pkgver-py2"
}
-package_python-pdfrw() {
- depends=('python')
+package() {
cd "$srcdir/$_pypiname-$pkgver"
python3 setup.py install --root="$pkgdir" -O1
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
-
-package_python2-pdfrw() {
- depends=('python2')
- cd "$srcdir/$_pypiname-$pkgver-py2"
- python2 setup.py install --root="$pkgdir" -O1
- install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
-}
More information about the arch-commits
mailing list