wok-6.x annotate obconf/receipt @ rev 16214

wget: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 31 13:30:47 2014 +0000 (2014-03-31)
parents e0611ce967ea
children 62b66edb40b5
rev   line source
pankso@357 1 # SliTaz package receipt.
pankso@357 2
pankso@357 3 PACKAGE="obconf"
erjo@15746 4 VERSION="2.0.4"
pankso@357 5 CATEGORY="x-window"
pankso@357 6 SHORT_DESC="Openbox WM configuration interface."
pankso@357 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
erjo@15746 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@357 10 WEB_SITE="http://icculus.org/openbox/"
erjo@15746 11 WGET_URL="http://openbox.org/dist/obconf/$TARBALL"
jozee@4970 12 TAGS="openbox"
pankso@357 13
pankso@9856 14 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage \
pascal@15901 15 startup-notification slitaz-boot-scripts desktop-file-utils"
pankso@9856 16 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev openbox-dev \
erjo@15746 17 gdk-pixbuf-dev startup-notification-dev"
pankso@9856 18
erjo@15746 19 #
pankso@357 20 # Rules to configure and make the package.
pankso@357 21 compile_rules()
pankso@357 22 {
pankso@357 23 cd $src
erjo@15746 24 ./configure $CONFIGURE_ARGS &&
pascal@1566 25 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pankso@9856 26 make && make install
pankso@357 27 }
pankso@357 28
pankso@357 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 30 genpkg_rules()
pankso@357 31 {
pascal@11623 32 mkdir -p $fs/usr/share/applications
pascal@11623 33 cp -a $stuff/obconf.desktop $fs/usr/share/applications
pascal@15000 34 cp -a $install/usr/bin $fs/usr
pascal@15000 35 cp -a $install/usr/share/obconf $fs/usr/share
pankso@677 36 cp -a stuff/mime $fs/usr/share
pascal@691 37 touch $fs/usr/share/mime/x-openbox-theme.xml
pascal@691 38 touch $fs/usr/share/mime/x-vbscript.xml
pascal@691 39 touch $fs/usr/share/mime/x-ms-win-installer.xml
pankso@357 40 }
pankso@677 41
pankso@677 42 # Update mime database.
pankso@677 43 post_install()
pankso@677 44 {
pascal@12196 45 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
erjo@15746 46 chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications
pankso@677 47 }
erjo@15746 48
erjo@15746 49 # Update mime database.
erjo@15746 50 post_remove()
erjo@15746 51 {
erjo@15746 52 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
erjo@15746 53 chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications
erjo@15746 54 }