wok annotate obconf/receipt @ rev 9594
Removed: dia, gecko-mediaplayer, gens-gs, libfm, mplayerplug-in, nscd, pcmanfm2
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 12 22:04:33 2011 +0200 (2011-04-12) |
parents | 652cfc895b1a |
children | 9df3bbf503c6 |
rev | line source |
---|---|
pankso@357 | 1 # SliTaz package receipt. |
pankso@357 | 2 |
pankso@357 | 3 PACKAGE="obconf" |
pankso@357 | 4 VERSION="2.0.3" |
pankso@357 | 5 CATEGORY="x-window" |
pankso@357 | 6 SHORT_DESC="Openbox WM configuration interface." |
pankso@357 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@2521 | 8 DEPENDS="openbox gtk+ libglade shared-mime-info xorg-libXdamage" |
pascal@1529 | 9 BUILD_DEPENDS="xorg-dev gtk+-dev libglade-dev openbox-dev" |
pankso@357 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@357 | 11 WEB_SITE="http://icculus.org/openbox/" |
pankso@357 | 12 WGET_URL="http://icculus.org/openbox/obconf/$TARBALL" |
jozee@4970 | 13 TAGS="openbox" |
pankso@357 | 14 |
pankso@357 | 15 # Rules to configure and make the package. |
pankso@357 | 16 compile_rules() |
pankso@357 | 17 { |
pankso@357 | 18 cd $src |
pankso@357 | 19 ./configure \ |
pankso@357 | 20 --prefix=/usr \ |
pascal@1529 | 21 $CONFIGURE_ARGS && |
pascal@1566 | 22 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile && |
pascal@1529 | 23 make && |
pankso@357 | 24 make DESTDIR=$PWD/_pkg install |
pankso@357 | 25 } |
pankso@357 | 26 |
pankso@357 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@357 | 28 genpkg_rules() |
pankso@357 | 29 { |
pankso@357 | 30 mkdir -p $fs/usr/share |
pankso@357 | 31 cp -a $_pkg/usr/bin $fs/usr |
pankso@357 | 32 cp -a $_pkg/usr/share/obconf $fs/usr/share |
pankso@677 | 33 cp -a stuff/mime $fs/usr/share |
pascal@691 | 34 touch $fs/usr/share/mime/x-openbox-theme.xml |
pascal@691 | 35 touch $fs/usr/share/mime/x-vbscript.xml |
pascal@691 | 36 touch $fs/usr/share/mime/x-ms-win-installer.xml |
pankso@696 | 37 # Locale |
pankso@696 | 38 for i in $LOCALE |
pankso@696 | 39 do |
pankso@696 | 40 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES |
pankso@696 | 41 cp $src/po/$i.gmo \ |
pankso@696 | 42 $fs/usr/share/locale/$i/LC_MESSAGES/obconf.mo |
pankso@696 | 43 done |
pankso@357 | 44 } |
pankso@677 | 45 |
pankso@677 | 46 # Update mime database. |
pankso@677 | 47 post_install() |
pankso@677 | 48 { |
pankso@677 | 49 local root |
pankso@677 | 50 root=$1 |
pankso@677 | 51 update-mime-database $root/usr/share/mime || continue |
pankso@677 | 52 } |