[arch-commits] Commit in python-first/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat May 25 17:47:24 UTC 2019


    Date: Saturday, May 25, 2019 @ 17:47:23
  Author: felixonmars
Revision: 470730

archrelease: copy trunk to community-any

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

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

Copied: python-first/repos/community-any/PKGBUILD (from rev 470729, python-first/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-05-25 17:47:23 UTC (rev 470730)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-first
+pkgver=2.0.1
+pkgrel=2
+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=('c0794fa6d6185a12ef51c39a5b659a4f09e22c6d7284a8f6f10a62fe0744e4158ced191dff6f160bffd83043a8bf76948214861e9c2341d5d231f6f9b6af19f4')
+
+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