wok annotate shared-mime-info/receipt @ rev 13638
Up: embryo (1.7.1)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Nov 16 00:04:15 2012 +0100 (2012-11-16) |
parents | 208265e35b96 |
children | 380ffe05937a |
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" |
slaxemulator@11033 | 8 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@150 | 9 WEB_SITE="http://freedesktop.org/wiki/Software/shared-mime-info" |
pankso@150 | 10 WGET_URL="http://freedesktop.org/~hadess/$TARBALL" |
pankso@2837 | 11 LOCALE="" |
pankso@150 | 12 |
slaxemulator@10340 | 13 DEPENDS="glib libxml2 zlib" |
slaxemulator@10340 | 14 BUILD_DEPENDS="perl-xml-parser glib glib-dev libxml2-dev intltool pkg-config" |
slaxemulator@10340 | 15 |
pankso@150 | 16 # Rules to configure and make the package. |
pankso@150 | 17 compile_rules() |
pankso@150 | 18 { |
pankso@150 | 19 cd $src |
slaxemulator@11033 | 20 patch -Np1 -i $stuff/pbm.patch |
slaxemulator@10340 | 21 ./configure $CONFIGURE_ARGS && |
slaxemulator@10340 | 22 make -j1 && make -j1 DESTDIR=$DESTDIR install |
pankso@150 | 23 } |
pankso@150 | 24 |
pankso@150 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@150 | 26 genpkg_rules() |
pankso@150 | 27 { |
pankso@2837 | 28 mkdir -p $fs/usr/share |
pankso@150 | 29 cp -a $_pkg/usr/bin $fs/usr |
pankso@150 | 30 cp -a $_pkg/usr/share/mime $fs/usr/share |
pankso@150 | 31 } |
pankso@677 | 32 |
pankso@677 | 33 # Update mime database. |
pankso@677 | 34 post_install() |
pankso@677 | 35 { |
pascal@12196 | 36 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime |
pankso@677 | 37 } |