# Maintainer (aur): emersion <contact emersion fr>
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>

# parabola changes and rationale:
#  - Added armv7h and i686 support
#  - Switched to stable release

pkgname=drm_info
pkgver=2.2.0
pkgrel=3
license=('MIT')
pkgdesc='Small utility to dump info about DRM devices'
makedepends=("meson" "git")
depends=("libdrm" "json-c")
conflicts=('drm_info-git')
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-git')
replaces=('drm_info-git')

build() {
	cd "${srcdir}/${pkgname}"

	meson --prefix=/usr . build
	ninja -C build
}

package() {
	cd "${srcdir}/${pkgname}"

	DESTDIR="$pkgdir/" ninja -C build install
}
