1 # Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
5 pkgdesc="Annotate commands using a simple markup language"
7 url='http://www.uninformativ.de/projects/?q=explain'
8 license=('custom:PIZZA-WARE')
12 _gitroot="git://github.com/vain/explain.git"
17 msg "Connecting to GIT server...."
19 if [[ -d "$_gitname" ]]; then
20 cd "$_gitname" && git pull origin
21 msg "The local files are updated."
23 git clone "$_gitroot" "$_gitname"
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"
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: