summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD49
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..54f15ee19d9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = hyperion.ng-git
+ pkgdesc = The reworked version (next generation) of Hyperion, ambient light software - PRE ALPHA
+ pkgver = r1380.33c91f7
+ pkgrel = 1
+ url = https://github.com/hyperion-project/hyperion.ng
+ arch = i686
+ arch = x86_64
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ arch = aarch64
+ license = MIT
+ makedepends = cmake
+ depends = libusb
+ depends = protobuf
+ depends = python
+ depends = qt5-serialport
+ depends = avahi
+ optdepends = xorg-server: X11 grabbing
+ provides = hyperion
+ conflicts = hyperion
+ conflicts = hyperion-git
+ backup = etc/hyperion/hyperion.config.json
+ source = git+https://github.com/hyperion-project/hyperion.ng
+ sha512sums = SKIP
+
+pkgname = hyperion.ng-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..345add2b7c9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Jake <ja.ke@posteo.de>
+
+pkgname=hyperion.ng-git
+pkgver=r1380.33c91f7
+pkgrel=1
+pkgdesc="The reworked version (next generation) of Hyperion, ambient light software - PRE ALPHA"
+arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
+url="https://github.com/hyperion-project/hyperion.ng"
+license=('MIT')
+depends=('libusb' 'protobuf' 'python' 'qt5-serialport' 'avahi')
+optdepends=('xorg-server: X11 grabbing')
+makedepends=('cmake')
+provides=("hyperion")
+conflicts=('hyperion' 'hyperion-git')
+backup=('etc/hyperion/hyperion.config.json')
+source=("git+https://github.com/hyperion-project/${pkgname%-git}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${pkgname%-git}"
+
+ mkdir build && cd build
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DPROTOBUF_PROTOC_EXECUTABLE=/usr/bin/protoc \
+ -DUSE_SYSTEM_PROTO_LIBS=ON \
+ ..
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname%-git}"
+
+ install -d ${pkgdir}/usr/bin
+ install -D build/bin/* ${pkgdir}/usr/bin
+
+ install -d ${pkgdir}/usr/share/hyperion/webconfig
+ cp -r assets/webconfig ${pkgdir}/usr/share/hyperion/
+
+ install -Dm 644 config/hyperion.config.json.default "${pkgdir}/etc/hyperion/hyperion.config.json"
+
+ install -Dm 644 bin/service/hyperion.systemd.sh "${pkgdir}/usr/lib/systemd/system/hyperiond.service"
+
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
+}