acpilight with +s wrapper
This commit is contained in:
parent
c1cf7e4760
commit
64a3316862
27
acpilight/PKGBUILD
Normal file
27
acpilight/PKGBUILD
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Maintainer: Filippo Veneri <filippo[dot]veneri[at]gmail[dot]com>
|
||||||
|
# Contributor: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
|
||||||
|
|
||||||
|
#_sha_=5fe6628
|
||||||
|
pkgname=acpilight
|
||||||
|
pkgver=1.2
|
||||||
|
pkgrel=2
|
||||||
|
pkgdesc="A backward-compatible xbacklight replacement based on ACPI"
|
||||||
|
arch=('any')
|
||||||
|
url="https://gitlab.com/wavexx/acpilight"
|
||||||
|
license=('GPL3')
|
||||||
|
depends=('python')
|
||||||
|
provides=('xorg-xbacklight')
|
||||||
|
conflicts=('xorg-xbacklight')
|
||||||
|
source=(xbacklight.c ${pkgname}-${pkgver}.tar.bz2::$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2)
|
||||||
|
sha512sums=('62619f38cb6ffe6f339463771d9d1fdac47a52bac7b4dbedbfa7dedbafc0bb90e0bc253267165b2e80c4bde0b84a5710674582b1a4f771d51fc8b76f68542556'
|
||||||
|
'e129de51911df83224ab99c0e7c9cda8058ee748e11473595add0e22367b21716fe62e14461300ca812c4be3485138b7f0f4823d848e3a0386680522621ec121')
|
||||||
|
|
||||||
|
|
||||||
|
package() {
|
||||||
|
#local realdir=$(ls -d ${srcdir}/${pkgname}-${_sha_}*)
|
||||||
|
install -d "${pkgdir}/usr/bin"
|
||||||
|
install -d "${pkgdir}/opt"
|
||||||
|
install -m755 "${srcdir}/${pkgname}-v${pkgver}/xbacklight" "${pkgdir}/opt/xbacklight"
|
||||||
|
gcc -O3 xbacklight.c -o "${pkgdir}/usr/bin/xbacklight"
|
||||||
|
chmod u+s "${pkgdir}/usr/bin/xbacklight"
|
||||||
|
}
|
17
acpilight/xbacklight.c
Normal file
17
acpilight/xbacklight.c
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main (int argc, char** argv)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
char** args;
|
||||||
|
args = malloc((argc+1)*sizeof(char*));
|
||||||
|
for(i = 0; i < argc; ++i) {
|
||||||
|
args[i] = argv[i];
|
||||||
|
}
|
||||||
|
args[argc] = NULL;
|
||||||
|
|
||||||
|
execv("/opt/xbacklight", args);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
2
rofi-pass/.gitignore
vendored
2
rofi-pass/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
*.pkg.tar.zst
|
|
||||||
*.tar.gz
|
|
Loading…
Reference in New Issue
Block a user