summaryrefslogtreecommitdiffstats
path: root/extra/sane/Pkgfile
blob: 9534aa3c0ddfaaca413f4e8b22d9f57f373533f4 (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
# 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, libjpeg, libtiff, libgphoto2, libieee1284, gtk, libexif, libv4l
# Run on: libusb,libjpeg,libtiff,libgphoto2,libieee1284,gtk,libexif,libv4l

name=sane
version=1.0.21
release=1
source=( ftp://ftp2.sane-project.org/pub/sane/$name-backends-$version/$name-backends-$version.tar.gz)


build() {
	cd $name-backends-$version
	./configure --prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--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
}