summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bae187c77fcc8593b149590d41e58db566d3a58 (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
pkgname=wlsunset-git
pkgver=0.1.0.r0.0569fb4
pkgrel=1
pkgdesc="Day/night gamma adjustments for Wayland"
arch=('x86_64')
url="https://git.sr.ht/~kennylevinsen/wlsunset"
license=('MIT')
depends=('wayland')
makedepends=('git' 'meson' 'ninja')
provides=('wlsunset')
conflicts=('wlsunset')
source=("$pkgname::git+$url")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname"

# Git, tags available
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"

# Git, no tags available
#	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$pkgname"
	arch-meson build
	ninja -C build
}

package() {
	cd "$pkgname"
	DESTDIR="$pkgdir" ninja -C build install
}