[arch-commits] Commit in python-micawber/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:01:02 UTC 2019
Date: Friday, October 25, 2019 @ 16:01:02
Author: foutrelis
Revision: 519322
archrelease: copy trunk to community-staging-any
Added:
python-micawber/repos/community-staging-any/
python-micawber/repos/community-staging-any/PKGBUILD
(from rev 519321, python-micawber/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-micawber/repos/community-staging-any/PKGBUILD (from rev 519321, python-micawber/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:01:02 UTC (rev 519322)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=micawber
+pkgname=python-micawber
+pkgver=0.5.1
+pkgrel=2
+pkgdesc="A small library for extracting rich content from urls."
+arch=('any')
+url="https://github.com/coleifer/micawber"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-beautifulsoup4' 'python-django')
+optdepends=('python-django: django support'
+ 'python-flask: flask support'
+ 'python-redis: redis caching support')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('309546cc90e7ec4d4a5839f79bff43684ceed4cc7a682ac40d7f09841c89b64631d9667893edd70fd16f0cdb718d05cc5567482bf368da9164615248e5d4e379')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build/lib:${PYTHONPATH}"
+ python setup.py test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list