summaryrefslogtreecommitdiffstats
path: root/extra/sane/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/sane/Pkgfile')
-rwxr-xr-xextra/sane/Pkgfile30
1 files changed, 30 insertions, 0 deletions
diff --git a/extra/sane/Pkgfile b/extra/sane/Pkgfile
new file mode 100755
index 000000000..0304d3c52
--- /dev/null
+++ b/extra/sane/Pkgfile
@@ -0,0 +1,30 @@
+# 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
+
+name=sane
+version=1.0.20
+release=2
+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
+}