summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/drm_info-git/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/pcr/drm_info-git/PKGBUILD b/pcr/drm_info-git/PKGBUILD
new file mode 100644
index 000000000..f5334b6f4
--- /dev/null
+++ b/pcr/drm_info-git/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
+
+pkgname=drm_info-git
+_pkgname=drm_info
+pkgver=2.1.0.r10.gf90c320
+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")
+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
+}