diff options
-rw-r--r-- | user/libdisplay-info/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/user/libdisplay-info/APKBUILD b/user/libdisplay-info/APKBUILD new file mode 100644 index 000000000..187bf9dee --- /dev/null +++ b/user/libdisplay-info/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +pkgname=libdisplay-info +pkgver=0.1.1 +pkgrel=0 +pkgdesc="Library for obtaining display information" +url="https://gitlab.freedesktop.org/emersion/libdisplay-info/" +arch="all" +options="!check" # tests fail due to utility formatting issues +license="MIT" +depends="hwdata" +checkdepends="edid-decode" +makedepends="meson ninja" +subpackages="$pkgname-dev" +source="https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/$pkgver/downloads/libdisplay-info-$pkgver.tar.xz" + +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="95c199211504af96816d92ec8e531bea993dd5d4a2935f1977f1e665b924b1628df25b81cd20da29543d008a8e6d757bdbceb09c74e031c0c213d60be9a10d7a libdisplay-info-0.1.1.tar.xz" |