summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fa7986ea074e38c879d99c2073f1334529438e9 (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
# Maintainer: Guillaume Michaud <michaudg@gmail.com>

pkgname=xow
pkgver=0.5
pkgrel=2
pkgdesc='Linux driver for the Xbox One wireless dongle'
arch=('x86_64')
url='https://github.com/medusalix/xow'
license=('GPL2')
depends=('libusb' 'cabextract')
conflicts=('xow-git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/medusalix/xow/archive/v$pkgver.tar.gz")
md5sums=('37193261c48ec5d3e703f5a045e7427f')

build() {
	cd "$pkgname-$pkgver"
	make PREFIX=/usr BUILD=RELEASE
	make PREFIX=/usr BUILD=RELEASE xow.service
}

package() {
	cd "$pkgname-$pkgver"
	make PREFIX=/usr DESTDIR=$pkgdir/ SYSDDIR=/usr/lib/systemd/system install

    echo ""
    echo "To enable and start the service:"
    echo -e "\e[33msystemctl enable --now xow.service"
    echo ""
    echo -e "\e[33mA reboot might be required for xow to work correctly."
    echo ""
}