summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3666c0a8b488f75a1fdc0cf08aa0102b5f128455 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

_pkgname=first
pkgname="python-${_pkgname}"
pkgver=2.0.1
pkgrel=2
pkgdesc="Provides a Python function to get the first element of an iterator."
arch=('any')
url="https://github.com/hynek/first/"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('3bb3de3582cb27071cfb514f00ed784dc444b7f96dc21e140de65fe00585c95e')


build() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py build
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

# vim:set ts=2 sw=2 et: