summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjohnnuke2018-11-08 17:57:28 +0100
committerjohnnuke2018-11-08 17:57:28 +0100
commit8148ad96c45dec4bc81ff2dc35c868cf1252c826 (patch)
tree2b4e823db245479d2108fc0821328d82918d8faf
downloadaur-8148ad96c45dec4bc81ff2dc35c868cf1252c826.tar.gz
init
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD46
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1838d70a885
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = open-stage-control-node-git
+ pkgdesc = A libre desktop OSC bi-directional control surface application
+ pkgver = 0.39.6.r2.g40f89293
+ pkgrel = 1
+ url = http://osc.ammd.net/
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = npm
+ optdepends = python-pyrtmidi: send and receive midi messages
+ provides = open-stage-control
+ conflicts = open-stage-control
+ source = git+https://github.com/jean-emmanuel/open-stage-control
+ md5sums = SKIP
+
+pkgname = open-stage-control-node-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e7dbed2f7aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: nucularjohn <nucularjohn@gmail.com>
+pkgname=open-stage-control-node-git
+pkgver=0.39.6.r2.g40f89293
+pkgrel=1
+pkgdesc="A libre desktop OSC bi-directional control surface application"
+arch=('any')
+url="http://osc.ammd.net/"
+license=('GPL3')
+depends=('npm')
+makedepends=('git')
+optdepends=('python-pyrtmidi: send and receive midi messages')
+provides=("${pkgname%-node-git}")
+conflicts=("${pkgname%-node-git}")
+source=('git+https://github.com/jean-emmanuel/open-stage-control')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-node-git}"
+ printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-node-git}"
+ cat > "$pkgname" << EOF
+#!/bin/bash
+node /usr/share/$pkgname/index.js "\$@"
+EOF
+}
+
+build() {
+ cd "$srcdir/${pkgname%-node-git}"
+ npm install
+ npm run build
+}
+
+package() {
+ cd "$srcdir/${pkgname%-node-git}"
+
+ npm run package-node
+
+ install -d "${pkgdir}/usr/share/"
+ rsync -a dist/${pkgname%-git}/ "${pkgdir}/usr/share/$pkgname"
+
+ install -Dm755 $pkgname "${pkgdir}/usr/bin/${pkgname%-git}"
+
+}