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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:42:43 UTC 2021


    Date: Friday, December 3, 2021 @ 00:42:43
  Author: felixonmars
Revision: 1063974

archrelease: copy trunk to community-staging-any

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

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

Copied: python-first/repos/community-staging-any/PKGBUILD (from rev 1063973, python-first/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:42:43 UTC (rev 1063974)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-first
+pkgver=2.0.2
+pkgrel=5
+pkgdesc="Return the first true value of an iterable"
+url="https://github.com/hynek/first"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hynek/first/archive/$pkgver.tar.gz")
+sha512sums=('4d82d4b3ddae8a47ab423b1ab5c281738f0290e428be5ce66ce50ed8110ced656c57a7164a3ca734763db117be437fe32d9d9d9a7cd196296b2ac1c4dd14d675')
+
+build() {
+  cd first-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd first-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd first-$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