Date: Tuesday, April 10, 2018 @ 11:32:26
  Author: heftig
Revision: 321463

1.4.2-2

Modified:
  colord/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++++++++-----------
 1 file changed, 24 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-04-10 09:30:47 UTC (rev 321462)
+++ PKGBUILD    2018-04-10 11:32:26 UTC (rev 321463)
@@ -2,19 +2,17 @@
 # Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com>
 # Contributor: Ionut Biru <ib...@archlinux.org>
 
-pkgname=colord
+pkgbase=colord
+pkgname=(colord colord-sane)
 pkgver=1.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc="System daemon for managing color devices"
+url="https://www.freedesktop.org/software/colord";
 arch=(x86_64)
-url="https://www.freedesktop.org/software/colord";
 license=(GPL2)
 depends=(lcms2 libgusb polkit sqlite systemd dconf dbus libgudev 
shared-mime-info)
 makedepends=(gobject-introspection vala sane bash-completion argyllcms git 
docbook-utils
              docbook-sgml perl-sgmls meson gtk-doc)
-optdepends=('sane: scanner support'
-            'argyllcms: color profiling')
-replaces=(shared-color-profiles)
 options=(!emptydirs)
 _commit=5b9aa8de432579a2636f13ad6895928f42511081  # tags/1.4.2^0
 source=("git+https://github.com/hughsie/colord#commit=$_commit";
@@ -24,17 +22,17 @@
 validpgpkeys=('163EB50119225DB3DF8F49EA17ACBA8DFA970E17')  # Richard Hughes
 
 pkgver() {
-  cd $pkgname
+  cd colord
   git describe --tags | sed 's/-/+/g'
 }
 
 prepare() {
-  cd $pkgname
+  cd colord
   patch -Np1 -i ../0001-Make-cd_color_get_blackbody_rgb_full-safer.patch
 }
 
 build() {
-  arch-meson $pkgname build \
+  arch-meson colord build \
     -Denable-libcolordcompat=true \
     -Denable-sane=true \
     -Denable-vala=true \
@@ -48,10 +46,25 @@
   meson test
 }
 
-package() {
+package_colord() {
+  optdepends=('argyllcms: color profiling')
+  replaces=(shared-color-profiles)
+
   DESTDIR="$pkgdir" ninja -C build install
+
   echo 'u colord - "Color management daemon" /var/lib/colord' |
-    install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+    install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/colord.conf"
+
+### Split colord-sane
+  mkdir -p colord-sane/usr/lib/colord-plugins
+  mv {"$pkgdir",colord-sane}/usr/lib/colord-sane
+  mv {"$pkgdir",colord-sane}/usr/lib/colord-plugins/libcolord_sensor_sane.so
 }
 
+package_colord-sane() {
+  pkgdesc+=" (SANE support)"
+  depends=("colord=$pkgver-$pkgrel" sane)
+  mv colord-sane/* "$pkgdir"
+}
+
 # vim:set ts=2 sw=2 et:

Reply via email to