updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fspc / PKGBUILD
blob4eccb0ecf9dadd320b8c2c09c0006e09faf911c1
1 # Contributor: Kvasthval
2 pkgname=fspc
3 pkgver=1.0.1
4 _altver=1_0_1
5 pkgrel=1
6 pkgdesc="Configuration tool for Sentelic touchpads."
7 arch=('i686' 'x86_64')
8 url=http://sourceforge.net/projects/fsp-lnxdrv/
9 license=('GPL')
10 makedepends=('cmake')
11 depends=('wxgtk')
12 source=(http://downloads.sourceforge.net/fsp-lnxdrv/fsp-lnxdrv-$pkgver-src.tar.gz)
13 md5sums=('493e8a786e16ff903ce829c38204fa80')
15 build()
17         # Compiling libfsp first (required)
18         cd $srcdir/release_$_altver/src/libfsp
19         make lib || return 1
21         # Compiling fspc
22         cd $srcdir/release_$_altver/src/$pkgname
23         cmake . || return 1
24         make $pkgname || return 1
26         # Installing fspc and resource files
27         install -D -m0755 fspc $pkgdir/usr/bin/fspc || return 1
28         install -D -m0644 fspcui.xrc $pkgdir/usr/share/$pkgname/fspcui.xrc || return 1
29         install -D -m0644 pic/Acceleration.png $pkgdir/usr/share/$pkgname/pic/Acceleration.png || return 1
30         install -D -m0644 pic/HEnabled.png $pkgdir/usr/share/$pkgname/pic/HEnabled.png || return 1
31         install -D -m0644 pic/Logo.png $pkgdir/usr/share/$pkgname/pic/Logo.png || return 1
32         install -D -m0644 pic/OpClick.png $pkgdir/usr/share/$pkgname/pic/OpClick.png || return 1
33         install -D -m0644 pic/panelAcceleration.png $pkgdir/usr/share/$pkgname/pic/panelAcceleration.png || return 1
34         install -D -m0644 pic/panelClickOnPad.png $pkgdir/usr/share/$pkgname/pic/panelClickOnPad.png || return 1
35         install -D -m0644 pic/panelDeclaration.png $pkgdir/usr/share/$pkgname/pic/panelDeclaration.png || return 1
36         install -D -m0644 pic/panelScrollOnPad.png $pkgdir/usr/share/$pkgname/pic/panelScrollOnPad.png || return 1
37         install -D -m0644 pic/panelSwInfo.png $pkgdir/usr/share/$pkgname/pic/panelSwInfo.png || return 1
38         install -D -m0644 pic/VEnabled.png $pkgdir/usr/share/$pkgname/pic/VEnabled.png || return 1
39         install -D -m0644 pic/VHDisabled.png $pkgdir/usr/share/$pkgname/pic/VHDisabled.png || return 1
40         install -D -m0644 pic/VHEnabled.png $pkgdir/usr/share/$pkgname/pic/VHEnabled.png || return 1