ldm: try to fix musl part.2
This commit is contained in:
parent
bb7165ef6a
commit
8509d8501b
1 changed files with 7 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ldm'
|
# Template file for 'ldm'
|
||||||
pkgname=ldm
|
pkgname=ldm
|
||||||
version=0.6.1
|
version=0.6.1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="perl pkg-config"
|
hostmakedepends="perl pkg-config"
|
||||||
makedepends="libmount-devel libudev-devel libglib-devel cryptsetup-devel"
|
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
|
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() {
|
post_install() {
|
||||||
vinstall LICENSE 644 usr/share/licenses/ldm
|
vinstall LICENSE 644 usr/share/licenses/ldm
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue