opt/polkit/Pkgfile

32 lines
1017 B
Plaintext
Raw Normal View History

2019-05-10 12:58:58 +02:00
# Description: Application development toolkit for controlling system-wide privileges
2021-01-29 01:03:01 +01:00
# URL: https://gitlab.freedesktop.org/polkit/polkit/
# Maintainer: Tim Biermann, tbier at posteo dot de
2024-01-17 22:36:39 +01:00
# Depends on: dbus duktape gobject-introspection intltool
2013-09-28 01:24:07 +02:00
name=polkit
2024-01-17 22:36:39 +01:00
version=124
release=1
2024-01-17 22:36:39 +01:00
source=(https://gitlab.freedesktop.org/polkit/polkit/-/archive/$version/polkit-$version.tar.bz2
https://gitlab.freedesktop.org/polkit/polkit/-/commit/22193ca2cc0f4e023d331cc1391f55143ef9cade.patch)
2013-09-28 01:24:07 +02:00
build() {
2022-07-19 19:09:03 +02:00
prt-get isinst mozjs91 && PKGMK_POLKIT+=' -D js_engine=mozjs'
2024-01-17 22:36:39 +01:00
patch -Rp1 -d $name-$version -i $SRC/22193ca2cc0f4e023d331cc1391f55143ef9cade.patch
2022-11-13 11:05:08 +01:00
meson setup $name-$version build $PKGMK_POLKIT \
2022-07-19 19:09:03 +02:00
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
2023-07-29 22:35:32 +02:00
-D b_pie=true \
-D os_type=suse
2022-07-19 19:09:03 +02:00
meson compile -C build
DESTDIR=$PKG meson install -C build
2013-09-28 01:24:07 +02:00
2022-07-19 19:09:03 +02:00
chmod 4775 $PKG/usr/bin/pkexec
chmod 4755 $PKG/usr/lib/polkit-1/polkit-agent-helper-1
2019-05-10 12:58:58 +02:00
2022-07-19 19:09:03 +02:00
rm -r $PKG/usr/share/locale
2013-09-28 01:24:07 +02:00
}