mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
chroot-git: build manually with make
As recommended by Git project itself. Also reduce the time for running configure script.
This commit is contained in:
parent
c563f0a9bb
commit
fb619bc073
1 changed files with 27 additions and 9 deletions
|
@ -4,10 +4,6 @@ version=2.31.1
|
||||||
revision=1
|
revision=1
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
wrksrc="git-${version}"
|
wrksrc="git-${version}"
|
||||||
build_style=gnu-configure
|
|
||||||
configure_args="--without-curl --without-openssl
|
|
||||||
--without-python --without-expat --without-tcltk
|
|
||||||
ac_cv_lib_curl_curl_global_init=no ac_cv_lib_expat_XML_ParserCreate=no"
|
|
||||||
make_check_target=test
|
make_check_target=test
|
||||||
makedepends="zlib-devel"
|
makedepends="zlib-devel"
|
||||||
short_desc="GIT Tree History Storage Tool -- for xbps-src use"
|
short_desc="GIT Tree History Storage Tool -- for xbps-src use"
|
||||||
|
@ -23,17 +19,39 @@ else
|
||||||
configure_args+=" --with-zlib=${XBPS_MASTERDIR}/usr"
|
configure_args+=" --with-zlib=${XBPS_MASTERDIR}/usr"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_configure() {
|
do_configure() {
|
||||||
cat <<-EOF >config.mak
|
cat <<-EOF >config.mak
|
||||||
|
prefix = /usr
|
||||||
|
CC = $CC
|
||||||
|
AR = $AR
|
||||||
|
TAR = $(command -v bsdtar || command -v tar)
|
||||||
|
CFLAGS = $CFLAGS
|
||||||
|
LDFLAGS = $LDFLAGS
|
||||||
CC_LD_DYNPATH=-L
|
CC_LD_DYNPATH=-L
|
||||||
NO_INSTALL_HARDLINKS=Yes
|
NO_INSTALL_HARDLINKS=Yes
|
||||||
NO_GETTEXT=Yes
|
NO_GETTEXT=Yes
|
||||||
|
NO_OPENSSL = Yes
|
||||||
|
USE_LIBPCRE :=
|
||||||
|
USE_LIBPCRE2 :=
|
||||||
|
NO_CURL = Yes
|
||||||
|
NO_EXPAT = Yes
|
||||||
|
NO_PERL = Yes
|
||||||
|
NO_PYTHON = Yes
|
||||||
|
NO_TCLTK = Yes
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
||||||
|
cat <<-EOF >>config.mak
|
||||||
|
ICONV_OMITS_BOM = Yes
|
||||||
|
NO_REGEX = Yes
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make ${makejobs} git
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
# remove unneeded stuff.
|
vbin git chroot-git
|
||||||
make DESTDIR=${wrksrc}/build-tmp install
|
|
||||||
|
|
||||||
vbin ${wrksrc}/build-tmp/usr/bin/git chroot-git
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue