summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Hamester2016-04-13 01:21:25 +0200
committerDennis Hamester2016-04-13 01:21:25 +0200
commit6fe53307642c9c9c6f39eeea8d2890e91a31d31c (patch)
treeb67019a3822c9b4f1ce6704383484c9772f240a3
downloadaur-6fe53307642c9c9c6f39eeea8d2890e91a31d31c.tar.gz
scd 0.1.0
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD37
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..775a6fa0d5b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = scd-git
+ pkgdesc = Free and open source driver for the Steam Controller
+ pkgver = 0.1.0.r0.g0e55e10
+ pkgrel = 1
+ url = https://gitlab.com/dennis-hamester/scd
+ arch = i686
+ arch = x86_64
+ license = custom:ISC
+ makedepends = cmake
+ makedepends = scrawpp
+ depends = scraw
+ provides = scd
+ source = git+https://gitlab.com/dennis-hamester/scd.git
+ sha256sums = SKIP
+
+pkgname = scd-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fead8019818
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Dennis Hamester <dennis.hamester@startmail.com>
+
+_pkgname=scd
+pkgname=$_pkgname-git
+pkgver=0.1.0.r0.g0e55e10
+pkgrel=1
+pkgdesc="Free and open source driver for the Steam Controller"
+arch=('i686' 'x86_64')
+url="https://gitlab.com/dennis-hamester/scd"
+license=('custom:ISC')
+makedepends=('cmake' 'scrawpp')
+depends=('scraw')
+provides=('scd')
+source=("git+https://gitlab.com/dennis-hamester/scd.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g'
+}
+
+build() {
+ cd $_pkgname
+ mkdir build
+ cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ ..
+ make
+}
+
+package() {
+ cd $_pkgname/build
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 ../tinytoml/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE_tinytoml
+}