diff options
author | Baris Demirdelen | 2019-12-22 14:31:01 +0100 |
---|---|---|
committer | Baris Demirdelen | 2019-12-22 14:35:51 +0100 |
commit | ee532fce0ddcc2051ee3af205f78bc200bafcf57 (patch) | |
tree | 44d7975fff6730897d91350328a053af64699807 | |
download | aur-ee532fce0ddcc2051ee3af205f78bc200bafcf57.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2884031e5601 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = xow-git + pkgdesc = Linux driver for the Xbox One wireless dongle + pkgver = 7 + pkgrel = 1 + url = https://github.com/medusalix/xow + arch = x86_64 + license = GPL2 + makedepends = git + depends = libusb + source = git+git+https://github.com/medusalix/xow + md5sums = SKIP + +pkgname = xow-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6518babfe798 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Baris Demirdelen <barisdemirdelen at gmail dot com> + +pkgname=xow-git +_pkgname=xow +pkgver=7 +pkgrel=1 +pkgdesc="Linux driver for the Xbox One wireless dongle" +arch=(x86_64) +url=https://github.com/medusalix/xow +license=('GPL2') +depends=(libusb) +makedepends=(git) +source=('git+https://github.com/medusalix/xow') +md5sums=('SKIP') + +pkgver() { + cd $srcdir/$_pkgname + git rev-list --count HEAD +} + +build() { + cd $srcdir/$_pkgname + make BUILD=RELEASE +} + +package() { + cd $srcdir/$_pkgname + + _install_path=$pkgdir/usr/bin + _service_path=$pkgdir/usr/lib/systemd/system/ + mkdir -p {$_install_path, $_service_path} + + install -Dm755 xow $_install_path/xov + install -Dm755 xow.service $_service_path/xov.service + + echo "If you want to enable and start the service please run:" + echo "systemctl enable --now xov.service" +} |