summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa9fa86cb47e90f570c1921d25cc6b87f1ffcb23 (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: Anthony Wang <ta180m@pm.me>

pkgname=netstick-git
pkgver=r11.274d510
pkgrel=1
pkgdesc='Realtime Client/Server app for Linux allowing joystick (and other HID) data to be transferred over a local network'
arch=(any)
url="https://github.com/moslevin/netstick"
license=(BSD)
makedepends=('gcc' 'make' 'git' 'cmake')
source=("${pkgname}::git+https://github.com/moslevin/netstick.git")
sha512sums=('SKIP')
provides=('netstick')
conflicts=('netstick')
options=(!strip)

pkgver() {
  cd "${srcdir}/${pkgname}"

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname}"

  cmake ./CMakeLists.txt
  make
}

package() {
  cd "${srcdir}/${pkgname}"

  install -Dm755 netstick "${pkgdir}/usr/bin/netstick"
  install -Dm755 netstickd "${pkgdir}/usr/bin/netstickd"
}

# vim:set sw=2 sts=2 et: