archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-cram / repos / community-any / PKGBUILD
blobdbe9ca5096f6e092e39da41472b3dc4fc0fc1d01
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
3 # Contributor: Thomas S Hatch <thatch45@gmail.com>
5 pkgname=python-cram
6 pkgver=0.7
7 pkgrel=10
8 pkgdesc='Functional tests for command line applications'
9 arch=('any')
10 url='https://bitheap.org/cram/'
11 license=('GPL')
12 depends=('python')
13 source=("https://bitheap.org/cram/cram-$pkgver.tar.gz")
14 sha512sums=('9fa57e504abac8fd15bf5ff4a74405cb7acd10fd4c797adee87052a4f1c4e975bbc0f4219afd9485358b2c2939b48b3ffe538ae2abc6eea71e0ba8b458d50103')
16 build() {
17   cd "$srcdir"/cram-$pkgver
18   python setup.py build
21 check() {
22   cd "$srcdir"/cram-$pkgver
23   PYTHONPATH="$PWD/build/lib:$PYTHONPATH" PYTHON=python python scripts/cram tests
26 package() {
27   cd cram-$pkgver
28   python setup.py install --root="$pkgdir" -O1