void-packages/srcpkgs/umockdev/template

45 lines
1.2 KiB
Bash

# Template file for 'umockdev'
pkgname=umockdev
version=0.17.13
revision=1
build_style=meson
hostmakedepends="pkg-config vala"
makedepends="vala-devel eudev-libudev-devel libpcap-devel gobject-introspection"
checkdepends="eudev which gphoto2 libgudev-devel python3-gobject usbutils xz"
short_desc="Mock hardware devices for creating unit tests and bug reporting"
maintainer="oreo639 <oreo6391@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/martinpitt/umockdev"
distfiles="https://github.com/martinpitt/umockdev/releases/download/${version}/umockdev-${version}.tar.xz"
checksum=6c6ebf6e6209b6a49746e0d91a448d027b54271bab82ed70a132ecf294ca13cf
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" gobject-introspection qemu-user-static"
fi
umockdev-devel_package() {
depends="umockdev>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove /usr/share/gir-1.0/
vmove /usr/share/vala/vapi/
}
}
libumockdev_package() {
short_desc+=" - library"
pkg_install() {
vmove /usr/lib/*.so.*
}
}
libumockdev-devel_package() {
depends="libumockdev>=${version}_${revision}"
short_desc+=" - library development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove /usr/lib/*.so
}
}