#Packager: Dimitris Tzemos <dijemos@gmail.com>

pkgname=acpilight
pkgver=1.2
pkgrel=1dj
source=(https://gitlab.com/wavexx/acpilight/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2)
docs=("ChangeLog" "LICENSE" "README.md")
url=https://gitlab.com/wavexx/acpilight

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"acpilight (desktop independent full featured power manager)"
"acpilight is an lightweight desktop independent full featured power"
"manager, originally created for Slackware for use with alternative"
"desktop environments and window managers, like Fluxbox, Blackbox,"
"FVWM, WindowMaker, Openbox, Lumina and others."
""
"Homepage: https://gitlab.com/wavexx/acpilight"
)


build() {
	cd $startdir/src/$pkgname-v$pkgver

    install -Dm755 xbacklight "$PKG"/usr/bin/xbacklight
    install -Dm644 xbacklight.1 "$PKG"/usr/share/man/man1/xbacklight.1
    install -Dm644 90-backlight.rules "$PKG"/etc/udev/rules.d/90-backlight.rules
    install -Dm644 README.rst NEWS.rst -t "$PKG"/usr/share/doc/acpilight
	
} 

