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=('0ce7d6cd2fb28959d39bd6011e4925fbea2852d36996d13fcdbc30bce0d03a05cdfef00b61bd5b05f66e2e9f167b9e68e0008091d4db1122e88ceab94a8b1085'
'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"
}