summaryrefslogtreecommitdiffstats
path: root/sane/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /sane/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'sane/Pkgfile')
-rwxr-xr-xsane/Pkgfile37
1 files changed, 37 insertions, 0 deletions
diff --git a/sane/Pkgfile b/sane/Pkgfile
new file mode 100755
index 000000000..64b7fc37e
--- /dev/null
+++ b/sane/Pkgfile
@@ -0,0 +1,37 @@
+# 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, libjpeg, libtiff, libgphoto2, libieee1284, gtk, libexif
+# Run on: libusb-compat,v4l-utils,libjpeg,libtiff,libgphoto2,libieee1284,gtk,libexif
+
+name=sane
+version=1.0.22
+release=4
+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 \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --disable-locking
+ 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
+ mkdir -p $PKG/var/lock/sane
+ chmod 775 $PKG/var/lock/sane
+ chgrp scanner $PKG/var/lock/sane
+ rm -r $PKG/usr/doc
+}
+