summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Zamarin2015-06-08 11:42:34 +0300
committerArthur Zamarin2015-06-08 11:42:34 +0300
commit179c91b0ec47d4f600ad863be7a72fb85ab0d5e3 (patch)
treec7dabcb455cf3af4e43c318516c2ee98e8566473
downloadaur-179c91b0ec47d4f600ad863be7a72fb85ab0d5e3.tar.gz
Initial Commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD37
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9808ccebd15
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = psmoveapi-git
+ pkgdesc = Playstation Move Motion Controller API
+ pkgver = 3.0.0.r183.gaa44c88
+ pkgrel = 1
+ url = http://thp.io/2010/psmove/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = cmake
+ depends = bluez-libs
+ depends = libsystemd
+ source = psmoveapi::git+git://github.com/thp/psmoveapi.git
+ sha1sums = SKIP
+
+pkgname = psmoveapi-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..748b7d1cdc5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}
+