# Template file for 'ldm'
pkgname=ldm
version=0.8
revision=1
build_style="gnu-makefile"
hostmakedepends="perl pkg-config"
makedepends="libmount-devel eudev-libudev-devel libglib-devel"
short_desc="Lightweight device mounter"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/LemonBoy/ldm"
distfiles="https://github.com/LemonBoy/${pkgname}/archive/v${version}.tar.gz"
checksum=e471453e6ae9fa91d6150fe13c01587dd8e15a3f64665d0556ad7e8398dc46ef

do_build() {
	# Don't include systemd service as default
	sed -i 's|install: all install-main install-systemd|install: all install-main|g' Makefile
	make CC=$CC ${makejobs}
}
do_install() {
	make PREFIX=/usr DESTDIR=${DESTDIR} SBINDIR=/usr/bin install
	vsv ldm
	vlicense LICENSE
}
