Moved TuxPaint in from the CCR, along with a dependency of it.

parent 9d88e16d
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# Contributor: Gene Kodadek <gkodadek@gmail.com>
pkgname=libpaper
pkgver=1.1.24
pkgrel=1
pkgdesc="Library for handling paper characteristics"
arch=('i686' 'x86_64')
url="http://packages.debian.org/unstable/source/libpaper"
license=('GPL')
source=(http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_${pkgver}.tar.gz)
md5sums=('5bc87d494ba470aba54f6d2d51471834')
build() {
cd $srcdir/$pkgname-$pkgver
./configure \
--mandir=$pkgdir/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make prefix=$pkgdir/usr install
}
\ No newline at end of file
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# Contributor: Gene Kodadek <gkodadek@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=('GPL3')
depends=('fribidi' 'libpaper' 'librsvg' 'python2' 'sdl_image' 'sdl_mixer' 'sdl_pango' 'sdl_ttf')
backup=('etc/tuxpaint/tuxpaint.conf')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('a88401d1860648098eeed819cff038fa')
build() {
cd $srcdir/$pkgname-$pkgver
# Python 2 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
# Add categories to .desktop file.
echo "Categories=Game;KidsGame;Graphics;RasterGraphics;" >> src/tuxpaint.desktop
# Build.
make \
PREFIX=/usr
}
package() {
cd $srcdir/$pkgname-$pkgver
make \
PREFIX=/usr \
DESTDIR=$pkgdir \
CONFDIR=$pkgdir/etc \
MAN_PREFIX=$pkgdir/usr/share/man \
X11_ICON_PREFIX=$pkgdir/usr/share/pixmaps \
KDE_PREFIX="" \
KDE_ICON_PREFIX="" \
install
# Desktop integration.
install -D -m 644 $srcdir/$pkgname-$pkgver/src/tuxpaint.desktop \
$pkgdir/usr/share/applications/tuxpaint.desktop
# Permissions adjustments.
chmod -R 644 $pkgdir/usr/share/doc/tuxpaint-dev/*
chmod 755 $pkgdir/usr/share/doc/tuxpaint-dev/html
# Configuration stuff.
mkdir -p $pkgdir/etc/tuxpaint
mv $pkgdir/etc/tuxpaint.conf $pkgdir/etc/tuxpaint/
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment