wok-6.x view obconf/receipt @ rev 2479
lame, lbreakout2, libQt*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 15 20:40:56 2009 +0000 (2009-03-15) |
parents | c1d6475355a7 |
children | 652cfc895b1a |
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 openbox-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 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
22 make &&
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/share/obconf $fs/usr/share
32 cp -a stuff/mime $fs/usr/share
33 touch $fs/usr/share/mime/x-openbox-theme.xml
34 touch $fs/usr/share/mime/x-vbscript.xml
35 touch $fs/usr/share/mime/x-ms-win-installer.xml
36 # Locale
37 for i in $LOCALE
38 do
39 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES
40 cp $src/po/$i.gmo \
41 $fs/usr/share/locale/$i/LC_MESSAGES/obconf.mo
42 done
43 }
45 # Update mime database.
46 post_install()
47 {
48 local root
49 root=$1
50 update-mime-database $root/usr/share/mime || continue
51 }