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
|
@ -4,10 +4,6 @@ version=2.31.1
|
|||
revision=1
|
||||
bootstrap=yes
|
||||
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
|
||||
makedepends="zlib-devel"
|
||||
short_desc="GIT Tree History Storage Tool -- for xbps-src use"
|
||||
|
@ -23,17 +19,39 @@ else
|
|||
configure_args+=" --with-zlib=${XBPS_MASTERDIR}/usr"
|
||||
fi
|
||||
|
||||
post_configure() {
|
||||
do_configure() {
|
||||
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
|
||||
NO_INSTALL_HARDLINKS=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
|
||||
|
||||
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() {
|
||||
# remove unneeded stuff.
|
||||
make DESTDIR=${wrksrc}/build-tmp install
|
||||
|
||||
vbin ${wrksrc}/build-tmp/usr/bin/git chroot-git
|
||||
vbin git chroot-git
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue