updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-screensaver-ubuntu / PKGBUILD
blob930ae59d891342051fd4200e03730a82304c0ca6
1 # $Id: PKGBUILD 112853 2011-03-07 09:08:52Z ibiru $
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 _pkgname=gnome-screensaver
5 pkgname=$_pkgname-ubuntu
6 pkgver=2.30.2
7 pkgrel=2
8 pkgdesc="Screensaver designed to integrate well with the GNOME desktop. (intended to use with indicator-session)"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 url="http://live.gnome.org/GnomeScreensaver"
12 backup=(etc/pam.d/gnome-screensaver)
13 depends=('gnome-menus>=2.30.4' 'libgnomekbd>=2.32.0' 'libgl' 'libnotify>=0.7.1' 'gnome-desktop>=2.32.0')
14 makedepends=('pkgconfig' 'intltool' 'mesa' 'xscreensaver' 'libxss' 'libxslt')
15 optdepends=('xscreensaver')
16 groups=('gnome')
17 options=(!emptydirs)
18 install=gnome-screensaver.install
19 source=(http://ftp.gnome.org/pub/GNOME/sources/${_pkgname}/2.30/${_pkgname}-${pkgver}.tar.bz2
20               gnome-screensaver.pam
21               gnome-screensaver-2.30.2-libnotify-0.7.patch
22               14_no_fade_on_user_switch.patch)
23 sha256sums=('dd52ef278b23ec5abe5974548c2d576eeaeb5294c85e9f2efd6231ecc9ca09fa'
24             '2744d1fc39da46fc681b7cf1c9230d2035b2bb8d9f510213fbe439c114eb76a2'
25             'fd79843008fb93d6caa5f84dd4766c99895ce520517b17a2a334da8c869041bb'
26             '09115d50dbcc13dfe25a64519121f1c4f0c274aed35e26dcb5399dfcfcb15fc4')
28 build() {
29   cd "${srcdir}/${_pkgname}-${pkgver}"
30   patch -Np1 -i "${srcdir}/gnome-screensaver-2.30.2-libnotify-0.7.patch"
31   patch -Np1 -i "${srcdir}/14_no_fade_on_user_switch.patch"
32   ./configure --prefix=/usr --sysconfdir=/etc \
33       --libexecdir=/usr/lib/gnome-screensaver \
34       --localstatedir=/var \
35       --with-xscreensaverdir=/usr/share/xscreensaver/config \
36       --with-xscreensaverhackdir=/usr/lib/xscreensaver \
37       --with-mit-ext
39   make
40   make DESTDIR="${pkgdir}" install
42   install -m644 "${srcdir}/gnome-screensaver.pam" "${pkgdir}/etc/pam.d/gnome-screensaver"
44   #Migrate xscreensaver configuration files
45   sed -e 's|Exec=|Exec=/usr/lib/xscreensaver/|' \
46       -i data/xscreensaver-config.xsl
47   cd "${pkgdir}/usr/share/applications/screensavers"
48   "${srcdir}/${_pkgname}-${pkgver}/data/migrate-xscreensaver-config.sh" \
49       /usr/share/xscreensaver/config/*.xml
51   install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
52   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${_pkgname}.schemas" --domain gnome-screensaver ${pkgdir}/etc/gconf/schemas/*.schemas
53   rm -f ${pkgdir}/etc/gconf/schemas/*.schemas