wok-current view shared-mime-info/receipt @ rev 16189

ARM: add ruby!!!
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 30 19:39:55 2014 +0200 (2014-03-30)
parents 380ffe05937a
children c46591bcff38
line source
1 # SliTaz package receipt.
3 PACKAGE="shared-mime-info"
4 VERSION="0.91"
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"
13 CROSS_BUGS="Run the cross compiled update-mime-database on build host"
14 #HOST_ARCH="i486 arm"
16 LOCALE=""
17 DEPENDS="glib libxml2 zlib"
18 BUILD_DEPENDS="perl-xml-parser glib-dev libxml2-dev intltool pkg-config"
20 # Handle cross compilation. Host perl/intltool are used
21 case "$ARCH" in
22 arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch -Np1 -i $stuff/pbm.patch
29 ./configure $CONFIGURE_ARGS &&
30 make -j1 && make -j1 DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/mime $fs/usr/share
39 }
41 # Update mime database.
42 post_install()
43 {
44 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
45 }