1 # Maintainer: Chris Brannon <chris@the-brannons.com>
5 pkgdesc="Command-Line Interface to GitHub"
7 url=http://the-brannons.com/software/cligh.html
9 depends=(python2 python-github2-git)
10 source=(http://the-brannons.com/software/$pkgname-$pkgver.tar.gz)
11 md5sums=('55737f4f9b064fcab0f584155606214b')
18 cd "$srcdir/$pkgname-$pkgver"
20 python2 setup.py install --root="$pkgdir" --optimize=1
21 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
22 install -dm755 "$pkgdir/usr/share/doc/$pkgname"
23 install -m644 README.md AUTHORS "$pkgdir/usr/share/doc/$pkgname"
24 find "$pkgdir" -name '*.py' -print0 |xargs -0 \
25 sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
26 -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
29 # vim:set ts=2 sw=2 et: