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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:46:21 UTC 2020


    Date: Monday, November 9, 2020 @ 15:46:20
  Author: felixonmars
Revision: 747130

archrelease: copy trunk to community-staging-any

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

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

Copied: python-sentinels/repos/community-staging-any/PKGBUILD (from rev 747129, python-sentinels/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:46:20 UTC (rev 747130)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-sentinels
+pkgver=1.0.0
+pkgrel=5
+pkgdesc="Various objects to denote special meanings in python"
+url="https://github.com/vmalloc/sentinels"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/vmalloc/sentinels/archive/$pkgver.tar.gz")
+sha512sums=('80f5bc13eb902f7e8cba5a227eae3c92187d4d3203493e3e507998338c726985fe3b121e352a4235d5975bf19c3643b8120c1d15756768c268406689c2fc5489')
+
+build() {
+  cd "$srcdir"/sentinels-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/sentinels-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd sentinels-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list