wok-next annotate shared-mime-info/receipt @ rev 1685

get-flash-plugin: speedup & fix version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 09 23:08:30 2008 +0000 (2008-11-09)
parents c1ff74d9b6f4
children 0d71947173a7
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@1514 8 BUILD_DEPENDS="perl-xml-parser glib glib-dev"
pankso@150 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@150 10 WEB_SITE="http://freedesktop.org/wiki/Software/shared-mime-info"
pankso@150 11 WGET_URL="http://freedesktop.org/~hadess/$TARBALL"
pankso@150 12
pankso@150 13 # Rules to configure and make the package.
pankso@150 14 compile_rules()
pankso@150 15 {
pankso@150 16 cd $src
pankso@150 17 ./configure \
pankso@150 18 --prefix=/usr \
pankso@150 19 --sysconfdir=/etc \
pankso@150 20 --mandir=/usr/share/man \
pascal@1465 21 $CONFIGURE_ARGS &&
pascal@1465 22 make &&
pankso@150 23 make DESTDIR=$PWD/_pkg install
pankso@150 24 }
pankso@150 25
pankso@150 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@150 27 genpkg_rules()
pankso@150 28 {
pankso@150 29 mkdir -p $fs/usr/share/locale
pankso@150 30 cp -a $_pkg/usr/bin $fs/usr
pankso@150 31 cp -a $_pkg/usr/share/mime $fs/usr/share
pankso@150 32
pankso@150 33 # Put pkgconfig *.pc file, since we are not doing
pankso@150 34 # a -dev pkg for one tiny file.
pankso@150 35 mkdir -p $fs/usr/lib
pankso@150 36 cp -a $_pkg/usr/share/pkgconfig $fs/usr/lib
pankso@150 37 }
pankso@677 38
pankso@677 39 # Update mime database.
pankso@677 40 post_install()
pankso@677 41 {
pankso@677 42 local root
pankso@677 43 root=$1
pankso@677 44 update-mime-database $root/usr/share/mime || continue
pankso@677 45 }