void-packages/srcpkgs/mdevd/template
2019-11-02 11:13:01 +01:00

35 lines
1 KiB
Bash

# Template file for 'mdevd'
pkgname=mdevd
version=0.1.1.1
revision=1
build_style=configure
configure_args="--includedir=/usr/include --bindir=/usr/bin --libdir=/usr/lib
--with-sysdeps=${XBPS_CROSS_BASE}/usr/lib/skalibs/sysdeps
--with-lib=${XBPS_CROSS_BASE}/usr/lib"
makedepends="skalibs-devel"
short_desc="Small mdev-compatible kernel hotplug daemon similar to udevd"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://skarnet.org/software/mdevd/"
changelog="https://skarnet.org/software/mdevd/upgrade.html"
distfiles="https://skarnet.org/software/mdevd/mdevd-${version}.tar.gz"
checksum=ad93048afbd8394d709da35934a62ef5826143b6baa13d37115a3b265f9038b7
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" nsss-devel" configure_args+=" --enable-nsss" ;;
esac
post_install() {
vlicense COPYING
vdoc README
vcopy "doc/*" usr/share/doc/${pkgname}
}
mdevd-doc_package() {
archs=noarch
short_desc+=" - documentation"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/doc
}
}