wok annotate obconf/receipt @ rev 15146

cocoalib: create Makefile_dependencies (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 12:56:59 2013 +0000 (2013-08-15)
parents 1dbb923ab613
children e0611ce967ea
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@15000 9 LICENSE="GPL2"
pascal@13145 10 TARBALL="$PACKAGE-$VERSION-$GITTAG.tar.gz"
pankso@357 11 WEB_SITE="http://icculus.org/openbox/"
pascal@13144 12 WGET_URL="http://git.openbox.org/?p=dana/obconf.git;a=snapshot;h=$GITTAG;sf=tgz"
jozee@4970 13 TAGS="openbox"
pankso@357 14
pankso@9856 15 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage \
pascal@13148 16 startup-notification slitaz-boot-scripts"
pankso@9856 17 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev openbox-dev \
pascal@13145 18 startup-notification-dev git autoconf automake"
pankso@9856 19
pankso@357 20 # Rules to configure and make the package.
pankso@357 21 compile_rules()
pankso@357 22 {
pankso@357 23 cd $src
pascal@13144 24 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11 -lobt -lobrender"
pascal@13144 25 autoreconf -f -i &&
pascal@13145 26 ./configure CFLAGS="-I/usr/include/openbox/3.5" $CONFIGURE_ARGS &&
pascal@1566 27 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile &&
pankso@9856 28 make && make install
pankso@357 29 }
pankso@357 30
pankso@357 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@357 32 genpkg_rules()
pankso@357 33 {
pascal@11623 34 mkdir -p $fs/usr/share/applications
pascal@11623 35 cp -a $stuff/obconf.desktop $fs/usr/share/applications
pascal@15000 36 cp -a $install/usr/bin $fs/usr
pascal@15000 37 cp -a $install/usr/share/obconf $fs/usr/share
pankso@677 38 cp -a stuff/mime $fs/usr/share
pascal@691 39 touch $fs/usr/share/mime/x-openbox-theme.xml
pascal@691 40 touch $fs/usr/share/mime/x-vbscript.xml
pascal@691 41 touch $fs/usr/share/mime/x-ms-win-installer.xml
pankso@357 42 }
pankso@677 43
pankso@677 44 # Update mime database.
pankso@677 45 post_install()
pankso@677 46 {
pascal@12196 47 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
pankso@677 48 }