wok view obconf/receipt @ rev 13145

obconf: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 10 09:41:24 2012 +0200 (2012-07-10)
parents f9e6074a57e6
children 1dbb923ab613
line source
1 # SliTaz package receipt.
3 PACKAGE="obconf"
4 VERSION="2.0.3"
5 GITTAG="500163e2c74cbbded0361574fd14d0a1168c1119"
6 CATEGORY="x-window"
7 SHORT_DESC="Openbox WM configuration interface."
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$PACKAGE-$VERSION-$GITTAG.tar.gz"
10 WEB_SITE="http://icculus.org/openbox/"
11 WGET_URL="http://git.openbox.org/?p=dana/obconf.git;a=snapshot;h=$GITTAG;sf=tgz"
12 TAGS="openbox"
14 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage \
15 startup-notification"
16 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev openbox-dev \
17 startup-notification-dev git autoconf automake"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11 -lobt -lobrender"
24 autoreconf -f -i &&
25 ./configure CFLAGS="-I/usr/include/openbox/3.5" $CONFIGURE_ARGS &&
26 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/applications
34 cp -a $stuff/obconf.desktop $fs/usr/share/applications
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/share/obconf $fs/usr/share
37 cp -a stuff/mime $fs/usr/share
38 touch $fs/usr/share/mime/x-openbox-theme.xml
39 touch $fs/usr/share/mime/x-vbscript.xml
40 touch $fs/usr/share/mime/x-ms-win-installer.xml
41 }
43 # Update mime database.
44 post_install()
45 {
46 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
47 }