ldm: try to fix musl part.2

This commit is contained in:
Ypnose 2015-05-10 13:06:06 +02:00
parent bb7165ef6a
commit 8509d8501b

View file

@ -1,7 +1,7 @@
# Template file for 'ldm'
pkgname=ldm
version=0.6.1
revision=2
revision=3
build_style=gnu-makefile
hostmakedepends="perl pkg-config"
makedepends="libmount-devel libudev-devel libglib-devel cryptsetup-devel"
@ -18,6 +18,12 @@ pre_build() {
sed -i 's|install: all install-main install-systemd|install: all install-main|g' Makefile
}
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) export CFLAGS+=" -D__uid_t=uid_t -D__gid_t=gid_t" ;;
esac
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/ldm
}