blob: 29d780bcfb5a6ba290e6e43ff130668cd1dc28a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: royrocks <royrocks13@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=tuxpaint-cvs
pkgver=0.9.22.20170729
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Tux Paint is a free drawing program designed for young children."
url="http://www.newbreedsoftware.com/tuxpaint/"
license=('GPL')
depends=('sdl_ttf' 'sdl_mixer' 'sdl_image' 'sdl_pango' 'libpaper' \
'librsvg' 'python2' 'fribidi' 'fontforge')
provides=('tuxpaint')
conflicts=('tuxpaint')
makedepends=('cvs' 'gperf' 'awk')
options=('!makeflags')
_cvsroot=":pserver:anonymous@tuxpaint.cvs.sourceforge.net:/cvsroot/tuxpaint"
_cvsmod="tuxpaint"
pkgver() {
cd $srcdir
if [ -d $_cvsmod/CVS ]; then
msg2 "Updating existing checkout"
cd $_cvsmod
cvs -qz3 update -CdP > /dev/null
else
msg2 "Checking out upstream code"
cvs -qz3 -d$_cvsroot co -P $_cvsmod > /dev/null
cd $_cvsmod
fi
msg2 "Checkout up to date"
printf "%s.%s" $(awk '/Version/ {print $2}' $srcdir/$_cvsmod/tuxpaint.spec) $(cvs -q log | grep '^date:' | sort | tail -n 1 | cut -d ' ' -f 2 | tr -d '/')
}
build() {
cd $srcdir/$_cvsmod
sed -i 's+/usr/local+/usr+g' Makefile
make
}
package() {
cd $srcdir/$_cvsmod
make DESTDIR=$pkgdir install
rm -rf $pkgdir/usr/share/tuxpaint/CVS
install $pkgdir/usr/X11R6/include/X11/pixmaps/tuxpaint.xpm \
$pkgdir/usr/share/pixmaps/tuxpaint.xpm
rm -rf $pkgdir/usr/X11R6
sed -i '1s/python/python2/' \
$pkgdir/usr/share/doc/tuxpaint/zh_tw/mkTuxpaintIM.py
sed -i '1s/python/python2/' \
$pkgdir/usr/share/tuxpaint/fonts/locale/zh_tw_docs/maketuxfont.py
}
|