wok-current annotate libfm/receipt @ rev 16668
Add tesseract-ocr
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 14 12:14:30 2014 +0000 (2014-05-14) |
parents | c46591bcff38 |
children | 3e67ad4646f6 |
rev | line source |
---|---|
pascal@11205 | 1 # SliTaz package receipt. |
pascal@11205 | 2 |
pascal@11205 | 3 PACKAGE="libfm" |
pankso@16276 | 4 VERSION="1.2.0" |
pascal@11205 | 5 CATEGORY="system-tools" |
pascal@11205 | 6 SHORT_DESC="File manager library from LXDE." |
pascal@11205 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14714 | 8 LICENSE="GPL2" |
pankso@15750 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@11897 | 10 WEB_SITE="http://pcmanfm.sourceforge.net" |
pankso@11897 | 11 WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL" |
pankso@16276 | 12 HOST_ARCH="i486 arm" |
pankso@11897 | 13 |
pankso@12481 | 14 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \ |
pankso@16318 | 15 zlib fontconfig freetype gtk+ atk cairo pango pixman menu-cache \ |
pankso@16315 | 16 shared-mime-info" |
pankso@16276 | 17 BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \ |
pankso@16315 | 18 libxcb-dev xcb-util-dev menu-cache-dev expat-dev libgio-dev \ |
pankso@16315 | 19 shared-mime-info-dev" |
pankso@16276 | 20 |
pankso@16276 | 21 # hand SliTaz arch and cross compilation |
pankso@16276 | 22 case "$SLITAZ_ARCH" in |
pankso@16315 | 23 i?86) DEPENDS="$DEPENDS gamin" |
pankso@16276 | 24 esac |
pankso@16276 | 25 |
pankso@16276 | 26 case "$ARCH" in |
pankso@16315 | 27 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool gamin-dev vala" |
pankso@16276 | 28 esac |
pascal@11205 | 29 |
pascal@11205 | 30 # Rules to configure and make the package. |
pascal@11205 | 31 compile_rules() |
pascal@11205 | 32 { |
pascal@11205 | 33 ./configure \ |
pascal@11205 | 34 --sysconfdir=/etc \ |
pascal@11205 | 35 $CONFIGURE_ARGS && |
pankso@11897 | 36 make && make install |
pascal@11205 | 37 } |
pascal@11205 | 38 |
pascal@11205 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11205 | 40 genpkg_rules() |
pascal@11205 | 41 { |
pankso@11897 | 42 mkdir -p $fs/usr/lib $fs/usr/share |
pankso@11897 | 43 cp -a $install/etc $fs |
pankso@11897 | 44 cp -a $install/usr/bin $fs/usr |
pankso@11897 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@11897 | 46 cp -a $install/usr/share/libfm $fs/usr/share |
pankso@11897 | 47 cp -a $install/usr/share/mime $fs/usr/share |
pankso@11897 | 48 cp -a $install/usr/share/applications $fs/usr/share |
pascal@11205 | 49 } |
pascal@11205 | 50 |
pascal@11205 | 51 post_install() |
pascal@11205 | 52 { |
pascal@11205 | 53 # update mime-cache |
pascal@11205 | 54 echo "Updating mime-types database" |
pascal@12196 | 55 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime |
pascal@11205 | 56 } |