wok view polkit-pam/receipt @ rev 25594
Update some web_site/wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 11 10:40:23 2023 +0000 (16 months ago) |
parents | 241fb98cab1c |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="polkit-pam"
4 VERSION="0.104"
5 CATEGORY="base-system"
6 SHORT_DESC="Polkit with PAM support."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2"
9 SOURCE="polkit"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://www.freedesktop.org/wiki/Software/PolicyKit"
12 WGET_URL="https://hal.freedesktop.org/releases/$TARBALL"
13 PROVIDE="polkit"
15 DEPENDS="glib libgio gobject-introspection dbus dbus-glib expat pam"
16 BUILD_DEPENDS="glib-dev libgio-dev gobject-introspection-dev dbus-dev \
17 dbus-glib-dev expat-dev pam-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
23 sed "/latest/d;/polkit-[0-9]/!d;/tar/!d;s|.*polkit-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --localstatedir=/var \
34 --libexecdir=/usr/lib/polkit-1 \
35 --disable-man-pages \
36 --disable-gtk-doc \
37 --with-authfw=pam \
38 $CONFIGURE_ARGS &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/lib $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/etc $fs
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 cp -a $install/usr/lib/polkit-1 $fs/usr/lib
50 rm $fs/usr/lib/polkit-1/extensions/*.*a
51 cp -a $install/usr/share/dbus-1 $fs/usr/share
52 cp -a $install/usr/share/polkit-1 $fs/usr/share
53 cp -a $install/var $fs
54 }