wok view shared-mime-info/receipt @ rev 852
slitaz-tools: remove tazfile, done by tazpkg and tazwok
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 22 16:36:21 2008 +0000 (2008-05-22) |
parents | cdba62f24f35 |
children | c56e0f839d1a |
line source
1 # SliTaz package receipt.
3 PACKAGE="shared-mime-info"
4 VERSION="0.23"
5 CATEGORY="x-window"
6 SHORT_DESC="Core database of common types and the *update-mime-database*."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://freedesktop.org/wiki/Software/shared-mime-info"
10 WGET_URL="http://freedesktop.org/~hadess/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 ./configure \
17 --prefix=/usr \
18 --sysconfdir=/etc \
19 --mandir=/usr/share/man \
20 $CONFIGURE_ARGS
21 make
22 make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/locale
29 cp -a $_pkg/usr/bin $fs/usr
30 cp -a $_pkg/usr/share/mime $fs/usr/share
32 # Put pkgconfig *.pc file, since we are not doing
33 # a -dev pkg for one tiny file.
34 mkdir -p $fs/usr/lib
35 cp -a $_pkg/usr/share/pkgconfig $fs/usr/lib
36 }
38 # Update mime database.
39 post_install()
40 {
41 local root
42 root=$1
43 update-mime-database $root/usr/share/mime || continue
44 }