summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Coenen2019-09-02 12:40:30 +0200
committerManuel Coenen2019-09-02 12:40:30 +0200
commit0b88544ccc320c571a4e73f9f6caaae024482919 (patch)
tree9af21099c7145b1529dab2ce0b089bc488d0d4d2
downloadaur-0b88544ccc320c571a4e73f9f6caaae024482919.tar.gz
Initial version of duetcontrolserver-bin package
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD30
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..914264a9af8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = duetcontrolserver-bin
+ pkgdesc = Control server application for Duet 3 series
+ pkgver = 1.0.3.1
+ pkgrel = 1
+ url = https://github.com/chrishamm/DuetSoftwareFramework
+ arch = armv7h
+ license = GPL3
+ depends = duetruntime>=1.0.3.1
+ depends = linux>=4.8
+ provides = duetcontrolserver
+ conflicts = duetcontrolserver
+ options = !strip
+ options = staticlibs
+ backup = opt/dsf/conf/config.json
+ source = https://pkg.duet3d.com/dists/stable/armv7/binary-armhf/duetcontrolserver_1.0.3.1.deb
+ sha256sums = 20026c79b6cf0fc32051f3a92f991f173f3d7380a7df43c05032f8dea9c5b100
+
+pkgname = duetcontrolserver-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f671470b8e4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Manuel Coenen <manuel.coenen@gmail.com>
+pkgname=duetcontrolserver-bin
+pkgver=1.0.3.1
+pkgrel=1
+pkgdesc="Control server application for Duet 3 series"
+arch=('armv7h')
+url="https://github.com/chrishamm/DuetSoftwareFramework"
+license=('GPL3')
+provides=('duetcontrolserver')
+conflicts=('duetcontrolserver')
+depends=("duetruntime>=${pkgver}" 'linux>=4.8')
+options=(!strip staticlibs)
+backup=('opt/dsf/conf/config.json')
+source=("https://pkg.duet3d.com/dists/stable/armv7/binary-armhf/duetcontrolserver_${pkgver}.deb")
+sha256sums=('20026c79b6cf0fc32051f3a92f991f173f3d7380a7df43c05032f8dea9c5b100')
+
+prepare() {
+ tar -xf data.tar.xz
+}
+
+package() {
+
+ # DuetControlServer, DuetWebServer, CodeConsole, CodeLogger
+ install -dm 755 "${pkgdir}"/{opt/dsf/bin,opt/dsf/conf,usr/bin,usr/lib/systemd/system}
+ install "${srcdir}/opt/dsf/bin/"* "${pkgdir}/opt/dsf/bin"
+ install "${srcdir}/usr/lib/systemd/system/"* "${pkgdir}/usr/lib/systemd/system"
+ install "${srcdir}/opt/dsf/conf/"* "${pkgdir}/opt/dsf/conf"
+
+ ln -s "/opt/dsf/bin/DuetControlServer" "${pkgdir}/usr/bin/"
+}