Cedric Girard
1b911403c4
git-subtree-dir: python2-first git-subtree-mainline:66dcd20d52
git-subtree-split:b6e300e8e3
24 lines
774 B
Bash
24 lines
774 B
Bash
# 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:
|