wok annotate obconf/receipt @ rev 14716

lib[o-r]*: add LICENSE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 11 11:09:32 2013 +0200 (2013-06-11)
parents 2e57311fbf5b
children 380ffe05937a
rev   line source
pankso@357 1 # SliTaz package receipt.
pankso@357 2
pankso@357 3 PACKAGE="obconf"
pankso@357 4 VERSION="2.0.3"
pascal@13144 5 GITTAG="500163e2c74cbbded0361574fd14d0a1168c1119"
pankso@357 6 CATEGORY="x-window"
pankso@357 7 SHORT_DESC="Openbox WM configuration interface."
pankso@357 8 MAINTAINER="pankso@slitaz.org"
pascal@13145 9 TARBALL="$PACKAGE-$VERSION-$GITTAG.tar.gz"
pankso@357 10 WEB_SITE="http://icculus.org/openbox/"
pascal@13144 11 WGET_URL="http://git.openbox.org/?p=dana/obconf.git;a=snapshot;h=$GITTAG;sf=tgz"
jozee@4970 12 TAGS="openbox"
pankso@357 13
pankso@9856 14 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage \
pascal@13148 15 startup-notification slitaz-boot-scripts"
pankso@9856 16 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev openbox-dev \
pascal@13145 17 startup-notification-dev git autoconf automake"
pankso@9856 18
pankso@357 19 # Rules to configure and make the package.
pankso@357 20 compile_rules()
pankso@357 21 {
pankso@357 22 cd $src
pascal@13144 23 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11 -lobt -lobrender"
pascal@13144 24 autoreconf -f -i &&
pascal@13145 25 ./configure CFLAGS="-I/usr/include/openbox/3.5" $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
pankso@357 35 cp -a $_pkg/usr/bin $fs/usr
pankso@357 36 cp -a $_pkg/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
pankso@677 47 }