diff options
author | Drew DeVault | 2016-07-20 10:15:44 -0400 |
---|---|---|
committer | Drew DeVault | 2016-07-20 10:15:44 -0400 |
commit | b6119da12aa647ee79f151b9aaf9d5dbb7a6ad81 (patch) | |
tree | 17e095bd521da9459c85da02dc9328e9acb42c09 | |
download | aur-b6119da12aa647ee79f151b9aaf9d5dbb7a6ad81.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | 90-backlight.rules | 2 | ||||
-rw-r--r-- | PKGBUILD | 26 |
4 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4cf130998fb2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Wed Jul 20 14:15:36 UTC 2016 +pkgbase = brightnessctl + pkgdesc = Lightweight brightness control tool + pkgver = 0.1.1_p2 + pkgrel = 1 + url = https://github.com/Hummer12007/brightnessctl + arch = i686 + arch = x86_64 + license = MIT + source = brightnessctl-0.1.1_p2.tar.gz::https://github.com/Hummer12007/brightnessctl/archive/0.1.1_p2.tar.gz + source = 90-backlight.rules + sha256sums = 9edfdeb03ce38439236ef99e5c719c69424be408aa6f2640c76e9ab88e1e5da4 + sha256sums = 16ce09fbfcb7111cd62377160255f6d7b5559c6915719c05aa76d69591a632eb + +pkgname = brightnessctl + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0a2223f3641d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.tar.xz +src/ +pkg/ diff --git a/90-backlight.rules b/90-backlight.rules new file mode 100644 index 000000000000..ce9e11079dfb --- /dev/null +++ b/90-backlight.rules @@ -0,0 +1,2 @@ +ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness" +ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod a+w /sys/class/backlight/%k/brightness" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cba6806a98e6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +pkgname=brightnessctl +pkgver=0.1.1_p2 +pkgrel=1 +pkgdesc="Lightweight brightness control tool" +arch=('i686' 'x86_64') +url='https://github.com/Hummer12007/brightnessctl' +license=('MIT') +source=( + "$pkgname-$pkgver.tar.gz::https://github.com/Hummer12007/brightnessctl/archive/$pkgver.tar.gz" + 90-backlight.rules +) +sha256sums=('9edfdeb03ce38439236ef99e5c719c69424be408aa6f2640c76e9ab88e1e5da4' + '16ce09fbfcb7111cd62377160255f6d7b5559c6915719c05aa76d69591a632eb') + +build() { + cd $pkgname-$pkgver + + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir/usr" install +} + +# vim:set ts=2 sw=2 et: |