diff options
author | root <root@rshg054.dnsready.net> | 2012-01-31 23:14:57 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-31 23:14:57 +0000 |
commit | c34f78dd37c2a2015d43de5d89748a2f8147ba1b (patch) | |
tree | 2e3912930db02e8f8cbfa8a58eae203b886fa2d9 /community-testing/tuxpaint/PKGBUILD | |
parent | 902eddd7e029eda6fc1c668b31e696c6ca3edbc7 (diff) |
Tue Jan 31 23:14:56 UTC 2012
Diffstat (limited to 'community-testing/tuxpaint/PKGBUILD')
-rw-r--r-- | community-testing/tuxpaint/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community-testing/tuxpaint/PKGBUILD b/community-testing/tuxpaint/PKGBUILD new file mode 100644 index 000000000..003e686ee --- /dev/null +++ b/community-testing/tuxpaint/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 63296 2012-01-30 19:09:20Z ibiru $ +# 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=5 +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 tuxpaint-0.9.21-libpng1.5.patch) +md5sums=('a88401d1860648098eeed819cff038fa' + '11d11119b3316c13f7b7a77048317bce') +sha1sums=('082a179a3cb44ee17af47421bc92125a890846e4' + '5595a65ebabc46bebd2d0670589effc8dbdd4e0c') + +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 + + patch -p0 -i ../tuxpaint-0.9.21-libpng1.5.patch + sed -i 's/$(ARCH_LINKS)/$(ARCH_LINKS) -lpng/' Makefile + echo "Categories=Game;KidsGame;Graphics;RasterGraphics;" >> src/tuxpaint.desktop + make PREFIX=/usr +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make PREFIX=/usr DESTDIR="$pkgdir" GNOME_PREFIX=/usr X11_ICON_PREFIX="$pkgdir/usr/share/pixmaps" install + chmod -R 644 "$pkgdir"/usr/share/doc/tuxpaint-dev/* + chmod 755 "$pkgdir/usr/share/doc/tuxpaint-dev/html" +} |