updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / sixpair / PKGBUILD
blobc15cf96252a82207a826eef2ad530588c23fb7ec
1 # Maintainer: platnicat mewr <platnicat@gmail.com>
2 # Contributor: Edward Tjörnhammar <xhemi@cube2.se>
4 pkgname=sixpair
5 pkgver=1.8
6 pkgrel=1
7 pkgdesc="Associate PS3 Sixaxis controller to system bluetoothd via USB"
8 arch=('i686' 'x86_64')
9 url="http://www.pabr.org/sixlinux/"
10 license=('GPL')
11 depends=('libusb' 'libx11' 'glibc')
12 source=(http://www.pabr.org/sixlinux/sixpair.c \
13 http://www.pabr.org/sixlinux/sixhidtest.c \
14 http://www.pabr.org/sixlinux/xsixhidtest.c)
16 build()
18         gcc -o $startdir/src/sixpair $startdir/src/sixpair.c -lusb || return 1
19         gcc -o $startdir/src/sixhidtest $startdir/src/sixhidtest.c || return 1 
20         gcc -o $startdir/src/xsixhidtest $startdir/src/xsixhidtest.c -lX11 -lm || return 1
21         mkdir -p $startdir/pkg/usr/bin || return 1
22         install -m0755 $startdir/src/sixpair $startdir/pkg/usr/bin/sixpair || return 1
23         install -m0755 $startdir/src/sixhidtest $startdir/pkg/usr/bin/sixhidtest || return 1
24         install -m0755 $startdir/src/xsixhidtest $startdir/pkg/usr/bin/xsixhidtest || return 1
26 md5sums=('81e05551c7d6cea13bab78f609d6e0bd'
27 '8298412801178255d3bf84f4ead0306d'
28 '6fc492ddf084827b5876871dfa5fa3a6')