summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRohan Bafna2018-07-28 19:54:05 -0400
committerRohan Bafna2018-07-28 19:54:05 -0400
commit89dd7da0bbc8b33fb4ae93fb0163dd8ac1b5c23e (patch)
tree030fac70fa3e2164d3e9ef95270cc1e151f54838 /PKGBUILD
parentcf5c53d08555082cc5f9faf82f874536f0529af7 (diff)
downloadaur-joycon-git.tar.gz
make it better
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 10 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2cdce8e7353..1de3870f2e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,31 +2,33 @@
_basename=joycon
pkgname="$_basename-git"
pkgver=r99.144b22d
-pkgrel=3
+pkgrel=4
pkgdesc='Joy-Con input driver'
arch=('x86_64')
url="https://github.com/riking/$_basename"
license=('unknown')
-depends=('libudev.so')
+depends=('libsystemd')
makedepends=('go' 'git')
provides=("$_basename")
conflicts=("$_basename")
-_gourl="github.com/riking/$_basename/prog4/jcdriver"
+source=("git+https://github.com/riking/$_basename.git")
+md5sums=('SKIP')
prepare() {
- GOPATH="$srcdir" go get -d -u $_gourl
+ cd "$srcdir/$_basename/prog4/jcdriver"
+ GOPATH="$(pwd)" go get -d
}
pkgver() {
- cd "$srcdir/src/$_gourl"
+ cd "$srcdir/$_basename"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir"
- GOPATH="$srcdir" go build $_gourl
+ cd "$srcdir/$_basename/prog4/jcdriver"
+ GOPATH="$(pwd)" go build
}
package() {
- install -Dm755 "$srcdir/jcdriver" "$pkgdir/usr/bin/jcdriver"
+ install -Dm755 "$srcdir/$_basename/prog4/jcdriver/jcdriver" "$pkgdir/usr/bin/jcdriver"
}