blob: 01ed5c0b443fbf4917b68ce88edcd45281cae5e7 (
plain)
1 # Description: Scanner Access Now Easy - Scanner driver for Linux
2 # URL: http://www.sane-project.org/
3 # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
4 # Depends on: libusb-compat libtiff
5
6 name=sane
7 version=1.0.21
8 release=1
9 source=(ftp://ftp.sane-project.org/pub/$name/$name-backends-$version/$name-backends-$version.tar.gz)
10
11 build () {
12 cd $name-backends-$version
13
14 ./configure --prefix=/usr \
15 --mandir=/usr/man \
16 --localstatedir=/var \
17 --sysconfdir=/etc \
18 --disable-translations \
19 --enable-locking \
20 --with-group=scanner
21 make
22 make -j1 DESTDIR=$PKG install
23
24 install -D -m 644 tools/udev/libsane.rules $PKG/etc/udev/rules.d/85-libsane.rules
25
26 chown root:root $PKG/{var,var/lock}
27 chmod 0755 $PKG/var
28 chmod 1777 $PKG/var/lock
29
30 rm -r $PKG/usr/{doc,share}
31 }
|