wok-next annotate colord/receipt @ rev 20534
Clean default configure options when site script used.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 19:31:50 2018 +0300 (2018-03-30) |
parents | 4c1ed6983d05 |
children | f10e4fa916b0 |
rev | line source |
---|---|
al@19733 | 1 # SliTaz package receipt v2. |
al@19691 | 2 |
al@19691 | 3 PACKAGE="colord" |
al@19691 | 4 VERSION="1.2.12" |
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@19691 | 8 LICENSE="GPL2" |
al@19691 | 9 WEB_SITE="https://www.freedesktop.org/software/colord/" |
al@20443 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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@19691 | 14 |
al@19779 | 15 BUILD_DEPENDS="glib-dev gobject-introspection-dev gtk-doc intltool libxslt \ |
pascal@20098 | 16 libgusb-dev lcms2-dev sqlite3-dev libgudev-dev polkit-dev dbus-dev vala" |
al@19733 | 17 SPLIT="colord-dev" |
al@19691 | 18 |
al@20443 | 19 compile_rules() { |
al@20443 | 20 if ! grep -q colord "/etc/passwd"; then |
al@20443 | 21 addgroup -g 71 colord |
al@20443 | 22 adduser -g "Color Daemon Owner" -h /var/lib/colord -u 71 \ |
al@20443 | 23 -G colord -s /bin/false -D colord |
al@20443 | 24 fi |
al@20443 | 25 |
al@19691 | 26 ./configure \ |
al@19691 | 27 --with-daemon-user=colord \ |
al@19691 | 28 --enable-vala \ |
al@19691 | 29 --enable-systemd-login=no \ |
al@19691 | 30 --disable-argyllcms-sensor \ |
al@19691 | 31 --disable-bash-completion \ |
al@19691 | 32 --disable-static \ |
al@19691 | 33 --with-systemdsystemunitdir=no \ |
al@19691 | 34 $CONFIGURE_ARGS && |
al@20443 | 35 fix libtool && |
al@20534 | 36 make && |
al@20534 | 37 make install |
al@19691 | 38 } |
al@19691 | 39 |
al@20443 | 40 genpkg_rules() { |
al@19733 | 41 case $PACKAGE in |
al@19733 | 42 colord) |
al@19733 | 43 copy @std |
al@20443 | 44 DEPENDS="eudev glib lcms2 libgudev libgusb libsqlite3 polkit" |
al@19733 | 45 ;; |
al@19733 | 46 colord-dev) |
al@19733 | 47 copy @dev |
al@20443 | 48 DEPENDS="colord eudev-dev glib-dev lcms2-dev libgusb-dev" |
al@19733 | 49 ;; |
al@19733 | 50 esac |
al@19691 | 51 } |
al@20443 | 52 |
al@20443 | 53 post_install_colord() { |
al@20492 | 54 if ! grep -q colord "$1/etc/group"; then |
al@20492 | 55 chroot "$1/" /usr/sbin/addgroup -g 71 colord |
al@20492 | 56 chroot "$1/" /usr/sbin/adduser -g "Color Daemon Owner" -h /var/lib/colord \ |
al@20492 | 57 -u 71 -G colord -s /bin/false -D colord |
al@20492 | 58 fi |
al@20443 | 59 } |
al@20492 | 60 |
al@20492 | 61 post_remove_colord() { |
al@20492 | 62 chroot "$1/" deluser colord |
al@20492 | 63 chroot "$1/" delgroup colord |
al@20492 | 64 } |