wok-current view polkit/receipt @ rev 25637

Add miss new packages (Py3Qt-x11-gpl and pycairo118)
author Stanislas Leduc <shann@slitaz.org>
date Mon Jan 15 22:12:34 2024 +0000 (11 months ago)
parents 1805f71c5d9f
children 5926178cd6fa
line source
1 # SliTaz package receipt.
3 PACKAGE="polkit"
4 VERSION="0.104"
5 CATEGORY="base-system"
6 SHORT_DESC="Application development toolkit for controlling system-wide privileges."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.freedesktop.org/wiki/Software/PolicyKit"
11 WGET_URL="https://hal.freedesktop.org/releases/$TARBALL"
12 CROSS="error: cannot check for file existence when cross compiling"
14 DEPENDS="glib libgio dbus dbus-glib expat util-linux-eject"
15 BUILD_DEPENDS="glib-dev libgio-dev gobject-introspection-dev dbus-dev \
16 dbus-glib-dev expat-dev"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 patch -p0 < $stuff/CVE-2021-4034.u
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --localstatedir=/var \
32 --libexecdir=/usr/lib/polkit-1 \
33 --disable-man-pages \
34 --disable-gtk-doc \
35 --enable-introspection \
36 --with-authfw=shadow \
37 $CONFIGURE_ARGS &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib $fs/usr/share
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/etc $fs
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/lib/polkit-1 $fs/usr/lib
49 rm $fs/usr/lib/polkit-1/extensions/*.*a
50 cp -a $install/usr/share/dbus-1 $fs/usr/share
51 cp -a $install/usr/share/polkit-1 $fs/usr/share
52 cp -a $install/var $fs
53 }