[arch-commits] Commit in python-pdfminer/repos/community-any (PKGBUILD PKGBUILD)

Bruno Pagani archange at archlinux.org
Wed Apr 8 17:48:43 UTC 2020


    Date: Wednesday, April 8, 2020 @ 17:48:43
  Author: archange
Revision: 612686

archrelease: copy trunk to community-any

Added:
  python-pdfminer/repos/community-any/PKGBUILD
    (from rev 612685, python-pdfminer/trunk/PKGBUILD)
Deleted:
  python-pdfminer/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   62 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 35 insertions(+), 27 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-08 17:48:36 UTC (rev 612685)
+++ PKGBUILD	2020-04-08 17:48:43 UTC (rev 612686)
@@ -1,27 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=pdfminer
-pkgname=python-${_pkg}
-pkgver=20200124
-pkgrel=1
-pkgdesc="Python PDF Parser"
-arch=(any)
-url="https://github.com/pdfminer/pdfminer.six"
-license=(MIT)
-depends=(python-chardet python-pycryptodome python-sortedcontainers)
-makedepends=(python-setuptools cython)
-source=(${url}/releases/download/${pkgver}/${_pkg}.six-${pkgver}.tar.gz)
-sha256sums=('9f34f8f61cd72ae23ef572e0ea1c93cd2b1e4a6d1137d14ed23763b5b2094e13')
-
-build() {
-  cd ${_pkg}.six-${pkgver}
-  python setup.py build
-}
-
-package() {
-  cd ${_pkg}.six-${pkgver}
-  python setup.py install --skip-build --prefix=/usr --root="${pkgdir}" --optimize=1
-  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-  # Fix ownership
-  chmod a+r "${pkgdir}"$(python -c "import site; print(site.getsitepackages()[0])")/pdfminer/cmap/*
-}

Copied: python-pdfminer/repos/community-any/PKGBUILD (from rev 612685, python-pdfminer/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-08 17:48:43 UTC (rev 612686)
@@ -0,0 +1,35 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pdfminer
+pkgname=python-${_pkg}
+pkgver=20200402
+pkgrel=1
+pkgdesc="Python PDF Parser"
+arch=(any)
+url="https://github.com/pdfminer/pdfminer.six"
+license=(MIT)
+depends=(python-chardet python-pycryptodome python-sortedcontainers)
+makedepends=(python-setuptools cython)
+checkdepends=(python-nose)
+# Provided tarballs do not include tests
+#source=(${url}/releases/download/${pkgver}/${_pkg}.six-${pkgver}.tar.gz)
+source=(${url}/archive/${pkgver}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('9cb849b95046f064b6ac2350234349007d2efd52647df6d755521e48dde5a28e')
+
+build() {
+  cd ${_pkg}.six-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}.six-${pkgver}
+  nosetests
+}
+
+package() {
+  cd ${_pkg}.six-${pkgver}
+  python setup.py install --skip-build --prefix=/usr --root="${pkgdir}" --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+  # Fix ownership
+  chmod a+r "${pkgdir}"$(python -c "import site; print(site.getsitepackages()[0])")/pdfminer/cmap/*
+}


More information about the arch-commits mailing list