updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / g13-git / PKGBUILD
blob472088956086326bec3345fc309d2e0a3c188a0a
1 # Maintainer: Peter Feigl <peter.feigl@gmail.com>
2 pkgname=g13-git
3 pkgver=20110809
4 pkgrel=1
5 pkgdesc="Userspace driver for the Logitech G13 Keyboard"
6 arch=(x86_64 i686)
7 url="https://github.com/ecraven/g13"
8 license=('unknown')
9 groups=()
10 depends=()
11 makedepends=('git')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
21 _gitroot="https://github.com/ecraven/g13"
22 _gitname="g13"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
42   #
43   # BUILD HERE
44   #
46   make
49 package() {
50   cd "$srcdir/$_gitname-build"
51   mkdir -p ${pkgdir}/usr/bin
52   cp g13 ${pkgdir}/usr/bin
53