opt/xsane/Pkgfile

31 lines
866 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Scanner frontend and GIMP plugin for sane
2018-08-10 16:55:32 +02:00
# URL: http://www.sane-project.org
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2006-02-23 16:26:10 +01:00
# Depends on: gimp, sane
name=xsane
2017-02-17 12:54:16 +01:00
version=0.999
release=1
2018-08-10 16:55:32 +02:00
source=(https://fossies.org/linux/misc/$name-$version.tar.gz)
2006-02-23 16:26:10 +01:00
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
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
2017-02-17 12:54:16 +01:00
--mandir=/usr/share/man \
2006-02-23 16:26:10 +01:00
--disable-nls \
--enable-gtk2 \
--enable-gimp2
make
2009-08-15 10:32:40 +02:00
make DESTDIR=$PKG install
2006-02-23 16:26:10 +01:00
2009-08-15 10:32:40 +02:00
rm -r $PKG/usr/{sbin,share/sane/xsane/doc}
2006-02-23 16:26:10 +01:00
rm $PKG/usr/share/sane/xsane/xsane-gpl.txt
2009-08-15 10:32:40 +02:00
install -d $PKG/usr/lib/gimp/2.0/plug-ins
2006-02-23 16:26:10 +01:00
ln -s /usr/bin/xsane $PKG/usr/lib/gimp/2.0/plug-ins
}