wok-6.x annotate shared-mime-info/receipt @ rev 2766
Add: tint2 taskbar
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Sun Apr 26 16:06:56 2009 +0000 (2009-04-26) |
parents | 52dc4b48ed81 |
children | 496049365d58 |
rev | line source |
---|---|
pankso@150 | 1 # SliTaz package receipt. |
pankso@150 | 2 |
pankso@150 | 3 PACKAGE="shared-mime-info" |
pankso@966 | 4 VERSION="0.40" |
pankso@150 | 5 CATEGORY="x-window" |
pankso@150 | 6 SHORT_DESC="Core database of common types and the *update-mime-database*." |
pankso@150 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@2441 | 8 DEPENDS="glib libxml2 zlib" |
pascal@1514 | 9 BUILD_DEPENDS="perl-xml-parser glib glib-dev" |
pankso@150 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@150 | 11 WEB_SITE="http://freedesktop.org/wiki/Software/shared-mime-info" |
pankso@150 | 12 WGET_URL="http://freedesktop.org/~hadess/$TARBALL" |
pankso@150 | 13 |
pankso@150 | 14 # Rules to configure and make the package. |
pankso@150 | 15 compile_rules() |
pankso@150 | 16 { |
pankso@150 | 17 cd $src |
pankso@150 | 18 ./configure \ |
pankso@150 | 19 --prefix=/usr \ |
pankso@150 | 20 --sysconfdir=/etc \ |
pankso@150 | 21 --mandir=/usr/share/man \ |
pascal@1465 | 22 $CONFIGURE_ARGS && |
pascal@1465 | 23 make && |
pankso@150 | 24 make DESTDIR=$PWD/_pkg install |
pankso@150 | 25 } |
pankso@150 | 26 |
pankso@150 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@150 | 28 genpkg_rules() |
pankso@150 | 29 { |
pankso@150 | 30 mkdir -p $fs/usr/share/locale |
pankso@150 | 31 cp -a $_pkg/usr/bin $fs/usr |
pankso@150 | 32 cp -a $_pkg/usr/share/mime $fs/usr/share |
pankso@150 | 33 |
pankso@150 | 34 # Put pkgconfig *.pc file, since we are not doing |
pankso@150 | 35 # a -dev pkg for one tiny file. |
pankso@150 | 36 mkdir -p $fs/usr/lib |
pankso@150 | 37 cp -a $_pkg/usr/share/pkgconfig $fs/usr/lib |
pankso@150 | 38 } |
pankso@677 | 39 |
pankso@677 | 40 # Update mime database. |
pankso@677 | 41 post_install() |
pankso@677 | 42 { |
pankso@677 | 43 local root |
pankso@677 | 44 root=$1 |
pankso@677 | 45 update-mime-database $root/usr/share/mime || continue |
pankso@677 | 46 } |