wok-stable view obconf/receipt @ rev 1553
Apply patchs once for bash cromfs cyrus-imapd jwm lsdvd mISDNuser module-init-tools qemu rox-filer xpat2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 12 09:55:00 2008 +0000 (2008-10-12) |
parents | 7bd5e34e4a45 |
children | 123997fe83c0 |
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 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 }