summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTolga Cakir2015-06-26 00:25:44 +0200
committerTolga Cakir2015-06-26 00:25:44 +0200
commit93834b1744d9093b21fb0e1d49555b98be17e118 (patch)
tree6e5cc4125edc8ccb2f7d02ed64daf9cc037baa9a
downloadaur-93834b1744d9093b21fb0e1d49555b98be17e118.tar.gz
initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD32
-rw-r--r--sidewinderd.install7
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6a1b5b2be16
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = sidewinderd
+ pkgdesc = Sidewinder daemon - Linux support for Microsoft Sidewinder X4 / X6 keyboards
+ pkgver = 0.2.1
+ pkgrel = 1
+ url = http://cevel.net/projects/sidewinderd/
+ install = sidewinderd.install
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ depends = libconfig
+ depends = tinyxml2
+ source = sidewinderd::https://github.com/tolga9009/sidewinderd/archive/0.2.1.tar.gz
+ md5sums = 43e9b51710090aef939cb1095aa58c4a
+
+pkgname = sidewinderd
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a26d86a060f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Tolga Cakir <tolga@cevel.net>
+
+pkgname=sidewinderd
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="Sidewinder daemon - Linux support for Microsoft Sidewinder X4 / X6 keyboards"
+arch=('x86_64')
+url="http://cevel.net/projects/sidewinderd/"
+depends=('libconfig' 'tinyxml2')
+makedepends=('cmake')
+license=('MIT')
+install=${pkgname}.install
+source=("${pkgname}::https://github.com/tolga9009/sidewinderd/archive/${pkgver}.tar.gz")
+md5sums=('bb24ea3e7bf9289d21af92468347b4ee')
+
+prepare() {
+ mkdir -p build
+ cd ${pkgname}-${pkgver}
+}
+
+build() {
+ cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ ../${pkgname}-${pkgver}
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/sidewinderd.install b/sidewinderd.install
new file mode 100644
index 00000000000..10456d2d8bb
--- /dev/null
+++ b/sidewinderd.install
@@ -0,0 +1,7 @@
+post_install() {
+ echo " > Please change the user in /etc/sidewinderd.conf."
+ echo " > Don't forget to enable sidewinderd:"
+ echo " > 'systemctl enable sidewinderd.service'"
+ echo " > Start sidewinderd now:"
+ echo " > 'systemctl start sidewinderd.service'"
+}