wok-6.x view obconf/receipt @ rev 1279

udev-dev: up/fix VERSION
author Christophe Lincoln <pankso@slitaz.org>
date Mon Aug 18 14:38:49 2008 +0200 (2008-08-18)
parents 06a78ecad4f7
children c1d6475355a7
line source
1 # SliTaz package receipt.
3 PACKAGE="obconf"
4 VERSION="2.0.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Openbox WM configuration interface."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="openbox gtk+ libglade shared-mime-info"
9 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://icculus.org/openbox/"
12 WGET_URL="http://icculus.org/openbox/obconf/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 $CONFIGURE_ARGS
21 make
22 make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share
29 cp -a $_pkg/usr/bin $fs/usr
30 cp -a $_pkg/usr/share/obconf $fs/usr/share
31 cp -a stuff/mime $fs/usr/share
32 touch $fs/usr/share/mime/x-openbox-theme.xml
33 touch $fs/usr/share/mime/x-vbscript.xml
34 touch $fs/usr/share/mime/x-ms-win-installer.xml
35 # Locale
36 for i in $LOCALE
37 do
38 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
39 cp $src/po/$i.gmo \
40 $fs/usr/share/locale/$i/LC_MESSAGES/obconf.mo
41 done
42 }
44 # Update mime database.
45 post_install()
46 {
47 local root
48 root=$1
49 update-mime-database $root/usr/share/mime || continue
50 }