upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-mohawk / trunk / PKGBUILD
blobbed4430df123613753e088f27304b6ba76d60643
1 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
3 _pkgname=mohawk
4 pkgname=python-mohawk
5 pkgver=1.1.0
6 pkgrel=7
7 pkgdesc='Python library for Hawk HTTP authorization'
8 arch=('any')
9 url='https://github.com/kumar303/mohawk'
10 license=('BSD')
11 depends=('python-six')
12 makedepends=('python-setuptools')
13 checkdepends=('python-mock' 'python-nose')
14 source=("https://github.com/kumar303/$_pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz")
15 sha256sums=('995ecf009a92efb18a6503707e0c4d9887fe758102d824ca3e5a5625fee1b8bd')
17 build() {
18   cd $_pkgname-$pkgver
19   python setup.py build
22 check() {
23   cd $_pkgname-$pkgver
24   nosetests
27 package() {
28   cd $_pkgname-$pkgver 
29   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
30   install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"