updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / plastex-cvs / PKGBUILD
blob63158bde352f26879a8237291982ca48dcfbf15b
1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 pkgname=plastex-cvs
3 pkgver=20101107
4 pkgrel=1
5 pkgdesc="Python-based LaTeX document processing framework."
6 arch=('any')
7 url="http://plastex.sourceforge.net/"
8 license=('custom')
9 depends=('python2' 'texlive-core')
10 makedepends=('cvs')
11 provides=(plastex)
12 conflicts=(plastex)
13 source=()
14 md5sums=()
15 #generate with 'makepkg -g'
17 _cvsroot=":pserver:anonymous@plastex.cvs.sourceforge.net:/cvsroot/plastex"
18 _cvsmod="plastex"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
23   if [ -d $_cvsmod/CVS ]; then
24     cd $_cvsmod
25     cvs -z3 update -d
26   else
27     cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
28     cd $_cvsmod
29   fi
31   msg "CVS checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_cvsmod-build"
35   cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
36   cd "$srcdir/$_cvsmod-build"
39   #
40   # BUILD HERE
41   #
43   python2 setup.py install --root=$pkgdir/ 
44   install -D -m644 $srcdir/$_cvsmod-build/LICENSE \
45     $pkgdir/usr/share/licenses/$pkgname/LICENSE