wok annotate PolicyKit0/receipt @ rev 4282

cdrdao: fix build with gcc-4.x
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 26 10:31:52 2009 +0200 (2009-09-26)
parents a9798561d07c
children 9554030e83f1
rev   line source
rcx@3351 1 # SliTaz package receipt.
rcx@3351 2
rcx@3351 3 PACKAGE="PolicyKit0"
rcx@3351 4 SOURCE="POLICY_KIT"
rcx@3351 5 VERSION="0_9"
rcx@3351 6 CATEGORY="system-tools"
pankso@4093 7 SHORT_DESC="Application development toolkit for controlling system-wide privileges."
rcx@3351 8 MAINTAINER="rcx@zoominternet.net"
rcx@3351 9 DEPENDS="glibc-base glib dbus dbus-glib expat"
rcx@3351 10 BUILD_DEPENDS="slitaz-toolchain m4 autoconf automake libtool glib-dev intltool \
rcx@3351 11 dbus-dev dbus-glib-dev expat-dev gettext pam-dev pam"
rcx@3351 12 TARBALL="${SOURCE}_${VERSION}.tar.bz2"
rcx@3351 13 WEB_SITE="http://www.freedesktop.org/wiki/Software/PolicyKit/"
rcx@3351 14 WGET_URL="http://cgit.freedesktop.org/PolicyKit/snapshot/$TARBALL"
rcx@3351 15
rcx@3351 16 # Rules to configure and make the package.
rcx@3351 17 compile_rules()
rcx@3351 18 {
rcx@3351 19 mv ${SOURCE}_${VERSION} $SOURCE-$VERSION
rcx@3351 20 cd $src
pankso@4093 21
rcx@3351 22 # autogen.sh forces some unnecessary options; remove them
rcx@3351 23 sed -i 's/gtkdocize /echo /' $src/autogen.sh || exit 1
rcx@3351 24 sed -i 's/--enable-gtk-doc//' $src/autogen.sh || exit 1
rcx@3351 25 sed -i 's/--enable-maintainer-mode//' $src/autogen.sh || exit 1
rcx@3351 26 sed -i 's/ doc / /' $src/Makefile.am || exit 1
rcx@3351 27 sed -i 's|doc/Makefile||' $src/configure.in || exit 1
rcx@3351 28 sed -i 's|doc/version.xml||' $src/configure.in || exit 1
rcx@3351 29 sed -i 's|doc/man/Makefile||' $src/configure.in || exit 1
rcx@3351 30 sed -i 's|GTK_DOC_CHECK(\[1.3\])||' $src/configure.in || exit 1
rcx@3351 31 rm -r -f $src/docs
pankso@4093 32
pankso@4093 33 ./autogen.sh \
pankso@4093 34 --prefix=/usr \
pankso@4093 35 --sysconfdir=/etc \
pankso@4093 36 --localstatedir=/var \
pankso@4093 37 --libexecdir=/usr/lib/PolicyKit0 \
rcx@3351 38 $CONFIGURE_ARGS &&
rcx@3351 39 make &&
rcx@3351 40 make DESTDIR=$src/_pkg install
rcx@3351 41 }
rcx@3351 42
rcx@3351 43 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3351 44 genpkg_rules()
rcx@3351 45 {
rcx@3351 46 mkdir -p $fs/usr/lib
rcx@3351 47 cp -a $_pkg/usr/bin $fs/usr
pankso@4093 48 cp -a $_pkg/etc $fs
rcx@3351 49 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@4095 50 cp -a $_pkg/usr/lib/PolicyKit0 $fs/usr/lib
pankso@4093 51 cp -a $_pkg/var $fs
pankso@4093 52
rcx@3351 53 mkdir -p $fs/usr/share
rcx@3351 54 cp -a $_pkg/usr/share/dbus-1 $fs/usr/share
rcx@3351 55 cp -a $_pkg/usr/share/PolicyKit $fs/usr/share
rcx@3351 56 }