wok annotate obconf/receipt @ rev 16852

netsurf:once more
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sun Jul 13 03:59:57 2014 +0300 (2014-07-13)
parents 96b359f7ade5
children 533c0cab6960
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@16269 13 HOST_ARCH="i486 arm"
pankso@357 14
pankso@9856 15 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage \
pascal@15901 16 startup-notification slitaz-boot-scripts desktop-file-utils"
pankso@16269 17 BUILD_DEPENDS="gtk+-dev libglade-dev openbox-dev gdk-pixbuf-dev \
pankso@16269 18 startup-notification-dev"
pankso@9856 19
erjo@15746 20 #
pankso@357 21 # Rules to configure and make the package.
pankso@357 22 compile_rules()
pankso@357 23 {
pankso@357 24 cd $src
erjo@15746 25 ./configure $CONFIGURE_ARGS &&
pascal@1566 26 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pankso@9856 27 make && make install
pankso@357 28 }
pankso@357 29
pankso@357 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 31 genpkg_rules()
pankso@357 32 {
pascal@11623 33 mkdir -p $fs/usr/share/applications
pascal@11623 34 cp -a $stuff/obconf.desktop $fs/usr/share/applications
pascal@15000 35 cp -a $install/usr/bin $fs/usr
pascal@15000 36 cp -a $install/usr/share/obconf $fs/usr/share
pankso@677 37 cp -a stuff/mime $fs/usr/share
pascal@691 38 touch $fs/usr/share/mime/x-openbox-theme.xml
pascal@691 39 touch $fs/usr/share/mime/x-vbscript.xml
pascal@691 40 touch $fs/usr/share/mime/x-ms-win-installer.xml
pankso@357 41 }
pankso@677 42
pankso@677 43 # Update mime database.
pankso@677 44 post_install()
pankso@677 45 {
pascal@12196 46 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
erjo@15746 47 chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications
pankso@677 48 }
erjo@15746 49
erjo@15746 50 # Update mime database.
erjo@15746 51 post_remove()
erjo@15746 52 {
erjo@15746 53 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
erjo@15746 54 chroot "$1/" /usr/bin/update-desktop-database /usr/share/applications
erjo@15746 55 }