Add 'python2-first/' from commit 'b6e300e8e31c5afdb5617aeefb8470c72bd125cd'

git-subtree-dir: python2-first
git-subtree-mainline: 66dcd20d52
git-subtree-split: b6e300e8e3
This commit is contained in:
Cedric Girard 2019-02-14 15:27:08 +01:00
commit 1b911403c4
2 changed files with 38 additions and 0 deletions

14
python2-first/.SRCINFO Normal file
View File

@ -0,0 +1,14 @@
pkgbase = python2-first
pkgdesc = Provides a Python function to get the first element of an iterator.
pkgver = 2.0.1
pkgrel = 1
url = https://github.com/hynek/first/
arch = any
license = MIT
makedepends = python2-setuptools
depends = python2
source = https://pypi.python.org/packages/source/f/first/first-2.0.1.tar.gz
md5sums = eb62baf10657717238f9dc674b8b681f
pkgname = python2-first

24
python2-first/PKGBUILD Normal file
View File

@ -0,0 +1,24 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_pkgname=first
pkgname="python2-${_pkgname}"
pkgver=2.0.1
pkgrel=1
pkgdesc="Provides a Python function to get the first element of an iterator."
arch=('any')
url="https://github.com/hynek/first/"
license=('MIT')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/source/f/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
md5sums=('eb62baf10657717238f9dc674b8b681f')
package() {
cd "$srcdir/$_pkgname-$pkgver"
python2 setup.py install --root="$pkgdir/" --optimize=1
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname"
}
# vim:set ts=2 sw=2 et: