Date: Tuesday, April 4, 2023 @ 08:58:14
Author: alerque
Revision: 1434500
archrelease: copy trunk to community-x86_64
Added:
libdisplay-info/repos/community-x86_64/
libdisplay-info/repos/community-x86_64/PKGBUILD
(from rev 1434499, libdisplay-info/trunk/PKGBUILD)
libdisplay-info/repos/community-x86_64/keys/
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: libdisplay-info/repos/community-x86_64/PKGBUILD (from rev 1434499,
libdisplay-info/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2023-04-04 08:58:14 UTC (rev 1434500)
@@ -0,0 +1,38 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Simon Ser <[email protected]>
+
+# Enable checks in next release when edid-decode is not required for tests:
+# https://gitlab.freedesktop.org/emersion/libdisplay-info/-/issues/35
+BUILDENV+=(!check)
+
+pkgname=libdisplay-info
+pkgver=0.1.1
+pkgrel=2
+pkgdesc='EDID and DisplayID library'
+url="https://gitlab.freedesktop.org/emersion/$pkgname"
+arch=(x86_64)
+license=(MIT)
+depends=(glibc)
+makedepends=(hwdata
+ meson
+ ninja
+ python)
+_archive="$pkgname-$pkgver"
+source=("$url/-/releases/$pkgver/downloads/$_archive.tar.xz"{,.sig})
+sha256sums=('0d8731588e9f82a9cac96324a3d7c82e2ba5b1b5e006143fefe692c74069fb60'
+ 'SKIP')
+validpgpkeys=('34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48')
+
+build() {
+ arch-meson "$_archive" build
+ ninja -C build
+}
+
+check() {
+ meson test -C build --no-rebeuild --print-errorlogs
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C build install
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/"
"$_archive/LICENSE"
+}