1 # Contributor: royrocks <royrocks13@gmail.com>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
8 pkgdesc="Tux Paint is a free drawing program designed for young children."
9 url="http://www.newbreedsoftware.com/tuxpaint/"
11 depends=('sdl_ttf' 'sdl_mixer' 'sdl_image' 'sdl_pango' 'libpaper' \
12 'librsvg' 'python2' 'fribidi' 'fontforge')
14 conflicts=('tuxpaint')
15 makedepends=('cvs' 'gperf')
18 _cvsroot=":pserver:anonymous@tuxpaint.cvs.sourceforge.net:/cvsroot/tuxpaint"
23 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
24 if [ -d $_cvsmod/CVS ]; then
28 cvs -z3 -d$_cvsroot co -P $_cvsmod
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
38 sed -i 's+/usr/local+/usr+g' Makefile
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