updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / tuxpaint-cvs / PKGBUILD
blob031e6532b0e16db03cd8b8fc91a5160c08acfef9
1 # Contributor: royrocks <royrocks13@gmail.com>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
4 pkgname=tuxpaint-cvs
5 pkgver=20101127
6 pkgrel=1
7 arch=('i686' 'x86_64')
8 pkgdesc="Tux Paint is a free drawing program designed for young children."
9 url="http://www.newbreedsoftware.com/tuxpaint/"
10 license=('GPL')
11 depends=('sdl_ttf' 'sdl_mixer' 'sdl_image' 'sdl_pango' 'libpaper' \
12   'librsvg' 'python2' 'fribidi' 'fontforge')
13 provides=('tuxpaint')
14 conflicts=('tuxpaint')
15 makedepends=('cvs' 'gperf')
16 source=()
17 md5sums=()
18 _cvsroot=":pserver:anonymous@tuxpaint.cvs.sourceforge.net:/cvsroot/tuxpaint"
19 _cvsmod="tuxpaint"
21 build() {
22   cd $srcdir
23   msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
24   if [ -d $_cvsmod/CVS ]; then
25     cd $_cvsmod
26     cvs -z3 update -d
27   else
28     cvs -z3 -d$_cvsroot co -P $_cvsmod
29     cd $_cvsmod
30   fi
31           
32   msg "CVS checkout done or server timeout"
33   msg "Starting make..."
34   rm -r $startdir/src/$_cvsmod-build
35   cp -r ../$_cvsmod ../$_cvsmod-build
36   cd ../$_cvsmod-build
38   sed -i 's+/usr/local+/usr+g' Makefile 
39   make
41 package() {
42   cd $srcdir/$_cvsmod-build
43   make DESTDIR=$pkgdir install 
44   rm -rf $pkgdir/usr/share/tuxpaint/CVS
45   install $pkgdir/usr/X11R6/include/X11/pixmaps/tuxpaint.xpm \
46     $pkgdir/usr/share/pixmaps/tuxpaint.xpm
47   rm -rf $pkgdir/usr/X11R6 
48   sed -i '1s/python/python2/' \
49     $pkgdir/usr/share/doc/tuxpaint/zh_tw/mkTuxpaintIM.py
50   sed -i '1s/python/python2/' \
51     $pkgdir/usr/share/tuxpaint/fonts/locale/zh_tw_docs/maketuxfont.py
52