wok-stable annotate xsane/receipt @ rev 12030

stella: move post_install code to genpkg_rules. It's far better to run a command once on the builder than on install on each of our computer.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Mar 06 22:40:08 2012 +0100 (2012-03-06)
parents ebf60d9a284d
children 9737ff602e80
rev   line source
pankso@650 1 # SliTaz package receipt.
pankso@650 2
pankso@650 3 PACKAGE="xsane"
slaxemulator@7330 4 VERSION="0.998"
pankso@650 5 CATEGORY="office"
pankso@650 6 SHORT_DESC="XSane - graphical scanning frontend."
pankso@650 7 MAINTAINER="pankso@slitaz.org"
pankso@650 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@650 9 WEB_SITE="http://www.xsane.org/"
pankso@4252 10 WGET_URL="http://www.xsane.org/download/$TARBALL"
pankso@650 11
erjo@9946 12 DEPENDS="sane-backends gtk+ tiff xorg-libXdamage lcms libv4l libltdl"
erjo@9883 13 BUILD_DEPENDS="gtk+-dev sane-backends-dev lcms-dev "
erjo@9883 14
pankso@650 15 # Rules to configure and make the package.
pankso@650 16 compile_rules()
pankso@650 17 {
pankso@650 18 cd $src
pankso@650 19 ./configure \
pankso@650 20 --prefix=/usr \
pankso@650 21 --mandir=/usr/share/man \
pascal@1516 22 $CONFIGURE_ARGS &&
pascal@1516 23 make &&
erjo@9883 24 make DESTDIR=$DESTDIR install
pankso@650 25 }
pankso@650 26
pankso@650 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@650 28 genpkg_rules()
pankso@650 29 {
pascal@11623 30 mkdir -p $fs/usr/share/applications
pascal@11623 31 cp -a $stuff/xsane.desktop $fs/usr/share/applications
pankso@650 32 cp -a $_pkg/usr/bin $fs/usr
pankso@650 33 cp -a $_pkg/usr/share/sane $fs/usr/share
pankso@650 34 rm -rf $fs/usr/share/sane/xsane/doc
pankso@650 35 }