updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / cligh / PKGBUILD
blob416b2362256853131f244d457c44fd1fa5a68735
1 # Maintainer: Chris Brannon <chris@the-brannons.com>
2 pkgname=cligh
3 pkgver=0.1
4 pkgrel=2
5 pkgdesc="Command-Line Interface to GitHub"
6 arch=(any)
7 url=http://the-brannons.com/software/cligh.html
8 license=(BSD)
9 depends=(python2 python-github2-git)
10 source=(http://the-brannons.com/software/$pkgname-$pkgver.tar.gz)
11 md5sums=('55737f4f9b064fcab0f584155606214b')
13 build() {
14   /bin/true
17 package() {
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: