diff options
author | Mark Wagie | 2021-03-10 11:09:22 -0700 |
---|---|---|
committer | Mark Wagie | 2021-03-10 11:09:22 -0700 |
commit | 8d371e9c328303d84f5e84106c9e7e5b78cf64b8 (patch) | |
tree | ec11ad7f3a5bc2ac0dd45c015cf57f9b4a92b4be | |
parent | 767c6a74ee86948b27fa83967631a0926acf2c6a (diff) | |
download | aur-8d371e9c328303d84f5e84106c9e7e5b78cf64b8.tar.gz |
use tags, add aarch64
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 59 |
3 files changed, 42 insertions, 39 deletions
@@ -1,13 +1,15 @@ pkgbase = clightd-git - pkgdesc = Bus interface to change screen brightness and capture frames from webcam. Devel version. - pkgver = r372.adb439b + pkgdesc = Bus interface to change screen brightness and capture frames from webcam. + pkgver = 5.2.r2.gadb439b pkgrel = 1 - url = https://github.com/FedeDP/clightd - arch = any + url = https://github.com/FedeDP/Clightd + 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,9 @@ pkgbase = clightd-git depends = libusb depends = libdrm depends = wayland - optdepends = clight-git: user service to automagically change screen backlight matching ambient brightness. provides = clightd conflicts = clightd - source = git://github.com/FedeDP/clightd.git + source = clightd::git+https://github.com/FedeDP/Clightd.git sha256sums = SKIP pkgname = clightd-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4dab8d6386e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO @@ -1,45 +1,40 @@ -# 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-git -_gitname=clightd -pkgver=r372.adb439b +pkgver=5.2.r2.gadb439b pkgrel=1 -pkgdesc="Bus interface to change screen brightness and capture frames from webcam. Devel version." -arch=('any') -url="https://github.com/FedeDP/${_gitname}" +pkgdesc="Bus interface to change screen brightness and capture frames from webcam." +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-git: user service to automagically change screen backlight matching ambient brightness.') -provides=('clightd') -conflicts=('clightd') -source=("git://github.com/FedeDP/${_gitname}.git") -sha256sums=("SKIP") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git+https://github.com/FedeDP/Clightd.git") +sha256sums=('SKIP') pkgver() { - cd "$_gitname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -} - -prepare() { - cd "${srcdir}/${_gitname}" - mkdir -p build + cd "$srcdir/${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "${srcdir}/${_gitname}/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 "${pkgname%-git}" \ + -G "Unix Makefiles" \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBEXECDIR=lib/"${pkgname%-git}" \ + -DENABLE_DDC=1 \ + -DENABLE_GAMMA=1 \ + -DENABLE_DPMS=1 \ + -DENABLE_SCREEN=1 \ + -DENABLE_YOCTOLIGHT=1 \ + -Wno-dev + make -C build } package() { - cd "${srcdir}/${_gitname}/build" - make DESTDIR="$pkgdir" install + make -C build DESTDIR="$pkgdir" install } |