summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7b3a928218b55e979459847067bea53680d0607 (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
29
30
31
32
33
# Maintainer:  Misaka13514 <Misaka13514 at gmail dot com>
# Contributor: Felix Yan <felixonmars@archlinux.org>

pkgname=python-yarg
_name=${pkgname#python-}
pkgver=0.1.10
pkgrel=2
pkgdesc="A semi hard Cornish cheese, also queries PyPI (PyPI client)"
url="https://github.com/kura/yarg"
license=('MIT')
arch=('any')
depends=('python' 'python-requests')
makedepends=('python-build' 'python-wheel' 'python-installer')
checkdepends=('python-nose')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha512sums=('a38f8526e6cf79238edfc69a578737fbd6bea4a6aca8a4f265d2f56023a960f409a97aed9ed5b2b5c272c716fb5e1a4c4dc6fa03ee2d39dfb4762c02b0edb0ec')

build() {
  cd $_name-$pkgver
  python -m build --wheel --no-isolation
}

check() {
  cd $_name-$pkgver
  nosetests
}

package() {
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}