2006-02-23 16:26:10 +01: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
|
2009-11-26 22:34:52 +01:00
|
|
|
# Depends on: libusb-compat libjpeg
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=sane
|
2009-05-04 18:25:56 +02:00
|
|
|
version=1.0.20
|
2008-02-13 12:29:39 +01:00
|
|
|
release=1
|
2008-02-10 17:56:51 +01:00
|
|
|
source=(ftp://ftp.sane-project.org/pub/$name/$name-backends-$version/$name-backends-$version.tar.gz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-backends-$version
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
2006-07-26 09:11:03 +02:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 16:26:10 +01:00
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-translations \
|
2006-03-03 11:42:37 +01:00
|
|
|
--enable-locking \
|
|
|
|
--with-group=scanner
|
2006-02-23 16:26:10 +01:00
|
|
|
make
|
2008-01-18 13:21:04 +01:00
|
|
|
make -j1 DESTDIR=$PKG install
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2006-07-26 09:11:03 +02: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 16:26:10 +01:00
|
|
|
|
2006-07-26 09:11:03 +02: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 16:26:10 +01:00
|
|
|
rm -r $PKG/usr/{doc,share}
|
|
|
|
}
|