blob: f5334b6f4febde698c7174c740fb093a4006cab4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
}
|