wok-6.x annotate obconf/receipt @ rev 3897
slitaz-loram-*: login needs libnss_files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 14 23:15:22 2009 +0200 (2009-08-14) |
parents | 123997fe83c0 |
children | 6ec17b55b59a |
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" |
pankso@357 | 13 |
pankso@357 | 14 # Rules to configure and make the package. |
pankso@357 | 15 compile_rules() |
pankso@357 | 16 { |
pankso@357 | 17 cd $src |
pankso@357 | 18 ./configure \ |
pankso@357 | 19 --prefix=/usr \ |
pascal@1529 | 20 $CONFIGURE_ARGS && |
pascal@1566 | 21 sed -i 's/^mkdir_p = .*/mkdir_p = mkdir -p/' po/Makefile && |
pascal@1529 | 22 make && |
pankso@357 | 23 make DESTDIR=$PWD/_pkg install |
pankso@357 | 24 } |
pankso@357 | 25 |
pankso@357 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@357 | 27 genpkg_rules() |
pankso@357 | 28 { |
pankso@357 | 29 mkdir -p $fs/usr/share |
pankso@357 | 30 cp -a $_pkg/usr/bin $fs/usr |
pankso@357 | 31 cp -a $_pkg/usr/share/obconf $fs/usr/share |
pankso@677 | 32 cp -a stuff/mime $fs/usr/share |
pascal@691 | 33 touch $fs/usr/share/mime/x-openbox-theme.xml |
pascal@691 | 34 touch $fs/usr/share/mime/x-vbscript.xml |
pascal@691 | 35 touch $fs/usr/share/mime/x-ms-win-installer.xml |
pankso@696 | 36 # Locale |
pankso@696 | 37 for i in $LOCALE |
pankso@696 | 38 do |
pankso@696 | 39 mkdir -p $fs/usr/share/locale/$i/LC_MESSAGES |
pankso@696 | 40 cp $src/po/$i.gmo \ |
pankso@696 | 41 $fs/usr/share/locale/$i/LC_MESSAGES/obconf.mo |
pankso@696 | 42 done |
pankso@357 | 43 } |
pankso@677 | 44 |
pankso@677 | 45 # Update mime database. |
pankso@677 | 46 post_install() |
pankso@677 | 47 { |
pankso@677 | 48 local root |
pankso@677 | 49 root=$1 |
pankso@677 | 50 update-mime-database $root/usr/share/mime || continue |
pankso@677 | 51 } |