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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 21:49:50 UTC 2021


    Date: Wednesday, December 1, 2021 @ 21:49:50
  Author: felixonmars
Revision: 1061229

archrelease: copy trunk to community-staging-any

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

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

Copied: python-protego/repos/community-staging-any/PKGBUILD (from rev 1061226, python-protego/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 21:49:50 UTC (rev 1061229)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-protego
+pkgver=0.1.16
+pkgrel=5
+pkgdesc="A pure-Python robots.txt parser with support for modern conventions"
+url="https://github.com/scrapy/protego"
+license=('BSD')
+arch=('any')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/protego/archive/$pkgver.tar.gz")
+sha512sums=('3f029f34c4da6dc612dcdd747f56d421dca60f163315e0f72497435dbd74da77a5a02ee35f15774aad431e2b6e69a582c038d435ba0c07a53b3f0c83cb1c958a')
+
+build() {
+  cd protego-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd protego-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd protego-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list