[arch-commits] Commit in python-pdfrw/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:00:02 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:00:02
  Author: foutrelis
Revision: 748334

archrelease: copy trunk to community-staging-any

Added:
  python-pdfrw/repos/community-staging-any/
  python-pdfrw/repos/community-staging-any/PKGBUILD
    (from rev 748332, python-pdfrw/trunk/PKGBUILD)

----------+
 PKGBUILD |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Copied: python-pdfrw/repos/community-staging-any/PKGBUILD (from rev 748332, python-pdfrw/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:00:02 UTC (rev 748334)
@@ -0,0 +1,26 @@
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# AUR Maintainer: Phil Schaf <flying-sheep at web.de>
+
+_pypiname=pdfrw
+pkgbase=python-pdfrw
+pkgname=(python-pdfrw)
+pkgver=0.4
+pkgrel=5
+pkgdesc='Convert restructured text to PDF via reportlab.'
+arch=('any')
+url="https://github.com/pmaupin/$_pypiname"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$_pypiname-$pkgver.tar.gz::https://github.com/pmaupin/$_pypiname/archive/v$pkgver.tar.gz")
+md5sums=('8dc599a0c808a15f1499c0116ee3c92d')
+
+prepare(){
+    cp -r "$srcdir/$_pypiname-$pkgver" "$srcdir/$_pypiname-$pkgver-py2"
+}
+
+package() {
+    cd "$srcdir/$_pypiname-$pkgver"
+    python3 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