wok-next annotate shared-mime-info/receipt @ rev 20143
postgresql: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 11:18:25 2017 +0100 (2017-11-01) |
parents | ca2828ae20d6 |
children | 0e7893ac206d |
rev | line source |
---|---|
al@19741 | 1 # SliTaz package receipt v2. |
pankso@150 | 2 |
pankso@150 | 3 PACKAGE="shared-mime-info" |
al@19797 | 4 VERSION="1.8" |
al@19176 | 5 CATEGORY="system-tools" |
al@19741 | 6 SHORT_DESC="Core database of common types" |
pankso@150 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19741 | 9 WEB_SITE="https://freedesktop.org/wiki/Software/shared-mime-info/" |
pankso@16315 | 10 HOST_ARCH="i486 arm" |
pankso@16132 | 11 |
al@19741 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19741 | 13 WGET_URL="http://freedesktop.org/~hadess/$TARBALL" |
al@19741 | 14 |
al@18663 | 15 BUILD_DEPENDS="intltool" |
al@19741 | 16 BUILD_DEPENDS_arm="glib-dev libxml2-dev" |
al@19741 | 17 SPLIT="shared-mime-info-dev" |
slaxemulator@10340 | 18 |
pankso@150 | 19 # Rules to configure and make the package. |
pankso@150 | 20 compile_rules() |
pankso@150 | 21 { |
al@19741 | 22 # Remove unsupported locales |
al@19741 | 23 for i in $(grep '^-[a-z]' $stuff/patches/slitaz-locales.patch); do |
al@19741 | 24 rm $src/po/${i#-}.po |
al@19741 | 25 done |
al@19741 | 26 |
al@19741 | 27 ./configure \ |
al@19741 | 28 --disable-update-mimedb \ |
al@19741 | 29 $CONFIGURE_ARGS && |
al@18663 | 30 make -j1 && make -j1 DESTDIR=$DESTDIR install |
al@19741 | 31 |
al@19741 | 32 # Additional MIME-types supported by SliTaz |
al@19741 | 33 cp $stuff/*.xml $install/usr/share/mime/packages |
al@19741 | 34 |
al@19741 | 35 # strip a bit |
al@19741 | 36 sed -i 's|^ *||' "$install/usr/share/mime/packages/freedesktop.org.xml" |
pankso@150 | 37 } |
pankso@150 | 38 |
pankso@150 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@150 | 40 genpkg_rules() |
pankso@150 | 41 { |
al@19741 | 42 case $PACKAGE in |
al@19741 | 43 shared-mime-info) |
al@19741 | 44 copy bin/ packages/ |
al@19788 | 45 DEPENDS="glib libxml2" |
al@19741 | 46 ;; |
al@19741 | 47 *-dev) copy @dev;; |
al@19741 | 48 esac |
pankso@150 | 49 } |