void-packages/srcpkgs/ldm/template

22 lines
705 B
Bash

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