systemd: remove useless doc dir; cross build support (without gudev/python).
This commit is contained in:
parent
776089364f
commit
d3c85bccd8
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'systemd'
|
||||
pkgname=systemd
|
||||
version=197
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
configure_args="--libexecdir=/usr/lib
|
||||
--disable-selinux --disable-tcpwrap --with-rootprefix=/usr
|
||||
|
@ -32,7 +32,29 @@ conf_files="
|
|||
/etc/systemd/logind.conf
|
||||
/etc/udev/udev.conf"
|
||||
|
||||
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
||||
unset subpackages
|
||||
makedepends="automake gettext-devel pkg-config intltool
|
||||
gperf libxslt docbook-xsl libgcrypt-devel"
|
||||
crossmakedepends="acl-devel pam-devel dbus-devel libcap-devel
|
||||
libkmod-devel liblzma-devel cryptsetup-devel
|
||||
libblkid-devel libgcrypt-devel libglib-devel
|
||||
qrencode-devel"
|
||||
configure_args="${configure_args} --without-python --disable-gudev
|
||||
--enable-introspection=no
|
||||
ac_cv_func_malloc_0_nonnull=yes
|
||||
ac_cv_func_realloc_0_nonnull=yes
|
||||
PKG_CONFIG_SYSROOT_DIR=/usr/$XBPS_CROSS_TRIPLET
|
||||
PKG_CONFIG_LIBDIR=/usr/$XBPS_CROSS_TRIPLET/lib/pkgconfig"
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
}
|
||||
fi
|
||||
|
||||
post_install() {
|
||||
# Remove useless doc directory.
|
||||
rm -rf ${DESTDIR}/usr/share/doc
|
||||
|
||||
# Remove files provided in libudev{,-devel} and systemd-{devel,libs}.
|
||||
rm -rf ${DESTDIR}/usr/include/{libudev.h,systemd}
|
||||
rm -rf ${DESTDIR}/usr/share/pkgconfig
|
||||
|
|
Loading…
Reference in New Issue