From 0ae8ad9f938d23e8b8ddab8bee3867f9e2d74577 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 15 Apr 2024 21:48:51 +0800 Subject: [PATCH] libdrm 2.4.120-1 --- PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..491bd75 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Future Linux Team + +pkgname=libdrm +pkgver=2.4.120 +pkgrel=1 +pkgdesc="Userspace interface to kernel DRM services" +arch=('x86_64') +url="https://dri.freedesktop.org/" +license=('custom') +depends=('glibc' 'libpciaccess') +makedepends=('meson') +source=(https://dri.freedesktop.org/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(3bf55363f76c7250946441ab51d3a6cc0ae518055c0ff017324ab76cdefb327a) + +build() { + cd ${pkgname}-${pkgver} + + meson setup build \ + --prefix=/usr \ + --buildtype=release \ + -Dlibdir=/usr/lib64 \ + -Dudev=true \ + -Dvalgrind=disabled + + meson compile -C build +} + +package() { + cd ${pkgname}-${pkgver} + + meson install -C build --destdir ${pkgdir} +}