# Maintainer: Que Quotion # Contributor: Charles Bos # Contributor: Balló György # Contributor: Jan Alexander Steffens (heftig) pkgname=gnome-settings-daemon-compat _pkgname=gnome-settings-daemon pkgver=3.6.4 pkgrel=11 pkgdesc='Compatibility package that provides the background, media keys and mount helpers from GNOME Settings Daemon 3.6' arch=('i686' 'x86_64') license=('GPL') depends=('gnome-settings-daemon') makedepends=('docbook-xsl' 'intltool' 'xf86-input-wacom' 'ibus' 'dconf>=0.28.0-1') url="http://www.gnome.org" source=(http://ftp.gnome.org/pub/gnome/sources/$_pkgname/${pkgver%.*}/$_pkgname-$pkgver.tar.xz standalone-background-helper.patch standalone-media-keys-helper.patch draw-background-unconditionally.patch sessionisactive-port.patch revert-input-sources.patch xinput.patch remove-libgsd-dependency.patch move-desktop-file.patch libsystemd.patch) sha256sums=('3db993f2dbabc0c9d06a309bb12c9a7104b9cdda414ac4b1c301f5114a441c15' '2e7e40175533556493bb58795a2c1b4e53b4baba35d151e632b933c6077456d9' 'c41640f51cc2b0165b94cf39971fabfaed3cd678e24cddb3efecfe1b673fc33f' '1b6b8216434b766e1389e876cba5d6ab61498c5824f6d2cc5d67dcf58a07842a' '0821f469cd168f3a131da513a5f9dd352c06f9bc31d57d79de4dc063fa2de915' '02da2467e287620c3b717c7ff5ffea7403cce714d5aa32e27d051b6571451e2a' 'fe8cafee074e36a7a393c9ae7f65db1c13a0959213aaae94ab8a3543bf20a25d' '730f11d5689892fbab9aa2896f3720e813d17e2455f34fd3a0751e49f5b4c26c' 'c58ace67581a1e14dc21efc8d22dd1f385cd05483d67e8a385b0767a8daf9fb4' 'd8bf24b8917adbc06cfdd70a841e03111b329928889df7b8048089f20034b1c5') prepare() { cd $_pkgname-$pkgver msg2 "Patch BGMKH" # Build background and media keys helpers as a stand alone binary patch -Np1 < ../standalone-background-helper.patch patch -Np1 < ../standalone-media-keys-helper.patch msg2 "Patch ADB" # Always draw background patch -Np1 < ../draw-background-unconditionally.patch msg2 "Patch SIA" # Port to gnome-session's SessionIsActive property patch -Np1 < ../sessionisactive-port.patch msg2 "Patch MKCOMPAT" # Add compatibility patches for media keys plugin patch -Np1 < ../revert-input-sources.patch patch -Np1 < ../xinput.patch msg2 "Patch lgsd" # Remove libgsd dependency patch -Np1 < ../remove-libgsd-dependency.patch msg2 "Patch desktpf" # Move desktop files out of autostart, so they can be easily reusable in custom sessions patch -Np1 < ../move-desktop-file.patch msg2 "Patch lsysd" # libsystemd-login is now just libsystemd. patch -Np2 < ../libsystemd.patch } build() { cd $_pkgname-$pkgver autoreconf -fi ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libexecdir=/usr/lib/$_pkgname \ --disable-static --enable-systemd # https://bugzilla.gnome.org/show_bug.cgi?id=656231 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make -C plugins/common make -C plugins/automount make -C plugins/background make -C plugins/media-keys } package() { cd $_pkgname-$pkgver make -C plugins/automount DESTDIR="$pkgdir" install make -C plugins/background DESTDIR="$pkgdir" install make -C plugins/media-keys DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: