updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / pymotw / PKGBUILD
blobcc0b9230d5547fd717cd5fd5d10f45940fa436dd
1 # Contributor: tocer <tocer.deng@gmail.com>
3 pkgname=pymotw
4 _pkgname=PyMOTW
5 pkgver=1.132
6 pkgrel=2
7 pkgdesc="A tour of the Python standard library through short examples"
8 arch=(any)
9 url="http://www.doughellmann.com/PyMOTW/"
10 license=(custom)
11 source=(http://www.doughellmann.com/downloads/$_pkgname-$pkgver.tar.gz)
12 depends=('python2')
13 md5sums=('c9a5716a98d0d1b101ac654e2b2d3f41')
15 build() {
16   cd $srcdir/$_pkgname-$pkgver
17   python2 setup.py install --root=$pkgdir/ || return 1
19   sed -i '1s/python$/python2/' motw
20   install -D -m755 motw $pkgdir/usr/bin/motw
21   install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE