File: meson_post_install.sh

package info (click to toggle)
colord 1.4.7-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,932 kB
  • sloc: ansic: 48,892; xml: 24,169; sh: 86; python: 79; makefile: 46; cpp: 38
file content (16 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
if [ -z $MESON_INSTALL_PREFIX ]; then
    echo 'This is meant to be ran from Meson only!'
    exit 1
fi

localstatedir=$1
daemon_user=$2

echo 'Creating stateful directory'
mkdir -p ${DESTDIR}${localstatedir}/lib/colord/icc
ls -l ${DESTDIR}${localstatedir}/lib
if [ `id -u` = 0 ] ; then
	chown ${daemon_user} ${DESTDIR}${localstatedir}/lib/colord
	chmod 0755 ${DESTDIR}${localstatedir}/lib/colord
fi