summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2021-03-10 11:21:46 -0700
committerMark Wagie2021-03-10 11:21:46 -0700
commitf9898d5142f470f4ca908466f57ef1fc14f4e1c0 (patch)
treef6a339e73efea218521ce04a417c92dcc16151de
parent0a2d9b53b31704f71e0f229254b5299a2bcba950 (diff)
downloadaur-f9898d5142f470f4ca908466f57ef1fc14f4e1c0.tar.gz
add aarch64
-rw-r--r--.SRCINFO13
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD51
3 files changed, 35 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a3ad198bf09..be4bc7da0e7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,15 @@
pkgbase = clightd
pkgdesc = Bus interface to change screen brightness and capture frames from webcam.
pkgver = 5.2
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/FedeDP/Clightd
- arch = any
+ arch = i686
+ arch = x86_64
+ arch = aarch64
license = GPL
makedepends = git
makedepends = cmake
- depends = systemd>=221
+ depends = systemd-libs>=237
depends = linux-api-headers
depends = libx11
depends = libxrandr
@@ -19,10 +21,7 @@ pkgbase = clightd
depends = libusb
depends = libdrm
depends = wayland
- optdepends = clight: user service to automagically change screen backlight matching ambient brightness.
- provides = clightd
- conflicts = clightd-git
- source = Clightd-5.2.tar.gz::https://github.com/FedeDP/Clightd/archive/5.2.tar.gz
+ source = clightd-5.2.tar.gz::https://github.com/FedeDP/Clightd/archive/5.2.tar.gz
sha256sums = 6636d58eae7aff4780534258940d1f680637fc1b983320e15aa2fd5be8648853
pkgname = clightd
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4dab8d6386e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# Ignore everything
+*
+
+# But not these files...
+!.gitignore
+!PKGBUILD
+!.SRCINFO
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
}