diff options
Diffstat (limited to 'unmaintained')
-rw-r--r-- | unmaintained/brightnessctl/APKBUILD | 24 | ||||
-rw-r--r-- | unmaintained/brightnessctl/brightnessctl.post-install | 10 |
2 files changed, 34 insertions, 0 deletions
diff --git a/unmaintained/brightnessctl/APKBUILD b/unmaintained/brightnessctl/APKBUILD new file mode 100644 index 0000000000..abb0262296 --- /dev/null +++ b/unmaintained/brightnessctl/APKBUILD @@ -0,0 +1,24 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=brightnessctl +pkgver=0.5.1 +pkgrel=0 +pkgdesc="Program to read and control device brightness" +options="!check" # No testsuite +url="https://github.com/Hummer12007/brightnessctl" +arch="all" +license="MIT" +makedepends="elogind-dev" +subpackages="$pkgname-doc" +install="$pkgname.post-install" +source="$pkgname-$pkgver.tar.gz::https://github.com/Hummer12007/brightnessctl/archive/$pkgver.tar.gz" + +build() { + make ENABLE_SYSTEMD=1 +} + +package() { + make install DESTDIR="$pkgdir" ENABLE_SYSTEMD=1 +} + +sha512sums="41ac86357b3b5a3d54a043140a6bdb1fb68d5080a16e86692059ad58f4b9134a8532432a3f664c70c665a4ad73ea8a94cc9b88fa84abc28f0356b8b397aaebc7 brightnessctl-0.5.1.tar.gz" diff --git a/unmaintained/brightnessctl/brightnessctl.post-install b/unmaintained/brightnessctl/brightnessctl.post-install new file mode 100644 index 0000000000..fc16251e6b --- /dev/null +++ b/unmaintained/brightnessctl/brightnessctl.post-install @@ -0,0 +1,10 @@ +#!/bin/sh +# +# If we have udev running then reload the rules and add the +# proper subsystems so people can use it +if [ -S /run/udev/control ]; then + udevadm control --reload-rules + udevadm trigger -s leds -s backlight -c add +fi + +exit 0 |