commit db387d2dd588f5f50d13ccdf505d881c43abfbd3 Author: Jaroslav Lichtblau Date: Wed Dec 3 09:28:55 2014 +0100 sabayon-2.30.1-2 adopted as it's dependency is pessulus diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..32ad40b22921 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = sabayon + pkgdesc = A system administration tool to define and deploy desktop profiles for the GNOME desktop environment + pkgver = 2.30.1 + pkgrel = 2 + url = https://wiki.gnome.org/Apps/Sabayon + install = sabayon.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = intltool + makedepends = gnome-doc-utils + depends = pyxdg + depends = pessulus + depends = xorg-server-xephyr + depends = libsm + depends = hicolor-icon-theme + depends = xdg-utils + optdepends = gksu: to run sabayon directly from menu + options = !libtool + source = http://ftp.gnome.org/pub/GNOME/sources/sabayon/2.30/sabayon-2.30.1.tar.bz2 + sha256sums = eff725ae2dad3d55a3580a83b821e2279787b5e3dfb280a1c38fa39d40dcc73a + +pkgname = sabayon + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2d14c7edb3ed --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Jaroslav Lichtblau +#Contributor: György Balló + +pkgname=sabayon +pkgver=2.30.1 +pkgrel=2 +pkgdesc="A system administration tool to define and deploy desktop profiles for the GNOME desktop environment" +arch=('i686' 'x86_64') +url="https://wiki.gnome.org/Apps/Sabayon" +license=('GPL') +depends=('pyxdg' 'pessulus' 'xorg-server-xephyr' 'libsm' 'hicolor-icon-theme' 'xdg-utils') +makedepends=('intltool' 'gnome-doc-utils') +optdepends=('gksu: to run sabayon directly from menu') +options=('!libtool') +install=$pkgname.install +source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2) +sha256sums=('eff725ae2dad3d55a3580a83b821e2279787b5e3dfb280a1c38fa39d40dcc73a') + +prepare() { + cd "${srcdir}"/$pkgname-$pkgver + sed -i 's@^#!.*python$@#!/usr/bin/python2@' admin-tool/sabayon{,-{apply,session}} + sed -i 's/python -c/python2 -c/' configure + + #add gksu to desktop file + sed -i 's/Exec=/Exec=gksu /' admin-tool/sabayon.desktop{,.in{,.in}} +} + +build() { + cd "${srcdir}"/$pkgname-$pkgver + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir="/usr/lib/$pkgname" \ + --disable-static --disable-scrollkeeper \ + --with-distro=frugalware \ + PYTHON=python2 + make +} + +package() { + cd "${srcdir}"/$pkgname-$pkgver + + make DESTDIR="${pkgdir}" install +} diff --git a/sabayon.install b/sabayon.install new file mode 100644 index 000000000000..582e6a01621e --- /dev/null +++ b/sabayon.install @@ -0,0 +1,21 @@ +post_install() { + groupadd -r sabayon &>/dev/null + useradd -r -g sabayon -d /var/lib/sabayon -s /bin/false sabayon &>/dev/null + xdg-icon-resource forceupdate +} + +post_upgrade() { + getent group sabayon >/dev/null 2>&1 || groupadd -r sabayon &>/dev/null + getent passwd sabayon >/dev/null 2>&1 || useradd -r -g sabayon -d /var/lib/sabayon -s /bin/false sabayon &>/dev/null + xdg-icon-resource forceupdate +} + +post_remove() { + if getent passwd sabayon >/dev/null 2>&1; then + userdel sabayon + fi + if getent group sabayon >/dev/null 2>&1; then + groupdel sabayon + fi + xdg-icon-resource forceupdate +}