[arch-commits] Commit in python-pdftotext/repos/community-x86_64 (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Wed Nov 24 08:35:36 UTC 2021
Date: Wednesday, November 24, 2021 @ 08:35:35
Author: polyzen
Revision: 1054622
archrelease: copy trunk to community-x86_64
Added:
python-pdftotext/repos/community-x86_64/PKGBUILD
(from rev 1054621, python-pdftotext/trunk/PKGBUILD)
Deleted:
python-pdftotext/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 73 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 36 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-24 08:35:17 UTC (rev 1054621)
+++ PKGBUILD 2021-11-24 08:35:35 UTC (rev 1054622)
@@ -1,37 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Shane Stone <shanewstone at gmail>
-
-_name=pdftotext
-pkgname=python-pdftotext
-pkgver=2.2.0
-pkgrel=1
-pkgdesc='Simple PDF text extraction'
-arch=('x86_64')
-url=https://github.com/jalan/pdftotext
-license=('MIT')
-depends=('poppler' 'python')
-makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('efbbfb14cf37ed7ab2c71936bae44707dfed6bb3be7ea5214e9c44c8c258c7af')
-b2sums=('4e196e8c4242826018e4a2d202e63eeb7f83863c5fce52d490d699d779909fffa44883043ddcff31738185a5b61cca0f2a651194a1f60f80dd595262325f0696')
-
-build() {
- cd $_name-$pkgver
- python setup.py build
-}
-
-check() {
- cd $_name-$pkgver
- mkdir -p temp
- local sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
- python setup.py install --skip-build --root=temp
- PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$sitepackages" python -m unittest discover tests
-}
-
-package() {
- cd $_name-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-pdftotext/repos/community-x86_64/PKGBUILD (from rev 1054621, python-pdftotext/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-24 08:35:35 UTC (rev 1054622)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Shane Stone <shanewstone at gmail>
+
+_name=pdftotext
+pkgname=python-pdftotext
+pkgver=2.2.2
+pkgrel=1
+pkgdesc='Simple PDF text extraction'
+arch=('x86_64')
+url=https://github.com/jalan/pdftotext
+license=('MIT')
+depends=('poppler' 'python')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('2a9aa89bc62022408781b39d188fabf5a3ad1103b6630f32c4e27e395f7966ee')
+b2sums=('5ab471cfbccd50d6b9f16e083e2b059c3fedd8eee57988a10516e9ca42dcec7743741ec4d7fd1d00e81efcce58880c9e2b2cc9cb1b9c760cfbbe98ce6cd4f1b9')
+
+build() {
+ cd $_name-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd $_name-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python setup.py install --optimize=1 --skip-build
+ test-env/bin/python -m unittest discover
+}
+
+package() {
+ cd $_name-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list