summaryrefslogtreecommitdiff
path: root/pcr/drm_info-git
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-10-02 14:38:07 -0400
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-10-02 14:54:53 -0400
commit0af6965d04156477fe121cf363236a5c6506e0b3 (patch)
tree9cbfeb9326e3c606f3d57540099f4588c3980ef3 /pcr/drm_info-git
parent6701a044cdde214da79ff4eab2dba0a973cc6e67 (diff)
downloadabslibre-0af6965d04156477fe121cf363236a5c6506e0b3.tar.gz
abslibre-0af6965d04156477fe121cf363236a5c6506e0b3.tar.bz2
abslibre-0af6965d04156477fe121cf363236a5c6506e0b3.zip
pcr: add drm_info-git
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/drm_info-git')
-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
+}