wok-current annotate xsane/receipt @ rev 25701
Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Apr 19 12:48:51 2024 +0000 (2 months ago) |
parents | 17091bc7c301 |
children |
rev | line source |
---|---|
pankso@650 | 1 # SliTaz package receipt. |
pankso@650 | 2 |
pankso@650 | 3 PACKAGE="xsane" |
pascal@22801 | 4 VERSION="0.999" |
pankso@650 | 5 CATEGORY="office" |
pankso@650 | 6 SHORT_DESC="XSane - graphical scanning frontend." |
pankso@650 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15601 | 8 LICENSE="GPL2" |
pankso@650 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@650 | 10 WEB_SITE="http://www.xsane.org/" |
pascal@22801 | 11 WGET_URL="https://gitlab.com/sane-project/frontend/xsane/-/archive/$VERSION/$TARBALL" |
pankso@650 | 12 |
erjo@9946 | 13 DEPENDS="sane-backends gtk+ tiff xorg-libXdamage lcms libv4l libltdl" |
erjo@9883 | 14 BUILD_DEPENDS="gtk+-dev sane-backends-dev lcms-dev " |
erjo@9883 | 15 |
pascal@24061 | 16 current_version() |
pascal@24061 | 17 { |
pascal@24415 | 18 wget -O - "${WGET_URL%/arch*}/tags?sort=updated_desc" 2>/dev/null | \ |
pascal@24061 | 19 sed '/tar.gz/!d;s|.*/xsane-\(.*\).tar.gz".*|\1|;q' |
pascal@24061 | 20 } |
pascal@24061 | 21 |
pankso@650 | 22 # Rules to configure and make the package. |
pankso@650 | 23 compile_rules() |
pankso@650 | 24 { |
shann@25634 | 25 # Patch from archlinux |
shann@25634 | 26 # see https://gitlab.archlinux.org/archlinux/packaging/packages/xsane |
shann@25634 | 27 patch -p1 < $stuff/xsane-0.995-xdg-open.patch |
shann@25634 | 28 sed -i -e 's:png_ptr->jmpbuf:png_jmpbuf(png_ptr):' src/xsane-save.c |
shann@25634 | 29 patch -p1 < $stuff/0165-xsane-0.999-lcms2.patch |
shann@25634 | 30 patch -p1 < $stuff/0001-lcms2_configure.patch |
shann@25634 | 31 patch -Np1 < $stuff/xsane-preview-selection.patch |
shann@25634 | 32 |
pankso@650 | 33 ./configure \ |
pankso@650 | 34 --prefix=/usr \ |
pankso@650 | 35 --mandir=/usr/share/man \ |
slaxemulator@12331 | 36 --disable-gimp \ |
pascal@1516 | 37 $CONFIGURE_ARGS && |
pascal@1516 | 38 make && |
erjo@9883 | 39 make DESTDIR=$DESTDIR install |
pankso@650 | 40 } |
pankso@650 | 41 |
pankso@650 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@650 | 43 genpkg_rules() |
pankso@650 | 44 { |
samuel_trassare@12055 | 45 mkdir -p $fs/usr/share |
pascal@15601 | 46 cp -a $install/usr/bin $fs/usr |
pascal@15601 | 47 cp -a $install/usr/share/sane $fs/usr/share |
pankso@650 | 48 rm -rf $fs/usr/share/sane/xsane/doc |
pascal@22798 | 49 mv $install/usr/share/sane/xsane/doc $install/usr/share/doc |
pankso@650 | 50 } |