opt/polkit/Pkgfile

26 lines
768 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
# Depends on: dbus gobject-introspection intltool mozjs78 util-linux
2013-09-28 01:24:07 +02:00
name=polkit
version=0.119
2013-09-28 01:24:07 +02:00
release=1
2021-01-30 19:54:30 +01:00
source=(https://freedesktop.org/software/polkit/releases/$name-$version.tar.gz
2021-06-06 14:02:05 +02:00
polkit-1 84.patch)
2013-09-28 01:24:07 +02:00
build() {
2021-06-06 14:02:05 +02:00
patch -Np1 -d $name-$version -i $SRC/84.patch
meson setup $name-$version build \
2021-01-29 01:03:01 +01:00
--prefix=/usr \
--buildtype=plain
meson compile -C build
DESTDIR=$PKG meson install -C build
2013-09-28 01:24:07 +02:00
2021-06-06 14:02:05 +02:00
chmod 4775 $PKG/usr/bin/pkexec
chmod 4755 $PKG/usr/lib/polkit-1/polkit-agent-helper-1
2021-01-29 01:03:01 +01:00
install -m 0644 $SRC/polkit-1 $PKG/etc/pam.d
2019-05-10 12:58:58 +02:00
2021-01-29 01:03:01 +01:00
rm -r $PKG/usr/share/locale
2013-09-28 01:24:07 +02:00
}