wok-current view obconf/receipt @ rev 14900
Add firmware-mod-kit
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 31 11:20:11 2013 +0200 (2013-07-31) |
parents | 2e57311fbf5b |
children | 380ffe05937a |
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 slitaz-boot-scripts"
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 }