wok-stable annotate obconf/receipt @ rev 2443

Add pam_mount
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 13 11:41:46 2009 +0000 (2009-03-13)
parents c1d6475355a7
children 652cfc895b1a
rev   line source
pankso@357 1 # SliTaz package receipt.
pankso@357 2
pankso@357 3 PACKAGE="obconf"
pankso@357 4 VERSION="2.0.3"
pankso@357 5 CATEGORY="x-window"
pankso@357 6 SHORT_DESC="Openbox WM configuration interface."
pankso@357 7 MAINTAINER="pankso@slitaz.org"
pankso@679 8 DEPENDS="openbox gtk+ libglade shared-mime-info"
pascal@1529 9 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev openbox-dev"
pankso@357 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@357 11 WEB_SITE="http://icculus.org/openbox/"
pankso@357 12 WGET_URL="http://icculus.org/openbox/obconf/$TARBALL"
pankso@357 13
pankso@357 14 # Rules to configure and make the package.
pankso@357 15 compile_rules()
pankso@357 16 {
pankso@357 17 cd $src
pankso@357 18 ./configure \
pankso@357 19 --prefix=/usr \
pascal@1529 20 $CONFIGURE_ARGS &&
pascal@1566 21 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pascal@1529 22 make &&
pankso@357 23 make DESTDIR=$PWD/_pkg install
pankso@357 24 }
pankso@357 25
pankso@357 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 27 genpkg_rules()
pankso@357 28 {
pankso@357 29 mkdir -p $fs/usr/share
pankso@357 30 cp -a $_pkg/usr/bin $fs/usr
pankso@357 31 cp -a $_pkg/usr/share/obconf $fs/usr/share
pankso@677 32 cp -a stuff/mime $fs/usr/share
pascal@691 33 touch $fs/usr/share/mime/x-openbox-theme.xml
pascal@691 34 touch $fs/usr/share/mime/x-vbscript.xml
pascal@691 35 touch $fs/usr/share/mime/x-ms-win-installer.xml
pankso@696 36 # Locale
pankso@696 37 for i in $LOCALE
pankso@696 38 do
pankso@696 39 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
pankso@696 40 cp $src/po/$i.gmo \
pankso@696 41 $fs/usr/share/locale/$i/LC_MESSAGES/obconf.mo
pankso@696 42 done
pankso@357 43 }
pankso@677 44
pankso@677 45 # Update mime database.
pankso@677 46 post_install()
pankso@677 47 {
pankso@677 48 local root
pankso@677 49 root=$1
pankso@677 50 update-mime-database $root/usr/share/mime || continue
pankso@677 51 }