wok-current view xsane/receipt @ rev 24084

libjson-c-dev: fix version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 13:06:31 2021 +0000 (2021-07-10)
parents 451564b0cc5d
children 17091bc7c301
line source
1 # SliTaz package receipt.
3 PACKAGE="xsane"
4 VERSION="0.999"
5 CATEGORY="office"
6 SHORT_DESC="XSane - graphical scanning frontend."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.xsane.org/"
11 WGET_URL="https://gitlab.com/sane-project/frontend/xsane/-/archive/$VERSION/$TARBALL"
13 DEPENDS="sane-backends gtk+ tiff xorg-libXdamage lcms libv4l libltdl"
14 BUILD_DEPENDS="gtk+-dev sane-backends-dev lcms-dev "
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
19 sed '/tar.gz/!d;s|.*/xsane-\(.*\).tar.gz".*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 --disable-gimp \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/share/sane $fs/usr/share
40 rm -rf $fs/usr/share/sane/xsane/doc
41 mv $install/usr/share/sane/xsane/doc $install/usr/share/doc
42 }