summaryrefslogtreecommitdiff
path: root/community/tuxpaint
diff options
context:
space:
mode:
Diffstat (limited to 'community/tuxpaint')
-rw-r--r--community/tuxpaint/PKGBUILD38
-rw-r--r--community/tuxpaint/desktop.patch7
2 files changed, 45 insertions, 0 deletions
diff --git a/community/tuxpaint/PKGBUILD b/community/tuxpaint/PKGBUILD
new file mode 100644
index 000000000..782eb0534
--- /dev/null
+++ b/community/tuxpaint/PKGBUILD
@@ -0,0 +1,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')
+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/
+}
diff --git a/community/tuxpaint/desktop.patch b/community/tuxpaint/desktop.patch
new file mode 100644
index 000000000..78d2ed397
--- /dev/null
+++ b/community/tuxpaint/desktop.patch
@@ -0,0 +1,7 @@
+--- tuxpaint.desktop2 2008-03-20 15:45:22.000000000 +0100
++++ tuxpaint.desktop 2008-03-20 15:56:33.000000000 +0100
+@@ -205,3 +205,4 @@
+ Comment[zh_cn]=孩子的绘图程序。
+ Comment[zh_tw]=適合兒童的畫圖程式
+ Comment[zw]=Diif program paar keé men Dibuj paar biét biss
++Categories=Game;KidsGame;Graphics;RasterGraphics;