2006-02-23 15:26:10 +00:00
|
|
|
# Description: Scanner Access Now Easy - Scanner driver for Linux
|
|
|
|
# URL: http://www.sane-project.org/
|
2008-07-11 09:29:19 +02:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: libusb, libjpeg
|
|
|
|
|
|
|
|
name=sane
|
2008-02-13 12:29:39 +01:00
|
|
|
version=1.0.19
|
|
|
|
release=1
|
2008-02-10 18:56:51 +02:00
|
|
|
source=(ftp://ftp.sane-project.org/pub/$name/$name-backends-$version/$name-backends-$version.tar.gz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-backends-$version
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
2006-07-26 07:11:03 +00:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 15:26:10 +00:00
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-translations \
|
2006-03-03 10:42:37 +00:00
|
|
|
--enable-locking \
|
|
|
|
--with-group=scanner
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
2008-01-18 13:21:04 +01:00
|
|
|
make -j1 DESTDIR=$PKG install
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-07-26 07:11:03 +00:00
|
|
|
install -d $PKG/etc/udev/rules.d
|
|
|
|
install -m 644 tools/udev/libsane.rules $PKG/etc/udev/rules.d
|
2008-01-18 13:21:04 +01:00
|
|
|
sed -i 's/usb_device/usb/' $PKG/etc/udev/rules.d/libsane.rules
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-07-26 07:11:03 +00:00
|
|
|
chown root:root $PKG/{var,var/lock}
|
2006-10-31 17:58:26 +01:00
|
|
|
chmod 0755 $PKG/var
|
|
|
|
chmod 1777 $PKG/var/lock
|
2008-01-18 13:21:04 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
rm -r $PKG/usr/{doc,share}
|
|
|
|
}
|