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

41 lines
1.3 KiB
Bash

# Template file for 'linux-driver-management'
pkgname=linux-driver-management
version=1.0.3
revision=3
# Tests require unpackaged umockdev
# https://github.com/martinpitt/umockdev
build_style=meson
build_helper=gir
configure_args="-Dwith-docs=false"
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="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
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
if [ "$CROSS_BUILD" ]; then
# host needs glib-mkenums
hostmakedepends+=" glib-devel"
fi
post_install() {
mkdir -p ${DESTDIR}/usr/share/examples/sddm/scripts
mv ${DESTDIR}/usr/share/sddm/scripts/Xsetup ${DESTDIR}/usr/share/examples/sddm/scripts/Xsetup
}
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
}
}