pkgname=colord pkgver=1.4.7 pkgrel=1 pkgdesc="System daemon for managing color devices" arch=('x86_64') url="https://www.freedesktop.org/software/colord" license=('GPL-2.0-or-later') depends=('dbus' 'lcms2' 'libgudev' 'libgusb' 'polkit' 'sqlite' 'systemd' 'vala') makedepends=('meson' 'bash-completion' 'gobject-introspection' 'python-setuptools') install=${pkgname}.install source=(https://www.freedesktop.org/software/colord/releases/${pkgname}-${pkgver}.tar.xz https://www.linuxfromscratch.org/patches/downloads/${pkgname}/${pkgname}-${pkgver}-upstream_fixes-1.patch) sha256sums=(de02d9910634ae159547585cec414e450f711c27235453b4f9b38a9f2361a653 4203577ba7e3b9eb6ea53efe78435c27a15fbe10c3798ea2c5eabc28d3f5df74) prepare() { cd ${pkgname}-${pkgver} patch -Np1 -i ${srcdir}/${pkgname}-${pkgver}-upstream_fixes-1.patch } build() { cd ${pkgname}-${pkgver} local meson_args=( -Ddaemon_user=colord -Dvapi=true -Dsystemd=true -Dlibcolordcompat=true -Dargyllcms_sensor=false -Dman=false -Ddocs=false -Dbash_completion=true ) ${meson_options} ${meson_args[@]} ${meson_build} } package() { cd ${pkgname}-${pkgver} ${meson_install} ${pkgdir} }