my-pkgs/acpilight/PKGBUILD

28 lines
1.1 KiB
Bash

# 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"
}