updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bazinga-git / PKGBUILD
blobd7cd97b7b21e331cf5710bf4e40df2fd654ae2b9
1 # Maintainer: Manuel Fill <ap0calypse@agitatio.org>
2 pkgname=bazinga-git
3 pkgver=20111027
4 pkgrel=1
5 pkgdesc="free console driven blogging software like nanoblogger"
6 arch=('any')
7 url="http://github.com/ap0calypse/bazinga"
8 license=('GPL')
9 depends=('highlight' 'texlive-bin' 'texinfo' 'gnuplot' 'imagemagick' 'ncftp' 'git')
10 makedepends=('git')
11 provides=('bazinga')
13 _gitroot="https://github.com/ap0calypse/bazinga.git"
14 _gitname="bazinga"
16 build() {
17     cd "$srcdir"
18     msg "Connecting to GIT server...."
20     if [ -d $_gitname ] ; then
21         cd $_gitname && git pull origin
22         msg "The local files are updated."
23     else
24         git clone $_gitroot $_gitname
25     fi
27     msg "GIT checkout done or server timeout"
28     msg "Starting make..."
29     rm -rf "$srcdir/$_gitname-build"
30     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 package() {
34     cd "$srcdir/$_gitname-build"
35     install -D -m755 bzg "${pkgdir}/usr/local/bin/bzg"
36     install -D -m644 examples/example-config "${pkgdir}/usr/share/doc/bazinga/example-config"
37     install -D -m644 examples/example-article "${pkgdir}/usr/share/doc/bazinga/example-article"
38     install -D -m644 examples/style-dark.css "${pkgdir}/usr/share/doc/bazinga/style-dark.css"
39     install -D -m644 examples/style-matrix.css "${pkgdir}/usr/share/doc/bazinga/style-matrix.css"
40     install -D -m644 examples/index.template "${pkgdir}/usr/share/doc/bazinga/index.template"
41     install -D -m644 README "${pkgdir}/usr/share/doc/bazinga/README"
42     install -D -m644 AUTHORS "${pkgdir}/usr/share/doc/bazinga/AUTHORS"
43     install -D -m644 LICENSE "${pkgdir}/usr/share/doc/bazinga/LICENSE"
44