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

Felix Yan felixonmars at archlinux.org
Sat May 25 08:52:19 UTC 2019


    Date: Saturday, May 25, 2019 @ 08:52:18
  Author: felixonmars
Revision: 469934

archrelease: copy trunk to community-x86_64

Added:
  python-first/repos/community-x86_64/
  python-first/repos/community-x86_64/PKGBUILD
    (from rev 469932, python-first/trunk/PKGBUILD)

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

Copied: python-first/repos/community-x86_64/PKGBUILD (from rev 469932, python-first/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-05-25 08:52:18 UTC (rev 469934)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-first
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="Return the first true value of an iterable"
+url="https://github.com/hynek/first"
+license=('MIT')
+arch=('x86_64')
+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