summaryrefslogtreecommitdiff
path: root/community/gcompris
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/gcompris
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/gcompris')
-rw-r--r--community/gcompris/PKGBUILD50
-rw-r--r--community/gcompris/gcompris-data.install22
2 files changed, 72 insertions, 0 deletions
diff --git a/community/gcompris/PKGBUILD b/community/gcompris/PKGBUILD
new file mode 100644
index 000000000..0453a3b4a
--- /dev/null
+++ b/community/gcompris/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 43090 2011-03-24 00:10:31Z foutrelis $
+# Maintainer: Evangelos Foutras <foutrelis@gmail.com>
+# Contributor: Daniel Isenmann <daniel.isenmann [at] gmx.de>
+
+pkgname=('gcompris' 'gcompris-data')
+pkgver=9.6
+pkgrel=1
+pkgdesc="Educational software suite comprising of numerous activities for children aged 2 to 10"
+arch=('i686' 'x86_64')
+url="http://gcompris.net/"
+license=('GPL3')
+makedepends=('texinfo' 'texi2html' 'intltool' 'gettext' 'gnuchess'
+ 'pygtk' 'pyxml' 'librsvg' 'gnet' 'python-pysqlite'
+ 'gstreamer0.10-base-plugins')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/project/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
+md5sums=('4cd29386c09304f2a80753c850496d81')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package_gcompris() {
+ depends=('gcompris-data' 'pygtk' 'pyxml' 'librsvg' 'gnet' 'python-pysqlite'
+ 'gstreamer0.10-base-plugins')
+ optdepends=('gnucap: for computer simulation within the electricity activity'
+ 'tuxpaint: for the painting activity'
+ 'gnuchess: for the chess activity')
+
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install-exec
+}
+
+package_gcompris-data() {
+ pkgdesc="Data files for GCompris"
+ #arch=('any')
+ install=gcompris-data.install
+
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install-data
+
+ # Place GCompris menu entry under Education
+ sed -i 's|^Categories=.*|Categories=Education;|' \
+ "$pkgdir/usr/share/applications/gcompris.desktop"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/gcompris/gcompris-data.install b/community/gcompris/gcompris-data.install
new file mode 100644
index 000000000..950d17bd7
--- /dev/null
+++ b/community/gcompris/gcompris-data.install
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(gcompris.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: