blob: 4007994b5a1025e6f67d7bd956e02648b194b887 (
plain)
1 # Description: Scanner frontend and GIMP plugin for sane
2 # URL: http://www.sane-project.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: gimp, sane
5
6 name=xsane
7 version=0.999
8 release=1
9 source=(https://fossies.org/linux/misc/$name-$version.tar.gz)
10
11 build () {
12 cd $name-$version
13
14 # http://www.linuxfromscratch.org/blfs/view/svn/pst/xsane.html
15 sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/xsane-save.c
16
17 ./configure --prefix=/usr \
18 --mandir=/usr/share/man \
19 --disable-nls \
20 --enable-gtk2 \
21 --enable-gimp2
22 make
23 make DESTDIR=$PKG install
24
25 rm -r $PKG/usr/{sbin,share/sane/xsane/doc}
26 rm $PKG/usr/share/sane/xsane/xsane-gpl.txt
27
28 install -d $PKG/usr/lib/gimp/2.0/plug-ins
29 ln -s /usr/bin/xsane $PKG/usr/lib/gimp/2.0/plug-ins
30 }
|