Date: Sunday, March 17, 2013 @ 18:42:13 Author: heftig Revision: 180119
0.1.30; reenable and split sane support Modified: colord/trunk/PKGBUILD ----------+ PKGBUILD | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-03-17 17:41:49 UTC (rev 180118) +++ PKGBUILD 2013-03-17 17:42:13 UTC (rev 180119) @@ -2,22 +2,22 @@ # Maintainer: Jan Alexander Steffens (heftig) <[email protected]> # Contributor: Ionut Biru <[email protected]> -pkgname=colord -pkgver=0.1.28 +pkgbase=colord +pkgname=(colord colord-sane) +pkgver=0.1.30 pkgrel=1 pkgdesc="System daemon for managing color devices" -arch=('i686' 'x86_64') +arch=(i686 x86_64) url="http://www.freedesktop.org/software/colord" -license=('GPL2') -depends=('lcms2' 'libgusb' 'polkit' 'shared-color-profiles' 'sqlite' 'udev') -makedepends=('intltool' 'gobject-introspection' 'vala' 'docbook2x') +license=(GPL2) +depends=(lcms2 libgusb polkit shared-color-profiles sqlite udev dconf dbus) +makedepends=(intltool gobject-introspection vala docbook2x sane) +options=('!libtool') source=($url/releases/$pkgname-$pkgver.tar.xz) -options=('!libtool') -install=colord.install -sha1sums=('d53167727ab0f1014ded86675ac8b518c188a88b') +sha1sums=('54442a4736192aab65a7fa306142ae1cc30cda15') build() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver # put udev files in /usr/lib sed -i "/slashlibdir=/s#/lib#/usr/lib#" configure @@ -26,14 +26,29 @@ --sysconfdir=/etc --libexecdir=/usr/lib/colord \ --localstatedir=/var --disable-static \ --with-systemdsystemunitdir=/usr/lib/systemd/system \ - --enable-vala + --enable-vala --enable-sane make } -package() { - cd "$pkgname-$pkgver" +package_colord() { + install=colord.install + + cd $pkgname-$pkgver make DESTDIR="$pkgdir" install \ bashcompletiondir=/usr/share/bash-completion/completions + +# Split colord-sane + cd .. + mkdir -p sane/usr/lib/colord{,-plugins} + mv {"$pkgdir","$srcdir/sane"}/usr/lib/colord/colord-sane + mv {"$pkgdir","$srcdir/sane"}/usr/lib/colord-plugins/libcd_plugin_sane.so } +package_colord-sane() { + pkgdesc=("SANE plugin for colord") + depends=(colord sane) + + mv sane/* "$pkgdir" +} + # vim:set ts=2 sw=2 et:
