xsane: moved from opt

This commit is contained in:
Juergen Daubert 2023-02-26 15:40:43 +01:00
parent 5035eab0c8
commit 4174fbac9f
3 changed files with 65 additions and 0 deletions

30
xsane/.footprint Normal file
View File

@ -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

5
xsane/.signature Normal file
View File

@ -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

30
xsane/Pkgfile Normal file
View File

@ -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
}