wok-current view shared-mime-info/receipt @ rev 2093
slitaz-configs: up DEPENDS for 1.0 to 2.0 upgrade (new desktop)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 28 18:57:20 2009 +0100 (2009-01-28) |
parents | c1ff74d9b6f4 |
children | 0d71947173a7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="shared-mime-info"
4 VERSION="0.40"
5 CATEGORY="x-window"
6 SHORT_DESC="Core database of common types and the *update-mime-database*."
7 MAINTAINER="pankso@slitaz.org"
8 BUILD_DEPENDS="perl-xml-parser glib glib-dev"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://freedesktop.org/wiki/Software/shared-mime-info"
11 WGET_URL="http://freedesktop.org/~hadess/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure \
18 --prefix=/usr \
19 --sysconfdir=/etc \
20 --mandir=/usr/share/man \
21 $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/locale
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/share/mime $fs/usr/share
33 # Put pkgconfig *.pc file, since we are not doing
34 # a -dev pkg for one tiny file.
35 mkdir -p $fs/usr/lib
36 cp -a $_pkg/usr/share/pkgconfig $fs/usr/lib
37 }
39 # Update mime database.
40 post_install()
41 {
42 local root
43 root=$1
44 update-mime-database $root/usr/share/mime || continue
45 }