blob: e51fa3414f27d627b3b79c346bc000afdfdfc696 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: OpenJowel <OpenJowel AT proton DOT me>
#
# This package installs Huenicorn on the system
pkgname="huenicorn"
arch=('i686' 'x86_64')
pkgver=1.0.10
pkgrel=4
pkgdesc="Free bias lighting driver for Philips Hue™ devices"
url='https://gitlab.com/openjowelsofts/huenicorn'
license=('GNU GPLv3')
source=(
"git+https://gitlab.com/openjowelsofts/huenicorn.git#tag=v${pkgver}"
"huenicorn.desktop"
"huenicorn.sh"
)
sha512sums=(
'SKIP'
'SKIP'
'SKIP'
)
depends=('opencv' 'curl' 'mbedtls')
optdepends=('libx11' 'libxext' 'libxrandr' 'wayland' 'glib2' 'pipewire')
makedepends=('git' 'cmake' 'nlohmann-json' 'glm' 'asio' 'crow')
build(){
cd ${pkgname}
mkdir -p build && cd build
cmake ..
make -j4
}
package() {
optdir=${pkgdir}/opt/${pkgname}
builddir=${srcdir}/${pkgname}/build
install -Dm755 "${builddir}/${pkgname}" "${optdir}/${pkgname}"
install -Dm755 "huenicorn.sh" "${pkgdir}/usr/bin/huenicorn"
install -Dm755 "${srcdir}/${pkgname}/assets/logo.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/huenicorn.svg"
install -Dm755 "huenicorn.desktop" "${pkgdir}/usr/share/applications/huenicorn.desktop"
install -d "${builddir}/webroot" "${optdir}/webroot"
cp -r "${builddir}/webroot" "${optdir}/"
}
|