wok-next view obconf/receipt @ rev 8506

Up: libtaz 0.0.5
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Feb 12 02:53:48 2011 +0100 (2011-02-12)
parents 652cfc895b1a
children 9df3bbf503c6
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 xorg-libXdamage"
9 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev openbox-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://icculus.org/openbox/"
12 WGET_URL="http://icculus.org/openbox/obconf/$TARBALL"
13 TAGS="openbox"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 $CONFIGURE_ARGS &&
22 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/share/obconf $fs/usr/share
33 cp -a stuff/mime $fs/usr/share
34 touch $fs/usr/share/mime/x-openbox-theme.xml
35 touch $fs/usr/share/mime/x-vbscript.xml
36 touch $fs/usr/share/mime/x-ms-win-installer.xml
37 # Locale
38 for i in $LOCALE
39 do
40 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
41 cp $src/po/$i.gmo \
42 $fs/usr/share/locale/$i/LC_MESSAGES/obconf.mo
43 done
44 }
46 # Update mime database.
47 post_install()
48 {
49 local root
50 root=$1
51 update-mime-database $root/usr/share/mime || continue
52 }