void-packages/srcpkgs/libwacom/template

37 lines
1.1 KiB
Bash

# Template file for 'libwacom'
pkgname=libwacom
version=2.9.0
revision=1
build_style=meson
configure_args="-Ddocumentation=disabled"
hostmakedepends="pkg-config"
makedepends="libgudev-devel libxml2-devel libevdev-devel"
checkdepends="python3-pytest python3-libevdev python3-pyudev"
short_desc="Library to identify wacom tablets"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/linuxwacom/libwacom"
changelog="https://raw.githubusercontent.com/linuxwacom/libwacom/master/NEWS"
distfiles="https://github.com/linuxwacom/libwacom/releases/download/libwacom-${version}/libwacom-${version}.tar.xz"
checksum=6f678156797becc4f1537a19aadcc48ed7a54e1ff3cbf591d1233f8a2d82e242
if [ "${XBPS_CHECK_PKGS}" ]; then
configure_args+=" -Dtests=enabled"
else
configure_args+=" -Dtests=disabled"
fi
post_install() {
vlicense COPYING
}
libwacom-devel_package() {
depends="libgudev-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}