updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / sabayon-svn / PKGBUILD
blob3ed6f643c44b6bed0d9324c811520c04c0424f01
1 # Maintainer: Arkham <arkham at archlinux dot us>
2 # Contributor: Arkham <arkham at archlinux dot us>
4 pkgname=sabayon-svn
5 pkgver=1098
6 pkgrel=1
7 pkgdesc="System administration tool to manage GNOME desktop settings"
8 arch=('i686' 'x86_64')
9 url="http://www.gnome.org/projects/sabayon/"
10 license=('GPL')
11 depends=('libxml2' 'gnome-python' 'python-ldap' 'pyxdg')
12 makedepends=('intltool' 'subversion' 'gnome-common')
13 provides=('sabayon')
14 conflicts=('sabayon')
15 options=('!libtool')
16 install=sabayon.install
17 source=()
18 md5sums=()
20 _svntrunk=svn://svn.gnome.org/svn/sabayon/trunk/
21 _svnmod=sabayon
23 build() {
24     # Checkout version $pkgver or update to the latest
25     cd $srcdir
27     if [ -d $_svnmod/.svn ]; then
28         (cd $_svnmod && svn up -r $pkgver)
29     else
30         svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31     fi
33     # To preserve the integrity of the original files,
34     # we copy all files into a temporary build directory
35     cp -r $_svnmod $_svnmod-build
36     cd $_svnmod-build
38     # Configure magic
39     ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib/sabayon \
40                  --mandir=/usr/share/man --with-distro=slackware
41    
42     # Fix .desktop
43     sed -i 's/Exec=/Exec=gksu /' admin-tool/sabayon.desktop.in.in
44     sed -i 's/Exec=/Exec=gksu /' admin-tool/sabayon.desktop.in
45     sed -i 's/Exec=/Exec=gksu /' admin-tool/sabayon.desktop
47     # Compile and install
48     make || return 1
49     make DESTDIR=$pkgdir install || return 1
51     # Clean build directory
52     rm -rf $srcdir/$_svnmod-build