summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxDShot2019-12-06 22:09:59 +0300
committerxDShot2019-12-06 22:09:59 +0300
commit45b0e57a29868952981d11137836288aa24dbcfb (patch)
treec915399001c28daa7606c50a5596685d134cd25c
parent7dd9112b16e3ecd0bda354e2e119c2e4445746b9 (diff)
downloadaur-45b0e57a29868952981d11137836288aa24dbcfb.tar.gz
Initial
-rw-r--r--.SRCINFO23
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD61
3 files changed, 60 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 87b03fefc01..d2ddd2a6e2a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,19 @@
-# Generated by mksrcinfo v8
-# Wed Jan 30 23:20:34 UTC 2019
-pkgbase = pakextract
- pkgdesc = A small tool to extract pak files
- pkgver = r14.55d4ca2
+pkgbase = hydrajoy-git
+ pkgver = r7.61d5da4
pkgrel = 1
- url = https://github.com/yquake2/pakextract
- arch = i686
+ url = https://github.com/yomboprime/hydrajoy
arch = x86_64
- license = BSD
makedepends = git
- source = git+https://github.com/yquake2/pakextract.git
+ source = git+https://github.com/yomboprime/hydrajoy.git
md5sums = SKIP
-pkgname = pakextract
+pkgname = hydrajoy-git
+ pkgdesc = A program that exposes the Razer Hydra controller as a 20 axis virtual joystick on Linux.
+ license = GPL3
+ depends = sixense-sdk
+ provides = hydrajoy
+
+pkgname = sixense-sdk
+ pkgdesc = Sixense SDK libraries and headers
+ license = custom
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e404cf20610
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.pkg*
+src/*
+pkg/*
diff --git a/PKGBUILD b/PKGBUILD
index ae0cf200969..d29955cffb0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,55 @@
-# Maintainer: Zanny <lordzanny@gmail.com>
-pkgname=pakextract
-pkgver=r14.55d4ca2
+_hydrajoy=hydrajoy
+_sixense_sdk=sixense-sdk
+bkgbase=${_hydrajoy}-git
+pkgname=( ${_hydrajoy}-git $_sixense_sdk )
+pkgver=r7.61d5da4
+#pkgver_hydrajoy-git=r7.61d5da4
+#pkgver_sixense-sdk=20111215 # Using date from readme for now
pkgrel=1
-pkgdesc="A small tool to extract pak files"
-arch=(i686 x86_64)
-url="https://github.com/yquake2/pakextract"
-license=('BSD')
+_giturl="https://github.com/yomboprime/${_hydrajoy}"
+arch=(x86_64)
+url=${_giturl}
makedepends=('git')
-source=("git+https://github.com/yquake2/$pkgname.git")
+source=("git+${_giturl}.git")
md5sums=('SKIP')
+# If there are no tags then use number of revisions since beginning of the history:
pkgver() {
- cd "$srcdir/$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$_hydrajoy"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/$pkgname"
- make
+ cd ${srcdir}/${_hydrajoy}/src
+ # remove prebuilt binary
+ rm hydrajoy64
+ make
}
-package() {
- cd "$srcdir/$pkgname"
- install -D -m 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
- install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- install -D -m 644 README "$pkgdir/usr/share/doc/$pkgname/README"
+package_hydrajoy-git () {
+ pkgdesc="A program that exposes the Razer Hydra controller as a 20 axis virtual joystick on Linux."
+ license=('GPL3')
+ depends=( ${_sixense_sdk} )
+ provides=( ${_hydrajoy} )
+
+ mkdir -p "${pkgdir}"/usr/bin/
+ mv ${srcdir}/${_hydrajoy}/src/hydrajoy64 "${pkgdir}"/usr/bin/hydrajoy
+
+ install -Dm 644 ${srcdir}/${_hydrajoy}/98-uinput.rules \
+ "${pkgdir}/usr/lib/udev/rules.d/98-hydrajoy-uinput.rules"
+ sed -i 's/GROUP=\"yombo\", //g' "${pkgdir}/usr/lib/udev/rules.d/98-hydrajoy-uinput.rules"
+}
+
+package_sixense-sdk () {
+ pkgdesc="Sixense SDK libraries and headers"
+ license=('custom')
+
+ mkdir -p "${pkgdir}"/usr/lib/
+ cp ${srcdir}/${_hydrajoy}/lib/sixense/lib/linux_x64/release/{libsixense_x64.so,libsixense_utils_x64.so} "${pkgdir}"/usr/lib/
+
+ mkdir -p "${pkgdir}"/usr/include/
+ cp -r ${srcdir}/${_hydrajoy}/lib/sixense/include "${pkgdir}"/usr/
+
+ install -Dm 644 ${srcdir}/${_hydrajoy}/lib/sixense/install/99-sixense-libusb.rules \
+ "${pkgdir}"/usr/lib/udev/rules.d/99-sixense-libusb.rules
}