From 4174fbac9fb02f75a0533cb5537cd3d49ac1a5cf Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Sun, 26 Feb 2023 15:40:43 +0100 Subject: [PATCH] xsane: moved from opt --- xsane/.footprint | 30 ++++++++++++++++++++++++++++++ xsane/.signature | 5 +++++ xsane/Pkgfile | 30 ++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 xsane/.footprint create mode 100644 xsane/.signature create mode 100644 xsane/Pkgfile diff --git a/xsane/.footprint b/xsane/.footprint new file mode 100644 index 000000000..7a7def338 --- /dev/null +++ b/xsane/.footprint @@ -0,0 +1,30 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/xsane +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/gimp/ +drwxr-xr-x root/root usr/lib/gimp/2.0/ +drwxr-xr-x root/root usr/lib/gimp/2.0/plug-ins/ +lrwxrwxrwx root/root usr/lib/gimp/2.0/plug-ins/xsane -> /usr/bin/xsane +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/applications/ +-rw-r--r-- root/root usr/share/applications/xsane.desktop +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/xsane.1.gz +drwxr-xr-x root/root usr/share/pixmaps/ +-rw-r--r-- root/root usr/share/pixmaps/xsane.xpm +drwxr-xr-x root/root usr/share/sane/ +drwxr-xr-x root/root usr/share/sane/xsane/ +-rw-r--r-- root/root usr/share/sane/xsane/Mustek-logo.xpm +-rw-r--r-- root/root usr/share/sane/xsane/Plustek-logo.xpm +-rw-r--r-- root/root usr/share/sane/xsane/UMAX-logo.xpm +-rw-r--r-- root/root usr/share/sane/xsane/sane-epson-logo.xpm +-rw-r--r-- root/root usr/share/sane/xsane/sane-hp-logo.xpm +-rw-r--r-- root/root usr/share/sane/xsane/sane-umax-logo.xpm +-rw-r--r-- root/root usr/share/sane/xsane/sane-xsane-logo.xpm +-rw-r--r-- root/root usr/share/sane/xsane/xsane-calibration.pnm +-rw-r--r-- root/root usr/share/sane/xsane/xsane-eula.txt +-rw-r--r-- root/root usr/share/sane/xsane/xsane-logo.xpm +-rw-r--r-- root/root usr/share/sane/xsane/xsane-startimage.pnm +-rw-r--r-- root/root usr/share/sane/xsane/xsane-style.rc diff --git a/xsane/.signature b/xsane/.signature new file mode 100644 index 000000000..18fa0d0d3 --- /dev/null +++ b/xsane/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF31pwtIJD7hgtbUfEJv8MuA4G1pMoYxjfpRb0WHjMTevrKAMMTOzFDhd49gqbXDIx5jXg6fu9/ZN2U0O98mc1yQc= +SHA256 (Pkgfile) = 88fde78aa9571b7c542542cb4c9b68ebef2973301449f27974d2184b38b20507 +SHA256 (.footprint) = 9660de3c0ad7b91d9b3d92d80c7ff2893da1858898abb34b7c3bced97bf1c152 +SHA256 (xsane-0.999.tar.gz) = 5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b diff --git a/xsane/Pkgfile b/xsane/Pkgfile new file mode 100644 index 000000000..4007994b5 --- /dev/null +++ b/xsane/Pkgfile @@ -0,0 +1,30 @@ +# Description: Scanner frontend and GIMP plugin for sane +# URL: http://www.sane-project.org +# Maintainer: Juergen Daubert, jue at crux dot nu +# Depends on: gimp, sane + +name=xsane +version=0.999 +release=1 +source=(https://fossies.org/linux/misc/$name-$version.tar.gz) + +build () { + cd $name-$version + + # http://www.linuxfromscratch.org/blfs/view/svn/pst/xsane.html + sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/xsane-save.c + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --disable-nls \ + --enable-gtk2 \ + --enable-gimp2 + make + make DESTDIR=$PKG install + + rm -r $PKG/usr/{sbin,share/sane/xsane/doc} + rm $PKG/usr/share/sane/xsane/xsane-gpl.txt + + install -d $PKG/usr/lib/gimp/2.0/plug-ins + ln -s /usr/bin/xsane $PKG/usr/lib/gimp/2.0/plug-ins +}