summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSimon Ser2019-05-18 09:50:41 +0300
committerSimon Ser2019-05-18 09:50:41 +0300
commitd8f798c6556ca1cc672c120ac8cadea337b468d5 (patch)
tree51dc3e5971090e2814f1fa5c6c437819c8514c04 /PKGBUILD
downloadaur-d8f798c6556ca1cc672c120ac8cadea337b468d5.tar.gz
First commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..34148fbb002a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: emersion <contact emersion fr>
+pkgname=drm_info-git
+_pkgname=drm_info
+pkgver=1.1.0.r45.g6bb0405046ed
+pkgrel=1
+license=('MIT')
+pkgdesc='Grab images from a Wayland compositor'
+makedepends=("meson" "git")
+depends=("libdrm" "json-c")
+arch=("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
+}