summaryrefslogtreecommitdiff
path: root/pcr/drm_info
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-05-14 03:28:59 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-05-14 03:29:37 +0200
commite3e34d22a9676fcb33ffde4548cead51056295cf (patch)
tree5e0e09533bb8af6872ad3e031c100247473917fb /pcr/drm_info
parentb5a003458afc75441be8dd02dc35f64520372ce0 (diff)
downloadabslibre-e3e34d22a9676fcb33ffde4548cead51056295cf.tar.gz
abslibre-e3e34d22a9676fcb33ffde4548cead51056295cf.tar.bz2
abslibre-e3e34d22a9676fcb33ffde4548cead51056295cf.zip
pcr: drm_info: update to the lastest stable release
The 2.2.0 seem stable enough already on many ARM devices. This also avoid using HEAD as git revision. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
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
+}