2015-04-17 09:56:53 +00:00
|
|
|
# Template file for 'ldm'
|
|
|
|
pkgname=ldm
|
2015-05-10 10:44:34 +00:00
|
|
|
version=0.6.1
|
2015-05-10 11:14:29 +00:00
|
|
|
revision=4
|
2014-07-09 17:38:19 +00:00
|
|
|
build_style=gnu-makefile
|
2015-04-17 09:59:59 +00:00
|
|
|
hostmakedepends="perl pkg-config"
|
2015-04-17 10:02:14 +00:00
|
|
|
makedepends="libmount-devel libudev-devel libglib-devel cryptsetup-devel"
|
2014-07-09 17:38:19 +00:00
|
|
|
short_desc="A lightweight device mounter"
|
|
|
|
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://github.com/LemonBoy/ldm"
|
2015-04-17 09:56:53 +00:00
|
|
|
distfiles="https://github.com/LemonBoy/${pkgname}/archive/v${version}.tar.gz"
|
2015-05-10 10:44:34 +00:00
|
|
|
checksum="e182792145b588b4f8ba94622af7d690d181bf29f942d40b25dcfd609e2d37f8"
|
2015-04-17 09:56:53 +00:00
|
|
|
replaces="ldm-git>=0"
|
2014-07-09 17:38:19 +00:00
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
# Don't include systemd service as default
|
|
|
|
sed -i 's|install: all install-main install-systemd|install: all install-main|g' Makefile
|
2015-05-10 11:06:06 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl) export CFLAGS+=" -D__uid_t=uid_t -D__gid_t=gid_t" ;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2014-07-09 17:38:19 +00:00
|
|
|
post_install() {
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/ldm
|
|
|
|
}
|