diff --git a/python2-first/.SRCINFO b/python2-first/.SRCINFO new file mode 100644 index 0000000..9ced026 --- /dev/null +++ b/python2-first/.SRCINFO @@ -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 + diff --git a/python2-first/PKGBUILD b/python2-first/PKGBUILD new file mode 100644 index 0000000..074d8e2 --- /dev/null +++ b/python2-first/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Cedric Girard +# Contributor: Christopher Arndt + +_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: