🔒 Repository is read-only – file editing is disabled.

recipes/gui/colord/PAGBUILD.yaml main

79 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
pkgname: colord
pkgver: '1.4.8'
pkgrel: '3'
pkgdesc: 'System daemon for managing color devices'
url: 'https://www.freedesktop.org/software/colord/'
arch: x86_64
depends: []
makedepends:
- meson
- libgudev
- sqlite
- polkit
- lcms2
- argyllcms
- 'gobject-introspection'
- libusb
- dbus
- vala
- libgusb

source:
- 'https://www.freedesktop.org/software/${pkgname}/releases/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- SKIP

hooks:
  'pre-install': |
    name=colord
    version=1.4.8
    release=3
    INFO="\033[1;36m"
    NORMAL="\033[0;39m"
    
    SN="colord"
    IDN="71"
    
    if ! (getent group $SN > /dev/null); then
       printf "${INFO}Creating $SN group${NORMAL}\n"
       groupadd -g $IDN $SN
    fi
    
    if ! (getent passwd $SN > /dev/null); then
       printf "${INFO}Creating $SN user${NORMAL}\n"
       useradd -c "Color Daemon Owner" -d /var/lib/$SN \
       -u $IDN -g $SN -s /usr/bin/false $SN
    fi

build: |
  SN="colord"
  IDN="71"
  if ! (getent group $SN > /dev/null); then
     groupadd -g $IDN $SN
  fi
  if ! (getent passwd $SN > /dev/null); then
     useradd -c "Color Daemon Owner" -d /var/lib/$SN \
     -u $IDN -g $SN -s /usr/bin/false $SN
  fi
  cd ${pkgname}-${pkgver}
  mv po/fur.po po/ur.po
  sed -i 's/fur/ur/' po/LINGUAS

  mkdir build
  cd    build
  meson --prefix=/usr              \
  	--sysconfdir=/etc        \
  	--localstatedir=/var     \
  	-Ddaemon_user=colord     \
            -Dvapi=true              \
  	-Dsystemd=true           \
  	-Dlibcolordcompat=true   \
  	-Dbash_completion=false  \
  	-Ddocs=false             \
  	-Dman=false ..
  ninja
  DESTDIR=${PKGDIR} ninja install

package: |
  true