diff --git a/srcpkgs/libudev/template b/srcpkgs/libudev/template index 3c015cf1d13..28677f9708e 100644 --- a/srcpkgs/libudev/template +++ b/srcpkgs/libudev/template @@ -24,6 +24,15 @@ license="LGPL-2.1, GPL-2, MIT" distfiles="http://www.freedesktop.org/software/systemd/systemd-${version}.tar.xz" checksum=e6857ea21ae24d7056e7b0f4c2aaaba73b8bf57025b8949c0a8af0c1bc9774b5 +if [ -n "$XBPS_CROSS_TRIPLET" ]; then + makedepends="automake gettext-devel ${makedepends}" + crossmakedepends="dbus-devel libcap-devel liblzma-devel libgcrypt-devel" + configure_args="${configure_args} PKG_CONFIG_LIBDIR=/usr/$XBPS_CROSS_TRIPLET/lib/pkgconfig" + pre_configure() { + autoreconf -fi + } +fi + post_install() { # We are only interested in shlibs, headers and pc files. rm -rf ${DESTDIR}/{etc,var}