summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26fa03caf70a111d3ad0b10126834d8dd7d27269 (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
# Maintainer: Matt Spaulding <matt@mattops.io>

pkgname=xow-git
_pkgname=xow
pkgver=0.5.r28.ga396e3f
pkgrel=1
pkgdesc="Linux driver for the Xbox One wireless dongle"
arch=(x86_64)
url=https://github.com/medusalix/xow
license=('GPL2')
depends=('libusb-1.0-0')
makedepends=('git' 'cabextract' 'libusb-1.0-0-dev')
source=('git+https://github.com/medusalix/xow')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"
  make PREFIX=/usr BUILD=RELEASE
}

package() {
  cd "$srcdir/$_pkgname"
  make PREFIX=/usr DESTDIR=$pkgdir/ SYSDDIR=/usr/lib/systemd/system install
}