diff -Naur gdm.orig/PKGBUILD gdm/PKGBUILD --- gdm.orig/PKGBUILD 2013-03-31 16:57:24.908964419 +0200 +++ gdm/PKGBUILD 2013-03-31 19:54:34.562701097 +0200 @@ -2,31 +2,24 @@ # Maintainer: Jan Alexander Steffens (heftig) # Maintainer: Jan de Groot -pkgname=gdm +pkgbase=gdm +pkgname=(gdm libgdm) pkgver=3.8.0 -pkgrel=1 +pkgrel=2 pkgdesc="Gnome Display Manager" arch=(i686 x86_64) license=(GPL) url="http://www.gnome.org" -backup=(etc/pam.d/gdm-autologin etc/pam.d/gdm-fingerprint etc/pam.d/gdm-launch-environment - etc/pam.d/gdm-password etc/pam.d/gdm-smartcard etc/gdm/custom.conf - etc/gdm/Xsession) -groups=(gnome) options=('!libtool') -depends=(libcanberra gnome-session gnome-settings-daemon metacity upower accountsservice systemd - xorg-xrdb nss polkit-gnome xorg-server gnome-icon-theme) +depends=(gnome-shell xorg-xrdb xorg-server) makedepends=(itstool intltool gnome-doc-utils gobject-introspection) -optdepends=('gnome-shell: new login interface' - 'fprintd: fingerprint authentication') -install=gdm.install -source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz +source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver%.*}/$pkgbase-$pkgver.tar.xz fix_external_program_directories.patch) sha256sums=('4a0894ae50d1f090c6ccc450b74142243fff9ee17e2924c0f363ea51b3ba6bd5' 'a878680734e35c1d66252cbcfe678c3961b5ff0fa16302f8796a5e7e65ffe4a2') build() { - cd "$pkgname-$pkgver" + cd "$pkgbase-$pkgver" patch -Np1 -i "$srcdir/fix_external_program_directories.patch" ./configure \ @@ -49,11 +42,29 @@ make -j1 # race condition building gdm-client.c, does not wait for gdm-client-glue.h } -package() { - cd "$pkgname-$pkgver" +package_gdm() { + optdepends=('fprintd: fingerprint authentication') + backup=(etc/pam.d/gdm-autologin etc/pam.d/gdm-fingerprint etc/pam.d/gdm-launch-environment + etc/pam.d/gdm-password etc/pam.d/gdm-smartcard etc/gdm/custom.conf + etc/gdm/Xsession) + groups=(gnome) + install=gdm.install + + cd "$pkgbase-$pkgver" make DESTDIR="$pkgdir" install chmod 1770 "$pkgdir/var/log/gdm" chmod 700 "$pkgdir/var/lib/gdm/.config/dconf" rm -r "$pkgdir/var/run" "$pkgdir/var/gdm" + + # Split libgdm + make -C gui/libgdm DESTDIR="$pkgdir" uninstall +} + +package_libgdm() { + pkgdesc="Client library for communicating with GDM daemon" + depends=(systemd) + + cd "$pkgbase-$pkgver" + make -C gui/libgdm DESTDIR="$pkgdir" install }