wok-6.x annotate obconf/receipt @ rev 721

Add: conspy, a poor man's GNU/screen for 10k
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 02 20:03:37 2008 +0000 (2008-05-02)
parents 06a78ecad4f7
children c1d6475355a7
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"
pankso@357 9 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-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 \
pankso@357 20 $CONFIGURE_ARGS
pankso@357 21 make
pankso@357 22 make DESTDIR=$PWD/_pkg install
pankso@357 23 }
pankso@357 24
pankso@357 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 26 genpkg_rules()
pankso@357 27 {
pankso@357 28 mkdir -p $fs/usr/share
pankso@357 29 cp -a $_pkg/usr/bin $fs/usr
pankso@357 30 cp -a $_pkg/usr/share/obconf $fs/usr/share
pankso@677 31 cp -a stuff/mime $fs/usr/share
pascal@691 32 touch $fs/usr/share/mime/x-openbox-theme.xml
pascal@691 33 touch $fs/usr/share/mime/x-vbscript.xml
pascal@691 34 touch $fs/usr/share/mime/x-ms-win-installer.xml
pankso@696 35 # Locale
pankso@696 36 for i in $LOCALE
pankso@696 37 do
pankso@696 38 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
pankso@696 39 cp $src/po/$i.gmo \
pankso@696 40 $fs/usr/share/locale/$i/LC_MESSAGES/obconf.mo
pankso@696 41 done
pankso@357 42 }
pankso@677 43
pankso@677 44 # Update mime database.
pankso@677 45 post_install()
pankso@677 46 {
pankso@677 47 local root
pankso@677 48 root=$1
pankso@677 49 update-mime-database $root/usr/share/mime || continue
pankso@677 50 }