blob: 5f793c68b202474a86a444b46eaaae02faf21b4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $Id: PKGBUILD 136078 2011-08-22 13:09:39Z andyrtr $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: tobias <tobias funnychar archlinux.org>
pkgname=xfce4-session
pkgver=4.8.1
pkgrel=3
pkgdesc="A session manager for Xfce"
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.xfce.org/"
groups=('xfce4')
# keep xorg-server-utils for https://bugs.archlinux.org/task/21096 'xorg-server-utils'
# upower and consolekit for reboot/shutdown/hibernate/suspend
depends=('xfce4-panel' 'gconf' 'libgnome-keyring' 'libwnck' 'libsm' 'xorg-iceauth' 'upower' 'consolekit' 'hicolor-icon-theme' )
makedepends=('intltool')
optdepends=('fortune-mod: for xfce4-tips')
replaces=('xfce4-toys')
backup=(etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla
etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla)
options=('!libtool')
install=${pkgname}.install
source=(http://archive.xfce.org/src/xfce/${pkgname}/4.8/${pkgname}-${pkgver}.tar.bz2
org.freedesktop.consolekit.pkla
org.freedesktop.upower.pkla
gdm.patch)
md5sums=('478080ff666fdd36786a243829663efd'
'2e2519950d8c591dc9440ed8957a49ed'
'5fa270637b5e685f033863d8664795a2'
'61423d0e235cad7ffcbbdacc96c9151b')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# fix usage with gdm and custom langs https://bugs.archlinux.org/task/24327
patch -Np1 -i ${srcdir}/gdm.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/xfce4 \
--localstatedir=/var \
--disable-static \
--disable-hal \
--enable-gnome \
--enable-libgnome-keyring \
--enable-session-screenshots \
--enable-upower \
--enable-consolekit \
--enable-polkit \
--enable-panel-plugin \
--disable-debug
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# install polkit/consolekit permission file needed for usage without a display manager
install -dm700 ${pkgdir}/etc/polkit-1/localauthority
install -dm755 ${pkgdir}/etc/polkit-1/localauthority/50-local.d
install -m644 ${srcdir}/org.freedesktop.consolekit.pkla ${pkgdir}/etc/polkit-1/localauthority/50-local.d/
install -m644 ${srcdir}/org.freedesktop.upower.pkla ${pkgdir}/etc/polkit-1/localauthority/50-local.d/
}
|