Skip to content

Instantly share code, notes, and snippets.

@NicoHood
Last active Jul 27, 2016
Embed
What would you like to do?
hyperion aur
# Maintainer: NicoHood <aur {at} nicohood {dot} de>
pkgname=hyperion-git
pkgver=r1112.d3713a8
pkgrel=1
pkgdesc="An opensource 'AmbiLight' implementation"
arch=('any')
url="https://github.com/hyperion-project/hyperion.ng"
license=('MIT')
depends=('libusb' 'python' 'icu')
optdepends=('xorg-server: X11 grabbing')
makedepends=('git' 'cmake' 'qt5-base' 'qt5-serialport' 'avahi' 'protobuf')
provides=('hyperion')
conflicts=('hyperion')
backup=('etc/hyperion.config.json')
source=("${pkgname}::git+https://github.com/hyperion-project/hyperion")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
git submodule init
git submodule update
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Release \
-DUSE_SHARED_AVAHI_LIBS=ON ..
make -j $(nproc)
}
package() {
cd "${srcdir}/${pkgname}/build"
make install
install -Dm 644 "${srcdir}/${pkgname%-git}/config/hyperion.config.json.example" "${pkgdir}/etc/hyperion/hyperion.config.json"
install -Dm 644 "${srcdir}/${pkgname%-git}/bin/service/hyperion.systemd.sh" "${pkgdir}/usr/lib/systemd/system/hyperiond.service"
rm -rf "${pkgdir}/usr/share/hyperion/service"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment