wok view shared-mime-info/receipt @ rev 17605

notify-python: fix notify_notification_new args
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 12 13:15:01 2015 +0100 (2015-02-12)
parents c46591bcff38
children 124c3a7da04f
line source
1 # SliTaz package receipt.
3 PACKAGE="shared-mime-info"
4 VERSION="1.3"
5 CATEGORY="x-window"
6 SHORT_DESC="Core database of common types and the *update-mime-database*."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://freedesktop.org/wiki/Software/shared-mime-info"
11 WGET_URL="http://freedesktop.org/~hadess/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glib libxml2 zlib"
15 BUILD_DEPENDS="perl-xml-parser glib-dev libxml2-dev intltool pkg-config"
17 # Handle cross compilation. Host perl/intltool are used
18 case "$ARCH" in
19 arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 #patch -Np1 -i $stuff/pbm.patch
26 ./configure $CONFIGURE_ARGS &&
27 make -j1 && make -j1 DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/mime
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/share/mime/packages $fs/usr/share/mime
37 # Additional MIME-types supported by SliTaz
38 cp $stuff/*.xml $fs/usr/share/mime/packages
39 }
41 # Update mime database.
42 post_install()
43 {
44 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
45 }