summaryrefslogtreecommitdiff
path: root/~mtjm/python-urlreader/PKGBUILD
blob: 4ffe93c6fb205f15cc529be910182e4a3cc99784 (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
# Maintainer: Michał Masłowski <mtjm@mtjm.eu>

_pkgname=URLReader
pkgname=python-urlreader
pkgver=0.0a1
pkgrel=1
pkgdesc="Simple package for cached URL fetching"
arch=("any")
url="http://hg.mtjm.eu/urlreader/"
license=('AGPL')
depends=('python' 'python-distribute')
checkdepends=('python2')  # due to my laziness
options=(!emptydirs)
source=("http://pypi.python.org/packages/source/U/URLReader/URLReader-${pkgver}.tar.gz")
md5sums=("5a96519a24099aae05fc0612d9cfd650")

check() {
  cd "$srcdir/$_pkgname-$pkgver"
  LANG=en_US.UTF-8 python setup.py test
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  LANG=en_US.UTF-8 python setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: