new blfs: media-libs/libdisplay-info-0.3.0

This commit is contained in:
2026-01-08 13:20:05 -05:00
parent 21b9f88101
commit 605e203c33

View File

@@ -0,0 +1,36 @@
pkgname=libdisplay-info
pkgver=0.3.0
pkgdesc='EDID and DisplayID library'
homepage="https://gitlab.freedesktop.org/emersion/$pkgname"
arch=(x86_64)
license=(MIT)
depends=(glibc)
makedepends=(hwdata
meson
ninja
python
)
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://gitlab.freedesktop.org/emersion/${pkgname}/-/releases/${pkgver}/downloads/${sources[0]}")
md5sums=("f2a15697f6e8c66722b7760ceccbed60")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
local meson_args=(
--prefix=/usr
--buildtype=release
--wrap-mode=nodownload
)
meson setup build "${meson_args[@]}"
meson compile -C build
}
src_install() {
DESTDIR="${pkgdir}" meson install -C build
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
# vim:ft=sh syn=sh et sw=2: