48 lines
1.0 KiB
Bash
48 lines
1.0 KiB
Bash
pkgname=polkit
|
|
pkgver=126
|
|
pkgdesc="Application development toolkit for controlling system-wide privileges"
|
|
homepage="https://github.com/polkit-org/polkit"
|
|
arch=(x86_64)
|
|
license=(LGPL-2.0-or-later)
|
|
sources=("${pkgname}-${pkgver}.tar.gz"
|
|
"sysuser-polkit.conf"
|
|
)
|
|
urls=("https://github.com/polkit-org/polkit/archive/${pkgver}/${sources[0]}"
|
|
"sysuser-polkit.conf"
|
|
)
|
|
md5sums=("db4ce0a42d5bf8002061f8e34ee9bdd0"
|
|
"a739f6a34227e576b464a5e2a4d6a612"
|
|
)
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
local meson_options=(
|
|
--prefix=/usr
|
|
--buildtype=release
|
|
-D gettext=true
|
|
-D introspection=true
|
|
-D gtk_doc=false
|
|
-D man=true
|
|
-D tests=true
|
|
)
|
|
|
|
meson build "${meson_options[@]}"
|
|
meson compile -C build
|
|
}
|
|
|
|
# skip the test because dependences
|
|
|
|
src_install() {
|
|
meson install -C build --destdir "$pkgdir"
|
|
|
|
# fix sysusers.d/polkit.conf
|
|
rm -v ${pkgdir}/usr/lib/sysusers.d/*.conf
|
|
install -vm644 ${filedir}/sysuser-polkit.conf ${pkgdir}/usr/lib/sysusers.d/polkit.conf
|
|
}
|
|
|
|
|
|
# vim:ft=sh syn=sh et sw=2:
|