summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6afadbca230a0193b49fec73d71d3e2282fece1 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot].com
# Contributor: Uzsolt
 
pkgname=liblightstone-git
pkgver=20121116
pkgrel=2
pkgdesc="Driver for the Lightstone Biometrics USB Widget that ships with the Journey to Wild Divine video game"
url="http://liblightstone.nonpolynomial.com/"
arch=('any')
license=('custom')
install=
source=()
depends=('')
optdepends=()
conflicts=()
provides=''
makedepends=('cmake' 'libusb>=1.0')

_gitname="liblightstone"
_gitroot="git://github.com/qdot/${_gitname}.git"
 
 
build() {
  cd $srcdir
  msg "Connecting to GIT (${_gitroot}) ..."
 
  if [ -d $_gitname ]; then
    cd $_gitname && git pull origin
    msg "The local files of ${_gitname} were updated."
  else
    git clone $_gitroot $_gitname
  fi
 
  msg "GIT checkout done or server timeout"
 
  mkdir -p $srcdir/${_gitname}/build
  cd $srcdir/${_gitname}/build
  cmake -DCMAKE_INSTALL_PREFIX=$pkgdir ../ && make
}
 
package() {

    cd $srcdir/${_gitname}
    mkdir -p $pkgdir/usr/include/lightstone/
    install -m455 ./include/lightstone/lightstone.h $pkgdir/usr/include/lightstone/lightstone.h
    cd ./build
    mkdir -p $pkgdir/lib
    install -m455 ./lib/* $pkgdir/lib

    mkdir -p $pkgdir/usr/bin
    install -m755 ./bin/lightstone_test $pkgdir/usr/bin
}