wok-current annotate shared-mime-info/receipt @ rev 18663
Up tazpkg(880); change pre- post-functions, etc. in random packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 04 02:45:17 2015 +0200 (2015-12-04) |
parents | 533c0cab6960 |
children | cd38699cf179 |
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 |
al@18663 | 14 DEPENDS="glib" |
al@18663 | 15 BUILD_DEPENDS="intltool" |
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 { |
al@18663 | 25 #patch -Np1 -i $stuff/pbm.patch |
al@18663 | 26 ./configure $CONFIGURE_ARGS && |
al@18663 | 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 } |