summaryrefslogtreecommitdiff
path: root/community/tuxpaint/PKGBUILD
blob: ec083254d9d6d1fa52bbd1108b18579f395b508a (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
# $Id: PKGBUILD 26451 2010-09-15 18:28:06Z schuay $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor: Sergio Jovani Guzman <moret.sjg@gmail.com>
# Adopted: royrocks <royrocks13@gmail.com>
pkgname=tuxpaint
pkgver=0.9.21
pkgrel=4
pkgdesc="Tux Paint is a free drawing program designed for young children."
arch=('i686' 'x86_64' 'mips64el')
url="http://www.tuxpaint.org"
license=('GPL')
backup=('etc/tuxpaint/tuxpaint.conf')
depends=('python2' 'fribidi' 'sdl_ttf' 'sdl_mixer' 'sdl_image' 'sdl_pango' 'libpaper' 'librsvg')
source=(http://downloads.sourceforge.net/sourceforge/tuxpaint/$pkgname-$pkgver.tar.gz)
md5sums=('a88401d1860648098eeed819cff038fa')
sha1sums=('082a179a3cb44ee17af47421bc92125a890846e4')

build() {
 cd $srcdir/$pkgname-$pkgver

 # python2 fix
 for file in docs/zh_tw/mkTuxpaintIM.py fonts/locale/zh_tw_docs/maketuxfont.py; do
    sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
 done

 echo "Categories=Game;KidsGame;Graphics;RasterGraphics;" >> src/tuxpaint.desktop
 make PREFIX=/usr
}

package() {
 cd $srcdir/$pkgname-$pkgver
 make PREFIX=/usr DESTDIR=$startdir/pkg CONFDIR=$pkgdir/etc MAN_PREFIX=$pkgdir/usr/share/man  X11_ICON_PREFIX=$pkgdir/usr/share/pixmaps KDE_PREFIX="" KDE_ICON_PREFIX="" install
 install -D -m 644 $srcdir/$pkgname-$pkgver/src/tuxpaint.desktop $pkgdir/usr/share/applications/tuxpaint.desktop
 chmod -R 644 $pkgdir/usr/share/doc/tuxpaint-dev/*
 chmod 755 $pkgdir/usr/share/doc/tuxpaint-dev/html
 mkdir -p $pkgdir/etc/tuxpaint
 mv $pkgdir/etc/tuxpaint.conf $pkgdir/etc/tuxpaint/
}