updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / sugar-artwork / PKGBUILD
blobc5fee7be4d4ce314fd3e303aa60459b566d40034
1 # Maintainer: Christophe Gueret <christophe.gueret@gmail.com>
2 # Contributor: Cilyan Olowen <gaknar@gmail.com>
4 pkgname=sugar-artwork
5 pkgver=0.94.0
6 pkgrel=1
7 pkgdesc="Sugar gtk engine, themes and icons"
8 arch=('i686' 'x86_64')
9 url="http://www.sugarlabs.org/"
10 license=('GPL')
11 groups=('sugar-desktop' 'glucose')
12 depends=('python2' 'gtk2')
13 makedepends=('icon-slicer' 'icon-naming-utils>=0.8.2' 'gcc' 'xorg-xcursorgen')
14 source=(http://download.sugarlabs.org/sources/sucrose/glucose/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
15 md5sums=('3c5da23d2b43f7d66ec823b73e7980a6')
17 build() {
18   cd "${srcdir}/${pkgname}-${pkgver}"
19   PYTHON=python2 ./configure --prefix=/usr
20   
21   # python2 fix (taken from pyrss PKGBUILD)
22   for file in $(find . -name '*.py' -print); do
23         sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
24         sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
25   done
27   make
30 package() {
31   cd "${srcdir}/${pkgname}-${pkgver}"
32   make DESTDIR="${pkgdir}" install