void-packages/srcpkgs/libdrm/template
2019-01-22 23:23:06 -02:00

30 lines
877 B
Bash

# Template file for 'libdrm'
pkgname=libdrm
version=2.4.97
revision=1
wrksrc="drm-libdrm-${version}"
build_style=meson
configure_args="-Dudev=true -Dvalgrind=false"
hostmakedepends="pkg-config"
makedepends="eudev-libudev-devel libpciaccess-devel"
short_desc="Userspace interface to kernel DRM services"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://dri.freedesktop.org/"
distfiles="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-${version}/drm-libdrm-${version}.tar.gz"
checksum=833dbc47ac79c9d05ea66aec5cde9a91c621ccd53550a81b92f0b243047e3b3e
post_install() {
sed -n 9,25p < libsync.h > LICENSE
vlicense LICENSE
}
libdrm-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}