40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'mdevd'
|
|
pkgname=mdevd
|
|
version=0.1.5.0
|
|
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
|
|
$(vopt_if static --enable-static-libc)"
|
|
makedepends="skalibs-devel"
|
|
short_desc="Small mdev-compatible kernel hotplug daemon similar to udevd"
|
|
maintainer="mobinmob <mobinmob@disroot.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=c012037c80c4596c5d4549aff5fd9e5cf84e8c01a1d1959b8c7c94baecebd307
|
|
|
|
build_options="static"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
makedepends+=" nsss-devel"
|
|
configure_args+=" --enable-nsss --with-include=${XBPS_CROSS_BASE}/usr/include/nsss"
|
|
;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
vdoc README
|
|
vcopy "doc/*" usr/share/doc/${pkgname}
|
|
}
|
|
|
|
mdevd-doc_package() {
|
|
short_desc+=" - documentation"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|