mirror of
https://github.com/archlinux/aur.git
synced 2026-03-05 19:02:29 +01:00
sabayon-2.30.1-2
adopted as it's dependency is pessulus
This commit is contained in:
commit
db387d2dd5
3 changed files with 87 additions and 0 deletions
24
.SRCINFO
Normal file
24
.SRCINFO
Normal file
|
|
@ -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
|
||||
|
||||
42
PKGBUILD
Normal file
42
PKGBUILD
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
|
||||
#Contributor: György Balló <ballogy@freestart.hu>
|
||||
|
||||
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
|
||||
}
|
||||
21
sabayon.install
Normal file
21
sabayon.install
Normal file
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue