summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRohan Bafna2018-07-22 15:06:31 -0400
committerRohan Bafna2018-07-22 15:06:31 -0400
commit78a2afdf369bc06f526734ccc666e822cfc68fa6 (patch)
treeec3348147dab354eb3739758900da9714986f62a
downloadaur-78a2afdf369bc06f526734ccc666e822cfc68fa6.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD32
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..857ec94086b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = joycon-git
+ pkgdesc = Joy-Con input driver
+ pkgver = r99.144b22d
+ pkgrel = 1
+ url = https://github.com/riking/joycon
+ arch = x86_64
+ license = unknown
+ makedepends = go
+ makedepends = git
+ depends = libudev.so
+ provides = joycon
+ conflicts = joycon
+
+pkgname = joycon-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2ef60f3e50e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: rouhannb <rouhannb@gmail.com>
+_basename=joycon
+pkgname="$_basename-git"
+pkgver='r99.144b22d'
+pkgrel='1'
+pkgdesc='Joy-Con input driver'
+arch=('x86_64')
+url="https://github.com/riking/$_basename"
+license=('unknown')
+depends=('libudev.so')
+makedepends=('go' 'git')
+provides=("$_basename")
+conflicts=("$_basename")
+_gourl="github.com/riking/$_basename/prog4/jcdriver"
+
+prepare() {
+ GOPATH="$srcdir" go get -d -u $_gourl
+}
+
+pkgver() {
+ cd "$srcdir/src/$_gourl"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir"
+ GOPATH="$srcdir" go build $_gourl
+}
+
+package() {
+ install -Dm755 "$srcdir/jcdriver" "$pkgdir/usr/bin/jcdriver"
+}