wok-next annotate colord/receipt @ rev 21457
updated sshfs-fuse (3.3.1 -> 3.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 07 14:36:33 2020 +0100 (2020-05-07) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
al@19733 | 1 # SliTaz package receipt v2. |
al@19691 | 2 |
al@19691 | 3 PACKAGE="colord" |
al@21002 | 4 VERSION="1.4.3" |
al@19691 | 5 CATEGORY="utilities" |
al@19691 | 6 SHORT_DESC="System activated daemon that maps devices to color profiles" |
al@19691 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@21002 | 8 LICENSE="LGPL2.1" |
al@19691 | 9 WEB_SITE="https://www.freedesktop.org/software/colord/" |
al@21002 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/colord.html" |
al@19691 | 11 |
al@19691 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19691 | 13 WGET_URL="http://www.freedesktop.org/software/colord/releases/$TARBALL" |
al@21143 | 14 TARBALL_SHA1="a845fb51a54dda936d1a9696e30cc3d947bfa628" |
al@19691 | 15 |
al@21002 | 16 BUILD_DEPENDS="meson ninja glib-dev lcms2-dev sqlite3-dev libgusb-dev \ |
al@21020 | 17 libgudev-dev vala polkit-dev gobject-introspection-dev gettext-dev \ |
al@21020 | 18 docbook-utils libxml2-tools gtk-doc dbus-dev" |
al@21020 | 19 SPLIT="$PACKAGE-dev" |
al@19691 | 20 |
al@21143 | 21 DEPENDS_std="eudev glib liblcms2 libgudev libgusb libsqlite3 polkit" |
al@21143 | 22 DEPENDS_dev="$PACKAGE eudev-dev glib-dev lcms2-dev libgusb-dev" |
al@21143 | 23 |
al@20443 | 24 compile_rules() { |
al@20443 | 25 if ! grep -q colord "/etc/passwd"; then |
al@20443 | 26 addgroup -g 71 colord |
al@20443 | 27 adduser -g "Color Daemon Owner" -h /var/lib/colord -u 71 \ |
al@20443 | 28 -G colord -s /bin/false -D colord |
al@20443 | 29 fi |
al@20443 | 30 |
al@21002 | 31 fix utf-8; export LC_ALL=en_US.UTF-8 |
al@21002 | 32 |
al@21002 | 33 mkdir build |
al@21002 | 34 cd build |
al@21002 | 35 |
al@21002 | 36 meson-wrapper \ |
al@21002 | 37 -Ddaemon_user="colord" \ |
al@21002 | 38 -Dvapi=true \ |
al@21002 | 39 -Dsystemd=false \ |
al@21002 | 40 -Dargyllcms_sensor=false \ |
al@21002 | 41 -Dbash_completion=false \ |
al@21002 | 42 && |
al@21002 | 43 ninja && |
al@21002 | 44 ninja install |
al@21002 | 45 |
al@21002 | 46 # > ignoring invalid country code: fur |
al@21002 | 47 # https://bugs.freedesktop.org/show_bug.cgi?id=106288 : unresolved |
al@19691 | 48 } |
al@19691 | 49 |
al@20443 | 50 post_install_colord() { |
al@20492 | 51 if ! grep -q colord "$1/etc/group"; then |
al@20492 | 52 chroot "$1/" /usr/sbin/addgroup -g 71 colord |
al@20492 | 53 chroot "$1/" /usr/sbin/adduser -g "Color Daemon Owner" -h /var/lib/colord \ |
al@20492 | 54 -u 71 -G colord -s /bin/false -D colord |
al@20492 | 55 fi |
al@20443 | 56 } |
al@20492 | 57 |
al@20492 | 58 post_remove_colord() { |
al@20492 | 59 chroot "$1/" deluser colord |
al@20492 | 60 chroot "$1/" delgroup colord |
al@20492 | 61 } |