summaryrefslogtreecommitdiff
path: root/pcr/drm_info
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/drm_info')
-rw-r--r--pcr/drm_info/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/pcr/drm_info/PKGBUILD b/pcr/drm_info/PKGBUILD
new file mode 100644
index 000000000..fb7da719c
--- /dev/null
+++ b/pcr/drm_info/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer (AUR): emersion <contact emersion fr>
+# Maintainer: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+
+# parabola changes and rationale:
+# - Added armv7h and i686 support
+# - Switched to stable release
+
+pkgname=drm_info
+pkgver=2.2.0.r0.g3907336
+pkgrel=1
+license=('MIT')
+pkgdesc='Small utility to dump info about DRM devices'
+makedepends=("meson" "git")
+depends=("libdrm" "json-c")
+arch=('armv7h' 'i686' 'x86_64')
+url='https://github.com/ascent12/drm_info'
+source=("${pkgname}::git+https://github.com/ascent12/drm_info.git#tag=v${pkgver}")
+sha1sums=('SKIP')
+provides=('drm_info')
+conflicts=('drm_info')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ meson --prefix=/usr . build
+ ninja -C build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ DESTDIR="$pkgdir/" ninja -C build install
+}