# Contributor: Eivind Uggedal # Maintainer: Eivind Uggedal pkgname=light pkgver=1.2.2 pkgrel=2 pkgdesc="Control backlights and other hardware lights" url="http://haikarainen.github.io/light/" arch="all" license="GPL-3.0-or-later" options="!check" # no test suite makedepends="autoconf automake" install="$pkgname-udev.post-install" subpackages="$pkgname-udev::noarch $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/haikarainen/light/archive/v$pkgver.tar.gz" export CFLAGS="$CFLAGS -fcommon" prepare() { default_prepare autoreconf -fi } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --with-udev=/lib/udev/rules.d make } package() { make DESTDIR="$pkgdir" install } udev() { pkgdesc="$pkgdesc (udev rules)" install_if="$pkgname=$pkgver-r$pkgrel eudev" amove lib/udev/rules.d } sha512sums=" 5815394fb1545d1e06234c261d475e1836e4c43e47e7707b8628891d20b70db04f1661b78ca1d236d549c734430b606498fa46de060c854791b13cf49de07b59 light-1.2.2.tar.gz "