blob: 235e82d924bbfb1c71159f199a0534f227c58cc4 (
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
34
35
|
# Maintainer: Michael Herzberg <{firstname}@{firstinitial}{lastname}.de>
pkgname=wlr-brightness-git
pkgver=r5.b498003
pkgrel=1
pkgdesc='Adjust the brightness of wlroots-based compositors such as sway.'
arch=('x86_64')
license=('MIT')
url='https://github.com/mherzberg/wlr-brightness'
depends=('glib2' 'wayland' 'wlroots')
makedepends=('git')
source=("$pkgname"::"git+https://github.com/mherzberg/${pkgname%-git}.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
git submodule update --init --recursive
}
build() {
cd "$pkgname"
make
}
package() {
cd "$pkgname"
make INSTALL_PATH="$pkgdir/usr" install
install -Dm644 res/wlr-brightness.service "$pkgdir/usr/lib/systemd/user/wlr-brightness.service"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|