From 0c9714a2cdf2baad4f657e48dd52209141941ab2 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sun, 14 Aug 2022 15:10:27 +0200 Subject: [PATCH] init --- PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ openrgb.conf | 1 + openrgb.service | 12 ++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 PKGBUILD create mode 100644 openrgb.conf create mode 100644 openrgb.service diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f341186 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Myrddin Wyllt + +pkgname=openrgb-git +pkgver=r2571.859f15a5 +pkgrel=1 +pkgdesc="Configuration utility for RGB lights supporting motherboards, RAM, & peripherals" +arch=('x86_64') +url="https://gitlab.com/CalcProgrammer1/OpenRGB" +license=('GPL2') +depends=('qt5-base' 'libusb' 'hidapi' 'mbedtls') +makedepends=('git') +optdepends=('i2c-tools: Motherboard & RAM access') +provides=('openrgb') +conflicts=('openrgb') +source=("git+https://gitlab.com/CalcProgrammer1/OpenRGB.git" + openrgb.conf + openrgb.service) +sha256sums=('SKIP' + 'b5a53d747422f8b594e3e9615e238457d696732efce94050cdd72182a8645ef2' + '272dc43a77d0e48d29f32da753c7e05fd635883b173c21047f4eefa8bfc77938') + +pkgver() { + cd OpenRGB + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/OpenRGB" + qmake OpenRGB.pro + make +} + +package() { + install -Dm644 -t "$pkgdir"/usr/lib/modules-load.d "."/openrgb.conf + install -Dm644 -t "$pkgdir"/usr/lib/systemd/system "."/openrgb.service + cd OpenRGB + make INSTALL_ROOT="$pkgdir" install +} diff --git a/openrgb.conf b/openrgb.conf new file mode 100644 index 0000000..0cdf71f --- /dev/null +++ b/openrgb.conf @@ -0,0 +1 @@ +i2c-dev diff --git a/openrgb.service b/openrgb.service new file mode 100644 index 0000000..faa51cc --- /dev/null +++ b/openrgb.service @@ -0,0 +1,12 @@ +[Unit] +Description=Run openrgb server +After=network.target lm_sensors.service + +[Service] +RemainAfterExit=yes +ExecStart=/usr/bin/openrgb --server +Restart=always + +[Install] +WantedBy=multi-user.target +