blob: 6448ceefb5a81add09fa484207e59f533e0b0968 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Hong Shick Pak <hong@hspak.com>
pkgname=brightnessztl
pkgver=0.5
pkgrel=1
pkgdesc="A CLI to control device backlight written in Zig"
arch=('x86_64')
url="https://github.com/hspak/brightnessztl"
license=('MIT')
depends=('systemd-libs')
makedepends=('zig')
provides=("$pkgname")
conflicts=("$pkgname")
source=("https://github.com/hspak/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('965c9abdb7ee63160a9b95fc31ead078a648e6abee0880a7618574727a81a4e6')
build() {
cd "${pkgname}-${pkgver}"
zig build -Doptimize=ReleaseSafe
}
check() {
cd "${pkgname}-${pkgver}"
zig-out/bin/brightnessztl debug &>/dev/null
}
package() {
cd "${pkgname}-${pkgver}"
install -D -m 0755 "zig-out/bin/brightnessztl" "${pkgdir}/usr/bin/brightnessztl"
install -D -m 0644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: ft=sh syn=sh et
|