void-packages/srcpkgs/linux-driver-management/template

37 lines
1.2 KiB
Bash

# Template file for 'linux-driver-management'
pkgname=linux-driver-management
version=1.0.3
revision=2
patch_args="-Np1"
# Tests require unpackaged umockdev
# https://github.com/martinpitt/umockdev
configure_args="-Dwith-docs=false"
build_style=meson
hostmakedepends="pkg-config glib-devel"
makedepends="libusb-devel libglib-devel eudev-libudev-devel libgirepository-devel
xorg-server-devel libkmod-devel gobject-introspection"
checkdepends="check-devel"
short_desc="Distro agnostic Plug'n'Play system for Linux"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="LGPL-2.1"
homepage="https://github.com/solus-project/linux-driver-management"
distfiles="https://github.com/solus-project/${pkgname}/releases/download/v${version}/${pkgname}-${version}.tar.xz"
checksum=968ef61fbb7e26b89ef9456f03cf31c616bdc8fc69531fcfd9f90ae0f4ff147b
nocross="requires gobject-introspection"
if [ "$CROSS_BUILD" ]; then
# host needs glib-mkenums
hostmakedepends+=" glib-devel"
fi
linux-driver-management-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - Development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/gir-1.0
}
}