python2 version of first

This commit is contained in:
Cedric Girard 2017-08-23 12:19:58 +02:00
commit ad3d96f53d
2 changed files with 38 additions and 0 deletions

14
.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 = http://pypi.python.org/packages/source/f/first/first-2.0.1.tar.gz
md5sums = eb62baf10657717238f9dc674b8b681f
pkgname = python2-first

24
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=("http://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: