add stubs to prevent on-device building packages with dangerous operations in build.sh
%ci:no-build
This commit is contained in:
parent
e303212ae5
commit
c81d4c8698
|
@ -8,6 +8,14 @@ TERMUX_PKG_REVISION=7
|
|||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
TERMUX_PKG_DEPENDS="libc++, libexpat, libpng, libzopfli, zlib"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
# FIXME: We would like to enable checksums when downloading
|
||||
# tar files, but they change each time as the tar metadata
|
||||
|
|
|
@ -73,6 +73,12 @@ TERMUX_PKG_RM_AFTER_INSTALL="share/apache2/manual etc/apache2/original share/man
|
|||
TERMUX_PKG_EXTRA_MAKE_ARGS="-s"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# remove old files
|
||||
rm -rf "$TERMUX_PREFIX"/{libexec,share,etc}/apache2
|
||||
rm -rf "$TERMUX_PREFIX"/lib/cgi-bin
|
||||
|
|
|
@ -43,6 +43,14 @@ lib/dpkg/
|
|||
lib/libapt-inst.so
|
||||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
printf "# The main termux repository:\ndeb https://dl.bintray.com/termux/termux-packages-24 stable main\n" > $TERMUX_PREFIX/etc/apt/sources.list
|
||||
cp $TERMUX_PKG_BUILDER_DIR/trusted.gpg $TERMUX_PREFIX/etc/apt/
|
||||
|
|
|
@ -11,6 +11,14 @@ TERMUX_PKG_BUILD_DEPENDS="python, python2"
|
|||
TERMUX_PKG_BREAKS="libboost-python (<= 1.65.1-2), boost-dev"
|
||||
TERMUX_PKG_REPLACES="libboost-python (<= 1.65.1-2), boost-dev"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
CXXFLAGS+=" -std=c++14"
|
||||
|
||||
|
|
|
@ -11,6 +11,12 @@ TERMUX_PKG_BUILD_IN_SRC=yes
|
|||
TERMUX_PKG_CONFLICTS="coreutils (<< 8.25-4)"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
CFLAGS+=" -llog" # Android system liblog.so for syslog
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,12 @@ TERMUX_PKG_SHA256=e5eb0eaaef9cae8c822887bd998e33c2c3b94ebadd37b4f6aba018c0194a2a
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ncursesw --enable-widec --with-pkg-config"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Put a temporary link for libtinfo.so
|
||||
ln -s -f $TERMUX_PREFIX/lib/libncursesw.so $TERMUX_PREFIX/lib/libtinfo.so
|
||||
}
|
||||
|
|
|
@ -10,6 +10,12 @@ TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|||
TERMUX_PKG_CONFLICTS="ecj4.6"
|
||||
|
||||
termux_step_extract_package() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
mkdir $TERMUX_PKG_SRCDIR
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,12 @@ TERMUX_PKG_RM_AFTER_INSTALL="share/icons share/emacs/${TERMUX_PKG_VERSION}/etc/i
|
|||
TERMUX_PKG_RM_AFTER_INSTALL+=" bin/ctags share/man/man1/ctags.1 share/man/man1/ctags.1.gz"
|
||||
|
||||
termux_step_post_extract_package() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# XXX: We have to start with new host build each time
|
||||
# to avoid build error when cross compiling.
|
||||
rm -Rf $TERMUX_PKG_HOSTBUILD_DIR
|
||||
|
|
|
@ -17,6 +17,12 @@ TERMUX_PKG_RM_AFTER_INSTALL="lib/*ng-test*"
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-async"
|
||||
|
||||
termux_step_post_extract_package() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,14 @@ TERMUX_PKG_SRCURL=https://github.com/junegunn/fzf/archive/${TERMUX_PKG_VERSION}.
|
|||
# find does not support, when invoking find:
|
||||
TERMUX_PKG_DEPENDS="bash, findutils"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_golang
|
||||
|
||||
|
|
|
@ -11,6 +11,12 @@ TERMUX_PKG_REPLACES="gawk-dev"
|
|||
TERMUX_PKG_RM_AFTER_INSTALL="bin/gawk-* bin/igawk share/man/man1/igawk.1"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Remove old symlink to force a fresh timestamp:
|
||||
rm -f $TERMUX_PREFIX/bin/awk
|
||||
|
||||
|
|
|
@ -7,6 +7,14 @@ TERMUX_PKG_SHA256=91b56c40b93eee9bda27ec63e95a6316d848e3ee047b5880ed71e5e8e60f61
|
|||
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gcal/gcal-${TERMUX_PKG_VERSION}.tar.xz
|
||||
TERMUX_PKG_DEPENDS="ncurses"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
# XXX: share/info/dir is currently included in emacs.
|
||||
# We should probably make texinfo regenerate that file
|
||||
|
|
|
@ -41,6 +41,12 @@ share/man/man1/git-shell.1
|
|||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Setup perl so that the build process can execute it:
|
||||
rm -f $TERMUX_PREFIX/bin/perl
|
||||
ln -s $(which perl) $TERMUX_PREFIX/bin/perl
|
||||
|
|
|
@ -10,6 +10,14 @@ TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.
|
|||
TERMUX_PKG_DEPENDS="clang"
|
||||
TERMUX_PKG_NO_STATICSPLIT=yes
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
termux_setup_golang
|
||||
|
||||
|
|
|
@ -16,6 +16,12 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# The installation does not overwrite symlinks such as libjsoncpp.so.1,
|
||||
# so if rebuilding these are not detected as modified. Fix that:
|
||||
rm -f $TERMUX_PREFIX/lib/libjsoncpp.so*
|
||||
|
|
|
@ -32,6 +32,12 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|||
"
|
||||
|
||||
termux_step_post_extract_package() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
mv llvm-${TERMUX_PKG_VERSION[1]}.src llvm
|
||||
mv tools-${TERMUX_PKG_VERSION[2]} rdmd
|
||||
mv dub-${TERMUX_PKG_VERSION[3]} dub
|
||||
|
|
|
@ -12,6 +12,12 @@ TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"
|
|||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
|
||||
termux_step_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# bzip2 does not use configure. But place man pages at correct path:
|
||||
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" $TERMUX_PKG_SRCDIR/Makefile
|
||||
}
|
||||
|
|
|
@ -12,6 +12,12 @@ TERMUX_PKG_BUILD_DEPENDS="libpopt"
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DPERL_EXECUTABLE=$(which perl)"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Remove old files to ensure new timestamps on symlinks:
|
||||
rm -Rf $TERMUX_PREFIX/lib/librsync.*
|
||||
}
|
||||
|
|
|
@ -10,6 +10,12 @@ TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.
|
|||
TERMUX_PKG_BUILD_IN_SRC="yes"
|
||||
|
||||
termux_step_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Force fresh install:
|
||||
rm -f $TERMUX_PREFIX/include/talloc.h
|
||||
|
||||
|
|
|
@ -13,6 +13,14 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|||
--disable-minidebuginfo
|
||||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_post_massage() {
|
||||
# Hack to fix problem with building arm c++ code
|
||||
# which should not use this libunwind:
|
||||
|
|
|
@ -10,6 +10,12 @@ TERMUX_PKG_BREAKS="libvpx-dev"
|
|||
TERMUX_PKG_REPLACES="libvpx-dev"
|
||||
|
||||
termux_step_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Force fresh install of header files:
|
||||
rm -Rf $TERMUX_PREFIX/include/vpx
|
||||
|
||||
|
|
|
@ -67,6 +67,12 @@ termux_step_host_build() {
|
|||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
CPPFLAGS+=" -Dushort=u_short"
|
||||
|
||||
if [ $TERMUX_ARCH_BITS = 32 ]; then
|
||||
|
|
|
@ -20,6 +20,12 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|||
TERMUX_PKG_CONFFILES="$TERMUX_PREFIX/etc/mpd.conf"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
CXXFLAGS+=" -DTERMUX -UANDROID"
|
||||
LDFLAGS+=" -llog -lOpenSLES"
|
||||
rm -f $TERMUX_PREFIX/etc/mpd.conf
|
||||
|
|
|
@ -44,6 +44,12 @@ share/man/man7
|
|||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-pkg-config-libdir=$PKG_CONFIG_LIBDIR"
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,12 @@ etc/nginx/mime.types etc/nginx/nginx.conf etc/nginx/scgi_params etc/nginx/uwsgi_
|
|||
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
CPPFLAGS="$CPPFLAGS -DIOV_MAX=1024"
|
||||
LDFLAGS="$LDFLAGS -landroid-glob"
|
||||
|
||||
|
|
|
@ -11,6 +11,12 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_STATIC_LIBS=OFF"
|
|||
# for fast building packages that depend on openjpeg with cmake
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Force symlinks to be overwritten:
|
||||
rm -Rf $TERMUX_PREFIX/lib/libopenjp2.so*
|
||||
}
|
||||
|
|
|
@ -44,6 +44,12 @@ TERMUX_PKG_RM_AFTER_INSTALL="bin/slogin share/man/man1/slogin.1"
|
|||
TERMUX_PKG_CONFFILES="etc/ssh/ssh_config etc/ssh/sshd_config"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
autoreconf
|
||||
|
||||
## Configure script require this variable to set
|
||||
|
|
|
@ -14,6 +14,12 @@ TERMUX_PKG_BREAKS="openssl-tool (<< 1.1.1b-1), openssl-dev"
|
|||
TERMUX_PKG_REPLACES="openssl-tool (<< 1.1.1b-1), openssl-dev"
|
||||
|
||||
termux_step_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
CFLAGS+=" -DNO_SYSLOG"
|
||||
if [ $TERMUX_ARCH = arm ]; then
|
||||
CFLAGS+=" -fno-integrated-as"
|
||||
|
|
|
@ -9,6 +9,14 @@ TERMUX_PKG_DEPENDS="python"
|
|||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
cp pastebinit $TERMUX_PREFIX/bin/
|
||||
xsltproc -''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl pastebinit.xml
|
||||
|
|
|
@ -13,6 +13,12 @@ TERMUX_MAKE_PROCESSES=1
|
|||
TERMUX_PKG_RM_AFTER_INSTALL="bin/perl${TERMUX_PKG_VERSION}"
|
||||
|
||||
termux_step_post_extract_package() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# This port uses perl-cross: http://arsv.github.io/perl-cross/
|
||||
cp -rf perl-cross-${TERMUX_PKG_VERSION[1]}/* .
|
||||
|
||||
|
|
|
@ -12,6 +12,12 @@ TERMUX_PKG_BUILD_IN_SRC=true
|
|||
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686, x86_64"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Validate that we have the right version:
|
||||
grep -q "Version ${TERMUX_PKG_VERSION//./ }" src64/version.l || {
|
||||
termux_error_exit "Picolisp version needs to be bumped"
|
||||
|
|
|
@ -8,5 +8,11 @@ TERMUX_PKG_DEPENDS="glib"
|
|||
TERMUX_PKG_RM_AFTER_INSTALL="bin/*-pkg-config"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
rm -Rf $TERMUX_PREFIX/bin/*pkg-config
|
||||
}
|
||||
|
|
|
@ -37,6 +37,14 @@ termux_step_host_build() {
|
|||
make ./src/timezone/zic
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
# Man pages are not installed by default:
|
||||
make -C doc/src/sgml install-man
|
||||
|
|
|
@ -14,6 +14,12 @@ TERMUX_PKG_DEPENDS="pcre, libpcreposix, zlib"
|
|||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
autoheader
|
||||
autoconf
|
||||
|
||||
|
|
|
@ -7,6 +7,14 @@ TERMUX_PKG_SRCURL=https://github.com/rofl0r/proxychains-ng/archive/v$TERMUX_PKG_
|
|||
TERMUX_PKG_SHA256=ab31626af7177cc2669433bb244b99a8f98c08031498233bb3df3bcc9711a9cc
|
||||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
# Remove conf file from previous build, otherwise nothing will be done and it won't be included in the package
|
||||
rm -f "$TERMUX_PREFIX"/etc/proxychains.conf
|
||||
|
|
|
@ -12,6 +12,12 @@ TERMUX_PKG_BUILD_IN_SRC="yes"
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-compiler=termux-host"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# Unset CPPFLAGS to avoid -I$TERMUX_PREFIX/include. This is because
|
||||
# radare2 build will put it's own -I flags after ours, which causes
|
||||
# problems due to name clashes (binutils header files).
|
||||
|
|
|
@ -14,6 +14,14 @@ TERMUX_PKG_BUILD_IN_SRC=yes
|
|||
TL_ROOT=$TERMUX_PREFIX/share/texlive
|
||||
TL_BINDIR=$TERMUX_PREFIX/bin
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
mkdir -p $TL_ROOT/{tlpkg/{backups,tlpobj},texmf-var/web2c}
|
||||
cp -r $TERMUX_PKG_BUILDDIR/* $TL_ROOT/
|
||||
|
|
|
@ -51,6 +51,12 @@ termux_step_pre_configure() {
|
|||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
make distclean
|
||||
|
||||
# Remove eventually existing symlinks from previous builds so that they get re-created
|
||||
|
|
|
@ -38,6 +38,12 @@ TERMUX_PKG_CONFFILES="share/vim/vimrc"
|
|||
TERMUX_PKG_CONFLICTS="vim-python"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
make distclean
|
||||
|
||||
# Remove eventually existing symlinks from previous builds so that they get re-created
|
||||
|
|
|
@ -10,6 +10,12 @@ TERMUX_PKG_SRCURL=http://downloads.xvid.org/downloads/xvidcore-${TERMUX_PKG_VERS
|
|||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
|
||||
termux_step_pre_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
rm -f $TERMUX_PREFIX/lib/libxvid*
|
||||
export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_BUILDDIR/build/generic
|
||||
export TERMUX_PKG_SRCDIR=$TERMUX_PKG_BUILDDIR
|
||||
|
|
|
@ -18,6 +18,12 @@ TERMUX_PKG_CONFFILES="etc/zshrc"
|
|||
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||
|
||||
termux_step_post_configure() {
|
||||
# Certain packages are not safe to build on device because their
|
||||
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
||||
if [ -n "$TERMUX_ON_DEVICE_BUILD" ]; then
|
||||
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
||||
fi
|
||||
|
||||
# INSTALL file: "For a non-dynamic zsh, the default is to compile the complete, compctl, zle,
|
||||
# computil, complist, sched, # parameter, zleparameter and rlimits modules into the shell,
|
||||
# and you will need to edit config.modules to make any other modules available."
|
||||
|
|
Loading…
Reference in New Issue