wok-6.x annotate polkit-pam/receipt @ rev 25015

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