summaryrefslogtreecommitdiff
path: root/extra/thinkfinger/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/thinkfinger/PKGBUILD')
-rw-r--r--extra/thinkfinger/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/extra/thinkfinger/PKGBUILD b/extra/thinkfinger/PKGBUILD
new file mode 100644
index 000000000..bf6c8c9bc
--- /dev/null
+++ b/extra/thinkfinger/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 101457 2010-11-29 10:02:41Z allan $
+# Maintainer: François Charette <francois.archlinux.org>
+# Contributor: Damir Perisa <damir.archlinux.org>
+# Contributor: Björn Martensen <bjoern.martensen@gmail.com>
+
+pkgname=thinkfinger
+pkgver=0.3
+pkgrel=4
+pkgdesc="ThinkFinger is a driver for the SGS Thomson Microelectronics fingerprint reader found in most IBM/Lenovo ThinkPads"
+url="http://thinkfinger.sourceforge.net/"
+arch=('i686' 'x86_64')
+license=("GPL")
+depends=('pam' 'libusb-compat')
+install=thinkfinger.install
+options=('!libtool')
+source=(http://downloads.sourceforge.net/thinkfinger/$pkgname-$pkgver.tar.gz thinkfinger-uinput-hack.patch)
+md5sums=('588565233bcbea5ff0a7f5314361c380'
+ '71dc334282d19e6db4f6254542ba563c')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ # Patch from Ubuntu: see http://bugs.archlinux.org/task/12580
+ patch -p0 < ../thinkfinger-uinput-hack.patch
+ ./configure --prefix=/usr \
+ --with-securedir=/lib/security \
+ --with-birdir=/etc/pam_thinkfinger
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+ # create dir to store fingerprints
+ install -d $pkgdir/etc/pam_thinkfinger
+
+ make DESTDIR=$pkgdir install
+}
+