summaryrefslogtreecommitdiff
path: root/user/libdisplay-info/APKBUILD
blob: c2599774e0e381d2a51d6a0a340d1c4e0098f6be (plain) (blame)
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
36
37
38
39
40
41
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=libdisplay-info
pkgver=0.2.0
pkgrel=0
pkgdesc="Library for obtaining display information"
url="https://gitlab.freedesktop.org/emersion/libdisplay-info/"
arch="all"
license="MIT"
depends="hwdata"
checkdepends="edid-decode"
makedepends="meson"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/$pkgver/downloads/libdisplay-info-$pkgver.tar.xz"

prepare() {
	default_prepare
	rm -r subprojects  # attempts to checkout/build edid-decode itself
}

build() {
	meson setup \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nofallback \
		. output
	meson compile -C output
}

check() {
	meson test -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}

sha512sums="6e910b832860d920a4be298a2b6925f701654bd7cdd8b3457e64663c25caa20a74b81b91f71878b9e7f5f70c5c067235f0c99293650231920c67d1241a61e1fb  libdisplay-info-0.2.0.tar.xz"