summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD51
1 files changed, 22 insertions, 29 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d1bc18e0a15..f336801eadc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,33 @@
-# Maintainer: Federico Di Pierro <nierro92@gmail.com>
-
+# Maintainer: Mark Wagie <mark dot wagie at tutantota dot com>
+# Contributor: Federico Di Pierro <nierro92@gmail.com>
pkgname=clightd
-_gitname=Clightd
pkgver=5.2
-pkgrel=2
+pkgrel=3
pkgdesc="Bus interface to change screen brightness and capture frames from webcam."
-arch=('any')
-url="https://github.com/FedeDP/${_gitname}"
+arch=('i686' 'x86_64' 'aarch64')
+url="https://github.com/FedeDP/Clightd"
license=('GPL')
-depends=('systemd>=221' 'linux-api-headers' 'libx11' 'libxrandr' 'libxext' 'polkit' 'ddcutil>=0.9.5' 'libmodule>=5.0.0' 'libjpeg-turbo' 'libusb' 'libdrm' 'wayland')
+depends=('systemd-libs>=237' 'linux-api-headers' 'libx11' 'libxrandr' 'libxext' 'polkit'
+ 'ddcutil>=0.9.5' 'libmodule>=5.0.0' 'libjpeg-turbo' 'libusb' 'libdrm' 'wayland')
makedepends=('git' 'cmake')
-optdepends=('clight: user service to automagically change screen backlight matching ambient brightness.')
-provides=('clightd')
-conflicts=('clightd-git')
-source=("${_gitname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=("6636d58eae7aff4780534258940d1f680637fc1b983320e15aa2fd5be8648853")
-
-prepare() {
- cd "${srcdir}/${_gitname}-${pkgver}"
- mkdir -p build
-}
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=('6636d58eae7aff4780534258940d1f680637fc1b983320e15aa2fd5be8648853')
build() {
- cd "${srcdir}/${_gitname}-${pkgver}/build"
- cmake \
- -G "Unix Makefiles" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib \
- -DCMAKE_INSTALL_LIBEXECDIR=lib/"$_gitname" \
- -DCMAKE_BUILD_TYPE="Release" \
- -DENABLE_DDC=1 -DENABLE_GAMMA=1 -DENABLE_DPMS=1 -DENABLE_SCREEN=1 -DENABLE_YOCTOLIGHT=1 \
- ..
- make
+ cmake -B build -S Clightd-$pkgver \
+ -G "Unix Makefiles" \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBEXECDIR=lib/"$pkgname" \
+ -DENABLE_DDC=1 \
+ -DENABLE_GAMMA=1 \
+ -DENABLE_DPMS=1 \
+ -DENABLE_SCREEN=1 \
+ -DENABLE_YOCTOLIGHT=1 \
+ -Wno-dev
+ make -C build
}
package() {
- cd "${srcdir}/${_gitname}-${pkgver}/build"
- make DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
}