wok annotate shared-mime-info/receipt @ rev 16295

Up: garcon (0.3.0)
author Alexander Medvedev <devl547@gmail.com>
date Mon Apr 07 07:48:54 2014 +0000 (2014-04-07)
parents 380ffe05937a
children c46591bcff38
rev   line source
pankso@150 1 # SliTaz package receipt.
pankso@150 2
pankso@150 3 PACKAGE="shared-mime-info"
slaxemulator@11033 4 VERSION="0.91"
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@15000 8 LICENSE="GPL2"
slaxemulator@11033 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@150 10 WEB_SITE="http://freedesktop.org/wiki/Software/shared-mime-info"
pankso@150 11 WGET_URL="http://freedesktop.org/~hadess/$TARBALL"
pankso@16132 12
pankso@16132 13 CROSS_BUGS="Run the cross compiled update-mime-database on build host"
pankso@16132 14 #HOST_ARCH="i486 arm"
pankso@16132 15
pankso@2837 16 LOCALE=""
pankso@16132 17 DEPENDS="glib libxml2 zlib"
pankso@16132 18 BUILD_DEPENDS="perl-xml-parser glib-dev libxml2-dev intltool pkg-config"
pankso@150 19
pankso@16132 20 # Handle cross compilation. Host perl/intltool are used
pankso@16132 21 case "$ARCH" in
pankso@16132 22 arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;;
pankso@16132 23 esac
slaxemulator@10340 24
pankso@150 25 # Rules to configure and make the package.
pankso@150 26 compile_rules()
pankso@150 27 {
slaxemulator@11033 28 patch -Np1 -i $stuff/pbm.patch
slaxemulator@10340 29 ./configure $CONFIGURE_ARGS &&
slaxemulator@10340 30 make -j1 && make -j1 DESTDIR=$DESTDIR install
pankso@150 31 }
pankso@150 32
pankso@150 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@150 34 genpkg_rules()
pankso@150 35 {
pankso@2837 36 mkdir -p $fs/usr/share
pascal@15000 37 cp -a $install/usr/bin $fs/usr
pascal@15000 38 cp -a $install/usr/share/mime $fs/usr/share
pankso@150 39 }
pankso@677 40
pankso@677 41 # Update mime database.
pankso@677 42 post_install()
pankso@677 43 {
pascal@12196 44 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
pankso@677 45 }