summaryrefslogblamecommitdiff
path: root/user/acpilight/APKBUILD
blob: f81e93e373eee86826b4661795da7175c8e5db77 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                         
          

                                            
                                         
             
                  




                                                        
                                                                                       
                            
                                    














                                                            

                                                                                                                                                                   
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=acpilight
pkgver=1.1
pkgrel=0
pkgdesc="Control backlight brightness level"
url="https://gitlab.com/wavexx/acpilight"
arch="noarch"
license="GPL-3.0+"
depends="eudev python3"
makedepends=""
install="$pkgname.post-install"
subpackages="$pkgname-doc"
options="!check"  # Just a udev rule and a python script
source="https://gitlab.com/wavexx/acpilight/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz
	rules-warning.patch"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	cd "$builddir"
}

package() {
	cd "$builddir"
	install -Dm755 xbacklight \
		"$pkgdir/usr/bin/xbacklight"
	install -Dm644 90-backlight.rules \
		"$pkgdir/lib/udev/rules.d/90-$pkgname.rules"
	install -Dm644 xbacklight.1 \
		"$pkgdir/usr/share/man/man1/xbacklight.1"
}

sha512sums="af10a538fec83315aaec3837647622ecea41cb936d38667e4e70689a2b8a968a786fc9ad2be136d5799fa091f07614886decc9044e71aec1e64765e90ddae439  acpilight-v1.1.tar.gz
1b04e8c92bd39f2230b351fc15c63a303f71768ebce58fff5ed3d99fcbc38b417a61214227ab8612e6212d8db775dad2b5f9bad58fddf57452e2ff2cfa4fd077  rules-warning.patch"