archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-resolvelib / trunk / PKGBUILD
blob43f1b674ce4e16c091ba0df32713bfee8c3d43a4
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-resolvelib
4 pkgver=0.5.5
5 pkgrel=4
6 pkgdesc="Resolve abstract dependencies into concrete ones"
7 url="https://github.com/sarugaku/resolvelib"
8 license=('ISC')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-commentjson' 'python-pytest-runner')
13 source=("$pkgbase-$pkgver.tar.gz::https://github.com/sarugaku/resolvelib/archive/$pkgver.tar.gz")
14 sha512sums=('3da39201c4472d45466750119282fc34591b6d79eb4e6e71ca3f221e43dceead213058b4b72bee00083e9885650a47486bd7496264fba10f623aec7c19dabf00')
16 build() {
17   cd resolvelib-$pkgver
18   python setup.py build
21 check() {
22   cd resolvelib-$pkgver
23   python setup.py pytest
26 package() {
27   cd resolvelib-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/