void-packages/srcpkgs/subversion-kwallet-auth/template

63 lines
2.3 KiB
Bash

# Template file for 'subversion-kwallet-auth'
#
# THIS PKG MUST BE SYNCHRONIZED WITH "srcpkgs/subversion".
#
pkgname=subversion-kwallet-auth
version=1.14.2
revision=1
build_style=gnu-configure
configure_args="--disable-javahl --disable-static --config-cache
--with-kwallet=${XBPS_CROSS_BASE}/usr/include:${XBPS_CROSS_BASE}/usr/lib
--with-gnome-keyring --with-editor=vi --disable-mod-activation
--with-utf8proc=internal --with-apr=${XBPS_CROSS_BASE}/usr/bin/apr-1-config"
hostmakedepends="pkg-config gettext perl"
makedepends="apache-devel gdbm-devel serf-devel expat-devel dbus-devel
libsecret-devel liblz4-devel sqlite-devel kwallet-devel
kdelibs4support-devel file-devel"
short_desc="KDE kwallet authentication support in subversion"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="Apache-2.0, BSD-3-Clause"
homepage="http://subversion.apache.org/"
changelog="https://subversion.apache.org/docs/release-notes/${version%.*}.html"
distfiles="https://archive.apache.org/dist/subversion/subversion-${version}.tar.bz2"
checksum=c9130e8d0b75728a66f0e7038fc77052e671830d785b5616aad53b4810d3cc28
lib32disabled=yes
pre_configure() {
# Based on native build values
if [ "$CROSS_BUILD" ]; then
cp -a ${XBPS_CROSS_BASE}/usr/bin/apxs ${wrksrc}
cp -a ${XBPS_CROSS_BASE}/usr/share/apache/webroot/build/config_vars.mk ${wrksrc}
# Use the modified apxs
configure_args+=" --with-apxs=${wrksrc}/apxs"
# Use the ${wrksrc}/config_vars.mk
vsed -i apxs \
-e "/^my [$]destdir/s%=.*%= \"${XBPS_CROSS_BASE}\";%" \
-e "s;(.*config_vars[.]mk;(\"${wrksrc}/config_vars.mk;g" \
-e "/[$]apu_config =/s%=.*%= \"${XBPS_WRAPPERDIR}/apu-1-config\";%"
vsed -i config_vars.mk \
-e "s; \(/usr/include\); $XBPS_CROSS_BASE\1;g" \
-e "s;-I\(/usr/include\);-I$XBPS_CROSS_BASE\1;g" \
-e "/^includedir =/s;=.*include;= $XBPS_CROSS_BASE/usr/include;"
else
configure_args+=" --with-apxs"
fi
if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
# This test will fail when run as the root user,
# because flock() will ignore file permissions.
vsed -i subversion/tests/libsvn_fs/locks-test.c -e '/SVN_TEST_OPTS_PASS(obtain_write_lock_failure,/,+3d'
fi
}
do_install() {
export LD_LIBRARY_PATH=${DESTDIR}/usr/lib:$LD_LIBRARY_PATH
make DESTDIR=${DESTDIR} INSTALLDIRS=vendor install
find ${DESTDIR} '!' -type d '!' -name 'libsvn_auth_kwallet*' -delete
vlicense LICENSE
}