summaryrefslogtreecommitdiffstats
path: root/extra/sane/Pkgfile
blob: 4650e928df7208bf3862361c6bcea2456c2f04d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Description: Programmes de base pour scanners
# URL: http://www.sane-project.org/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libusb-compat, v4l-utils, avahi, libjpeg, libtiff, libgphoto2, libieee1284, gtk, libexif
# Run on: libusb-compat,v4l-utils,avahi,libjpeg,libtiff,libgphoto2,libieee1284,gtk,libexif

name=sane
version=1.0.22
release=2
source=( ftp://ftp2.sane-project.org/pub/sane/$name-backends-$version/$name-backends-$version.tar.gz
	 sane-libv4l-0.8.3.patch)

build() {
	cd $name-backends-$version

	patch -p1 -i ../sane-libv4l-0.8.3.patch

	./configure --prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--enable-avahi \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
	make DESTDIR=$PKG install
	install -d $PKG/etc/udev/rules.d
	install -m 644 -v tools/udev/libsane.rules \
	$PKG/etc/udev/rules.d/65-scanner.rules
	install -v -m644 doc/sane.png doc/sane-logo.png \
	$PKG/usr/share/sane
	chmod 775 $PKG/var/lock/sane
	chgrp scanner $PKG/var/lock/sane
	rm -r $PKG/usr/doc
}