[arch-commits] Commit in hyperion/repos (3 files)

Antonio Rojas arojas at archlinux.org
Fri Dec 15 11:01:57 UTC 2017


    Date: Friday, December 15, 2017 @ 11:01:55
  Author: arojas
Revision: 274508

archrelease: copy trunk to community-staging-x86_64

Added:
  hyperion/repos/community-staging-x86_64/
  hyperion/repos/community-staging-x86_64/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch
    (from rev 274507, hyperion/trunk/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch)
  hyperion/repos/community-staging-x86_64/PKGBUILD
    (from rev 274507, hyperion/trunk/PKGBUILD)

------------------------------------------------------+
 0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch |   26 ++++++++
 PKGBUILD                                             |   55 +++++++++++++++++
 2 files changed, 81 insertions(+)

Copied: hyperion/repos/community-staging-x86_64/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch (from rev 274507, hyperion/trunk/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch)
===================================================================
--- community-staging-x86_64/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch	                        (rev 0)
+++ community-staging-x86_64/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch	2017-12-15 11:01:55 UTC (rev 274508)
@@ -0,0 +1,26 @@
+From 88ae95d522bfdda4c29a1116367aad8c7d948779 Mon Sep 17 00:00:00 2001
+From: Jelle van der Waa <jelle at vdwaa.nl>
+Date: Sat, 21 Oct 2017 12:46:49 +0200
+Subject: [PATCH] Fix no decleration of `assert` with GCC 7.2
+
+Add a missing include for cassert to fix the -fpermissive compiler
+error.
+---
+ include/utils/Image.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/utils/Image.h b/include/utils/Image.h
+index e8c82e4..dad57a2 100644
+--- a/include/utils/Image.h
++++ b/include/utils/Image.h
+@@ -1,6 +1,7 @@
+ #pragma once
+ 
+ // STL includes
++#include <cassert>
+ #include <vector>
+ #include <cstdint>
+ #include <cstring>
+-- 
+2.14.2
+

Copied: hyperion/repos/community-staging-x86_64/PKGBUILD (from rev 274507, hyperion/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-12-15 11:01:55 UTC (rev 274508)
@@ -0,0 +1,55 @@
+# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
+# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
+# Contributor: Christopher Reimer <mail+aur[at]c-reimer[dot]de>
+
+pkgname=hyperion
+pkgver=1.03.2
+pkgrel=13
+pkgdesc="An opensource 'AmbiLight' implementation"
+arch=('x86_64')
+url="https://github.com/hyperion-project/hyperion"
+license=('MIT')
+depends=('libusb' 'protobuf' 'python' 'qt5-base')
+optdepends=('xorg-server: X11 grabbing')
+makedepends=('cmake')
+backup=('etc/hyperion/hyperion.config.json')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tvdzwan/${pkgname}/archive/${pkgver}.tar.gz" "0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch")
+sha512sums=('7406f5bdf323d2799fb375557603fefd1f077cda287b5aa9ff10251b22d8dd07590458515b0e01ef97fba80885aab1aa72bd8b5d26873ad8ebcc1ba53d6776ec'
+            '11c51f6085d78bb75a7d73372262eedc2dab84b9d37ee1850f6b8d8c9cfe85d72a69b7d755e169028c6f7150f09201ded7d32a4edf15130ca2a12a188fe5945c')
+
+prepare() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    patch -Np1 -i "${srcdir}/0001-Fix-no-decleration-of-assert-with-GCC-7.2.patch"
+}
+
+build() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    mkdir -p build
+    cd build
+    cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DENABLE_QT5=ON \
+        -DPLATFORM=x86 \
+        -DPROTOBUF_PROTOC_EXECUTABLE=/usr/bin/protoc \
+        -DUSE_SYSTEM_PROTO_LIBS=ON \
+        ..
+    make
+}
+
+package() {
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    cd build
+    make install
+    cd ..
+
+    install -Dm 644 config/hyperion.config.json.example \
+    "${pkgdir}/etc/hyperion/hyperion.config.json"
+
+    install -Dm 644 bin/service/hyperion.systemd.sh \
+    "${pkgdir}/usr/lib/systemd/system/hyperiond.service"
+
+    rm -rf "${pkgdir}/usr/share/hyperion/service"
+
+    install -Dm 644 LICENSE \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list