void-packages/srcpkgs/libdrm/template

30 lines
814 B
Bash

# Template file for 'libdrm'
pkgname=libdrm
version=2.4.93
revision=1
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://dri.freedesktop.org/libdrm/${pkgname}-${version}.tar.bz2"
checksum=6e84d1dc9548a76f20b59a85cf80a0b230cd8196084f5243469d9e65354fcd3c
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"
}
}