archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-glob2 / trunk / PKGBUILD
blob9359655a11d3f767ae71bc7640f9701d20947375
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-glob2
4 pkgver=0.7
5 pkgrel=4
6 pkgdesc="Version of the glob module that can capture patterns and supports recursive wildcards"
7 url="https://github.com/miracle2k/glob2"
8 license=('BSD')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest')
13 source=("https://github.com/miracle2k/python-glob2/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
14         $pkgname-warning.patch::https://github.com/miracle2k/python-glob2/pull/27.patch)
15 sha512sums=('dc547b16ab522306bb741c81020389d2c19beeeaa4d9ece74c878a4a6234689cf2372af9476369c8f406ff3d58a1fb3dcb7cc48d96a335eceef5c4a2863b67fe'
16             '9d9fae98fbac70f4b639be9732512e6d4465553947371457feaacb73a7152f25171e98ce427494a4ac571d01da1fa1b3ddae4e15841c178d16b96918108cdde7')
18 prepare() {
19   cd python-glob2-$pkgver
20   patch -p1 -i ../$pkgname-warning.patch
23 build() {
24   cd python-glob2-$pkgver
25   python setup.py build
28 check() {
29   cd python-glob2-$pkgver
30   pytest test.py
33 package() {
34   cd python-glob2-$pkgver
35   python setup.py install --root="$pkgdir" --optimize=1
37   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/