updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / opengazer / PKGBUILD
bloba94ed3e480f1e433a944c8c19752b36faea08ed0
1 # Contributor: Muhammad Qadri <Muhammad dot A dot Qadri at gmail dot com>
2 pkgname=opengazer
3 pkgver=0.1.2
4 pkgrel=1
5 pkgdesc="Application that uses an ordinary webcam to estimate the direction of your gaze."
6 arch=('i686')
7 url="http://www.inference.phy.cam.ac.uk/opengazer/"
8 license=('GPL2')
9 depends=('vxl' 'opencv>=0.97' 'gtkmm>=2.8.0' 'cairomm>=1.6.0' 'boost>=1.32.0')
10 options=()
11 install=$pkgname.install
12 source=("http://www.inference.phy.cam.ac.uk/opengazer/$pkgname-$pkgver.tar.gz"
13         "opengazer.patch")
14 md5sums=('2c5d856850b20d030989893351374778'
15          '74c89e2b61d500b7c718fab518aec636')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
20   msg "Applying patch"
21   patch -p1 -i ../opengazer.patch
23   msg 'Running make'
24   make || return 1
27 package() {
29   install -Dm755 $srcdir/$pkgname-$pkgver/opengazer $pkgdir/usr/bin/opengazer
30   install -Dm644 $srcdir/$pkgname-$pkgver/haarcascade_frontalface_alt.xml $pkgdir/usr/share/$pkgname/haarcascade_frontalface_alt.xml
31   install -Dm644 $srcdir/$pkgname-$pkgver/calpoints.txt $pkgdir/usr/share/$pkgname/calpoints.txt
35 # vim:set ts=2 sw=2 et: