updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / redmine-latex-plugin-git / PKGBUILD
blob779f1fb8aa6ec089fd7f95a469af205b8b844b41
1 # Maintainer: Romain Schmitz <myself at slopjong dot de>
2 pkgname=redmine-latex-plugin-git
3 pkgver=20120125
4 pkgrel=1
5 pkgdesc="Capability to render LaTeX formulas in the redmine wiki"
6 arch=('i686' 'x86_64')
7 url="http://github.com/nisrael/redmine-wiki_latex_plugin/"
8 license=('GPL2')
9 depends=( 'ruby-redmine>=1.2.0')
10 makedepends=('git')
12 _gitroot="git://github.com/nisrael/redmine-wiki_latex_plugin.git"
13 _gitname="redmine-wiki_latex_plugin"
15 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   chown -R redmine:redmine "$srcdir/$_gitname"
31 package(){
32         
33    mkdir -p "$pkgdir/var/lib/redmine/vendor/plugins"
34    cp -R "$srcdir/$_gitname" "$pkgdir/var/lib/redmine/vendor/plugins"