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