diff --git a/media-libs/libdisplay-info-0.3.0.PKGBUILD b/media-libs/libdisplay-info-0.3.0.PKGBUILD new file mode 100644 index 0000000..07dae68 --- /dev/null +++ b/media-libs/libdisplay-info-0.3.0.PKGBUILD @@ -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: