makedepends=(xmlto libxslt polkit gobject-introspection vala json-c python-setuptools)

description="Accessing the list of user accounts and information attached to those accounts." 
url="http://www.freedesktop.org/wiki/Software/AccountsService/"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=accountsservice
version=26.27.3
release=1

source=(https://gitlab.freedesktop.org/accountsservice/accountsservice/-/archive/${version}/${name}-${version}.tar.gz)

set=(gnome3)

build() {

  mkdir build && cd build

  rm -rf ../$name-$version/tests
  sed -i "s/subdir('tests')//g" ../$name-$version/meson.build

  meson setup --prefix=/usr \
        --libdir=/usr/lib \
        -Dadmin_group=wheel \
        -Dsystemdsystemunitdir=/usr/lib/systemd/system \
        ../$name-$version

  ninja
  DESTDIR=$PKG ninja install
}
