1 # Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
3 pkgname=python-rest2web
6 pkgdesc="A tool for autobuilding html pages for websites or project documentation."
8 url="http://www.voidspace.org.uk/python/rest2web/index.html"
11 makedepends=('setuptools')
13 source=(http://www.voidspace.org.uk/cgi-bin/voidspace/downman.py?file=rest2web-$pkgver.tar.gz)
14 md5sums=('76979ddb6c390377f748c430d8ffc58b')
17 cd "$srcdir/rest2web-$pkgver"
19 python2 -c "import compileall; compileall.compile_dir('$srcdir/rest2web-$pkgver', force=True)"
21 install -Dm755 $srcdir/rest2web-$pkgver/r2w.py $pkgdir/usr/bin/r2w.py
22 sed -i 's|/usr/bin/python$|/usr/bin/python2|' $pkgdir/usr/bin/r2w.py
24 mkdir -p $pkgdir/usr/lib/python2.7/site-packages
25 cp -r $srcdir/rest2web-$pkgver/rest2web $pkgdir/usr/lib/python2.7/site-packages