updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xfce4-session-ubuntu / PKGBUILD
blobf34d873f9d160eff424be5d4dec8bba29249c94e
1 pkgname=xfce4-session-ubuntu
2 _pkgname=xfce4-session
3 pkgver=4.8.1
4 _patchver=4.8.1
5 pkgrel=1
6 pkgdesc="A session manager for Xfce, with hibernate and suspend buttons and ubuntu patches"
7 arch=(i686 x86_64)
8 license=('GPL2')
9 url="http://www.xfce.org/"
10 groups=('xfce4')
11 depends=("libxfcegui4>=4.6.4" 'libwnck' 'hicolor-icon-theme')
12 makedepends=('pkgconfig' 'perlxml' 'xorg-server-utils' 'intltool')
13 optdepends=('fortune-mod:       for xfce4-tips')
14 replaces=('xfce4-toys' 'xfce4-session')
15 conflicts=('xfce4-session')
16 provides=('xfce4-session')
17 options=('!libtool')
18 install=${pkgname}.install
19 source=(http://archive.xfce.org/src/xfce/${_pkgname}/4.8/${_pkgname}-${pkgver}.tar.bz2
20         http://archive.ubuntu.com/ubuntu/pool/universe/x/${_pkgname}/${_pkgname}_${_patchver}-1ubuntu2.debian.tar.gz)
21 md5sums=('478080ff666fdd36786a243829663efd'
22          'bc81422be591d2c0c4d4981479a401d3')
24 build() {
25   cd $srcdir/${_pkgname}-$pkgver
26   mv $srcdir/debian $srcdir/${_pkgname}-$pkgver
28   for i in `ls ../xfce4-session-${_patchver}/debian/patches/*.patch* | sort`; do
29     patch -p1 -s -i $i
30     if [ $? = 0 ]; then
31       echo "$i applied"
32     else
33       echo "Error processing $i"
34       return 1
35     fi
36   done
38   ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 \
39     --localstatedir=/var --disable-static \
40     --enable-legacy-sm --disable-gnome --enable-session-screenshots \
41     --with-shutdown-style=auto
42   make
43   make DESTDIR=$pkgdir install