updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / sugar / PKGBUILD
blob97701f7087070ee2739b63a1cd21df911b6a750d
1 # Maintainer: Christophe Gueret <christophe.gueret@gmail.com>
2 # Contributor: Cilyan Olowen <gaknar@gmail.com>
4 pkgname=sugar
5 pkgver=0.94.0
6 pkgrel=2
7 pkgdesc="Sugar is the core component of a worldwide effort to provide every child with equal opportunity for a quality education"
8 arch=('i686' 'x86_64')
9 url="http://www.sugarlabs.org/"
10 license=('GPL')
11 groups=('sugar-desktop' 'glucose')
12 depends=('python2' 'gtk2' 'telepathy-mission-control' 'python-simplejson' 'python-wnck' 'sugar-datastore' 'sugar-artwork' 'sugar-toolkit' 'metacity')
13 makedepends=('gcc' 'perl>=5.8.1')
14 optdepends=('xorg-server-xephyr: Needed for sugar-emulator')
15 source=(http://download.sugarlabs.org/sources/sucrose/glucose/${pkgname}/${pkgname}-${pkgver}.tar.bz2 fix_shell_posix_and_quoting.patch fix_missing_default_layout.patch)    
16 md5sums=('31103aefdb4c225eb7dac57337bb50a3'
17          'f3d69de5ccab6fe1ff645b6f93d6322c'
18          '5abd60b0692767411155d358500c7222')
21 build() {
22   cd "${srcdir}/${pkgname}-${pkgver}"
24   # Patch from Debian http://patch-tracker.debian.org/patch/series/view/sugar-0.90/0.90.3-1/fix_shell_posix_and_quoting.patch
25   # manually edited to fix a missing "]" bug
26   patch -p1 < ../../fix_shell_posix_and_quoting.patch
28   # Fix a layout returned to be "None" sometimes
29   patch -p1 < ../../fix_missing_default_layout.patch
31   # Fix from http://launchpadlibrarian.net/53053401/DCON.patch  
32   # patch -p1 < ../../DCON.patch
34   PYTHON=python2 ./configure --prefix=/usr
35   make
38 package() {
39   cd "${srcdir}/${pkgname}-${pkgver}"
40   make DESTDIR="${pkgdir}" install
42   # python2 fix (taken from pyrss PKGBUILD, modified a bit)
43   for file in $(find ${pkgdir}/usr/bin -name 'sugar*'); do
44         sed -i 's_^python_python2_' $file
45         sed -i 's_^#!/usr/bin/env python_#!/usr/bin/env python2_' $file
46   done