void-packages/srcpkgs/ldm/template

24 lines
733 B
Bash

# Template file for 'ldm'
pkgname=ldm
version=0.6.1
revision=2
build_style=gnu-makefile
hostmakedepends="perl pkg-config"
makedepends="libmount-devel libudev-devel libglib-devel cryptsetup-devel"
short_desc="A lightweight device mounter"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="https://github.com/LemonBoy/ldm"
distfiles="https://github.com/LemonBoy/${pkgname}/archive/v${version}.tar.gz"
checksum="e182792145b588b4f8ba94622af7d690d181bf29f942d40b25dcfd609e2d37f8"
replaces="ldm-git>=0"
pre_build() {
# Don't include systemd service as default
sed -i 's|install: all install-main install-systemd|install: all install-main|g' Makefile
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/ldm
}