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

Up busybox (1.23.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 27 16:55:03 2015 +0100 (2015-01-27)
parents c46591bcff38
children 124c3a7da04f
rev   line source
pankso@150 1 # SliTaz package receipt.
pankso@150 2
pankso@150 3 PACKAGE="shared-mime-info"
pankso@16315 4 VERSION="1.3"
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@16315 12 HOST_ARCH="i486 arm"
pankso@16132 13
pankso@16132 14 DEPENDS="glib libxml2 zlib"
pankso@16132 15 BUILD_DEPENDS="perl-xml-parser glib-dev libxml2-dev intltool pkg-config"
pankso@150 16
pankso@16132 17 # Handle cross compilation. Host perl/intltool are used
pankso@16132 18 case "$ARCH" in
pankso@16132 19 arm*) BUILD_DEPENDS="glib-dev libxml2-dev" ;;
pankso@16132 20 esac
slaxemulator@10340 21
pankso@150 22 # Rules to configure and make the package.
pankso@150 23 compile_rules()
pankso@150 24 {
pankso@16315 25 #patch -Np1 -i $stuff/pbm.patch
slaxemulator@10340 26 ./configure $CONFIGURE_ARGS &&
slaxemulator@10340 27 make -j1 && make -j1 DESTDIR=$DESTDIR install
pankso@150 28 }
pankso@150 29
pankso@150 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@150 31 genpkg_rules()
pankso@150 32 {
al@17261 33 mkdir -p $fs/usr/share/mime
pascal@15000 34 cp -a $install/usr/bin $fs/usr
al@17261 35 cp -a $install/usr/share/mime/packages $fs/usr/share/mime
al@17261 36
al@17261 37 # Additional MIME-types supported by SliTaz
al@17261 38 cp $stuff/*.xml $fs/usr/share/mime/packages
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 }