updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sabayon / PKGBUILD
blob90d22bb942605d5c20006b996541f8e86beb3947
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 pkgname=sabayon
3 pkgver=2.30.1
4 pkgrel=2
5 pkgdesc="A system administration tool to define and deploy desktop profiles for the GNOME desktop environment"
6 arch=('i686' 'x86_64')
7 url="http://live.gnome.org/Sabayon"
8 license=('GPL')
9 depends=('pyxdg' 'pessulus' 'xorg-server-xephyr' 'libsm' 'hicolor-icon-theme' 'xdg-utils')
10 makedepends=('intltool>=0.40.0' 'gnome-doc-utils>=0.17.3')
11 optdepends=('gksu: to run sabayon directly from menu')
12 options=('!libtool')
13 install=$pkgname.install
14 source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
15 sha256sums=('eff725ae2dad3d55a3580a83b821e2279787b5e3dfb280a1c38fa39d40dcc73a')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
19   sed -i 's@^#!.*python$@#!/usr/bin/python2@' admin-tool/sabayon{,-{apply,session}}
20   sed -i 's/python -c/python2 -c/' configure
22   #add gksu to desktop file
23   sed -i 's/Exec=/Exec=gksu /' admin-tool/sabayon.desktop{,.in{,.in}}
25   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir="/usr/lib/$pkgname" \
26               --disable-static --disable-scrollkeeper \
27               --with-distro=frugalware \
28               PYTHON=python2
29   make
32 package() {
33   cd "$srcdir/$pkgname-$pkgver"
35   make DESTDIR="$pkgdir/" install