wok-next view colord/receipt @ rev 20975

Close the chain: python and python3 both have upgradeable setuptools and pip
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Sep 23 04:37:56 2018 +0300 (2018-09-23)
parents 4c1ed6983d05
children f10e4fa916b0
line source
1 # SliTaz package receipt v2.
3 PACKAGE="colord"
4 VERSION="1.2.12"
5 CATEGORY="utilities"
6 SHORT_DESC="System activated daemon that maps devices to color profiles"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.freedesktop.org/software/colord/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/colord.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://www.freedesktop.org/software/colord/releases/$TARBALL"
15 BUILD_DEPENDS="glib-dev gobject-introspection-dev gtk-doc intltool libxslt \
16 libgusb-dev lcms2-dev sqlite3-dev libgudev-dev polkit-dev dbus-dev vala"
17 SPLIT="colord-dev"
19 compile_rules() {
20 if ! grep -q colord "/etc/passwd"; then
21 addgroup -g 71 colord
22 adduser -g "Color Daemon Owner" -h /var/lib/colord -u 71 \
23 -G colord -s /bin/false -D colord
24 fi
26 ./configure \
27 --with-daemon-user=colord \
28 --enable-vala \
29 --enable-systemd-login=no \
30 --disable-argyllcms-sensor \
31 --disable-bash-completion \
32 --disable-static \
33 --with-systemdsystemunitdir=no \
34 $CONFIGURE_ARGS &&
35 fix libtool &&
36 make &&
37 make install
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 colord)
43 copy @std
44 DEPENDS="eudev glib lcms2 libgudev libgusb libsqlite3 polkit"
45 ;;
46 colord-dev)
47 copy @dev
48 DEPENDS="colord eudev-dev glib-dev lcms2-dev libgusb-dev"
49 ;;
50 esac
51 }
53 post_install_colord() {
54 if ! grep -q colord "$1/etc/group"; then
55 chroot "$1/" /usr/sbin/addgroup -g 71 colord
56 chroot "$1/" /usr/sbin/adduser -g "Color Daemon Owner" -h /var/lib/colord \
57 -u 71 -G colord -s /bin/false -D colord
58 fi
59 }
61 post_remove_colord() {
62 chroot "$1/" deluser colord
63 chroot "$1/" delgroup colord
64 }