blob: 748b7d1cdc57f6e10f01ef3d01803b43c05abbab (
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
|
# Maintainer: Arthur Zamarin <arthurzam@gmail.com>
_pkgname=psmoveapi
pkgname=${_pkgname}-git
pkgver=3.0.0.r183.gaa44c88
pkgrel=1
pkgdesc="Playstation Move Motion Controller API"
arch=(i686 x86_64)
url="http://thp.io/2010/psmove/"
license=('GPL2')
depends=('bluez-libs' 'libsystemd')
makedepends=('cmake')
source=(${_pkgname}::git+git://github.com/thp/${_pkgname}.git)
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${_pkgname}"
git submodule init
git submodule update
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
}
build() {
cd "${srcdir}/${_pkgname}"
make
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="$pkgdir" install
}
|