Browse Source

Merge pull request #4632 from its-pointless/starshipfix

fix starship build
emacs-27
Leonid Plyushch 5 years ago
committed by GitHub
parent
commit
826203a90c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/starship/build.sh

8
packages/starship/build.sh

@ -4,10 +4,14 @@ TERMUX_PKG_LICENSE="ISC"
TERMUX_PKG_VERSION=0.27.0
TERMUX_PKG_SRCURL=https://github.com/starship/starship/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=af1c4dd9b211a6271709c2cd2bbc81745d63907981474ff59084864dfd2bcf3a
TERMUX_PKG_DEPENDS="openssl, zlib"
TERMUX_PKG_DEPENDS="zlib"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--no-default-features"
termux_step_pre_configure() {
CFLAGS+=" $CPPFLAGS"
mkdir -p $TERMUX_PKG_TMPDIR/include
cp $TERMUX_PREFIX/include/zlib.h $TERMUX_PKG_TMPDIR/include
cp $TERMUX_PREFIX/include/zconf.h $TERMUX_PKG_TMPDIR/include
# cp -r $TERMUX_PREFIX/include/openssl $TERMUX_PKG_TMPDIR/include
CFLAGS+=" -I$TERMUX_PKG_TMPDIR/include"
}

Loading…
Cancel
Save