wok-current view obconf/receipt @ rev 17027
linux64: new module path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 16 14:43:53 2014 +0200 (2014-08-16) |
parents | 96b359f7ade5 |
children | 533c0cab6960 |
line source
1 # SliTaz package receipt.
3 PACKAGE="obconf"
4 VERSION="2.0.4"
5 CATEGORY="x-window"
6 SHORT_DESC="Openbox WM configuration interface."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://icculus.org/openbox/"
11 WGET_URL="http://openbox.org/dist/obconf/$TARBALL"
12 TAGS="openbox"
13 HOST_ARCH="i486 arm"
15 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage \
16 startup-notification slitaz-boot-scripts desktop-file-utils"
17 BUILD_DEPENDS="gtk+-dev libglade-dev openbox-dev gdk-pixbuf-dev \
18 startup-notification-dev"
20 #
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 ./configure $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 $install/usr/bin $fs/usr
36 cp -a $install/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 chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications
48 }
50 # Update mime database.
51 post_remove()
52 {
53 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
54 chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications
55 }