summaryrefslogtreecommitdiff
path: root/community/gcompris/PKGBUILD
blob: 6e464345424d55416c77de1487ed20d6496abdc7 (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
39
40
41
42
43
44
45
46
47
48
49
50
# $Id: PKGBUILD 44294 2011-04-05 06:50:48Z foutrelis $
# Maintainer: Evangelos Foutras <foutrelis@gmail.com>
# Contributor: Daniel Isenmann <daniel.isenmann [at] gmx.de>

pkgname=('gcompris' 'gcompris-data')
pkgver=9.6.1
pkgrel=1
pkgdesc="Educational software suite comprising of numerous activities for children aged 2 to 10"
arch=('i686' 'x86_64' 'mips64el')
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=('2fb1dbb331166dd19d0a758220e4caf0')

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/gcompris-$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: