updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / explain-git / PKGBUILD
blob7b797399f1f2e9416bb7a79841389cf2547e6db4
1 # Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
2 pkgname=explain-git
3 pkgver=20111105
4 pkgrel=1
5 pkgdesc="Annotate commands using a simple markup language"
6 arch=('any')
7 url='http://www.uninformativ.de/projects/?q=explain'
8 license=('custom:PIZZA-WARE')
9 depends=('python2')
10 makedepends=('git')
12 _gitroot="git://github.com/vain/explain.git"
13 _gitname="master"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [[ -d "$_gitname" ]]; then
20     cd "$_gitname" && git pull origin
21     msg "The local files are updated."
22   else
23     git clone "$_gitroot" "$_gitname"
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
34 package() {
35   cd "$srcdir/$_gitname-build"
36   install -Dm755 explain.py "$pkgdir"/usr/bin/explain.py
37   install -Dm644 README.md \
38     "$pkgdir/usr/share/doc/${pkgname%-git}/README.md"
39   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
42 # vim:set ts=2 sw=2 et: