void-packages/srcpkgs/ldm/template

24 lines
719 B
Bash

# Template file for 'ldm'
pkgname=ldm
version=0.7
revision=1
hostmakedepends="perl pkg-config"
makedepends="libmount-devel eudev-libudev-devel libglib-devel"
short_desc="A lightweight device mounter"
maintainer='Juan RP <xtraeme@voidlinux.org>'
license="MIT"
homepage="https://github.com/LemonBoy/ldm"
distfiles="https://github.com/LemonBoy/${pkgname}/archive/v${version}.tar.gz"
checksum=fb464bffec5b7d0680009b43a95881e8c02ec07e84d6f7fb05206d666dc44bdb
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} install
vsv ldm
vlicense LICENSE
}