Improve formatting of parantheses for functions

This commit is contained in:
Wetitpig 2019-02-08 17:37:29 +08:00 committed by Leonid Pliushch
parent 352e17d234
commit 5f8864c10d
233 changed files with 366 additions and 366 deletions

View File

@ -9,7 +9,7 @@ test -f $HOME/.termuxrc && . $HOME/.termuxrc
: ${TERMUX_ARCH:="aarch64"}
: ${TERMUX_DEBUG:=""}
_show_usage () {
_show_usage() {
echo "Usage: ./build-all.sh [-a ARCH] [-d] [-o DIR]"
echo "Build all packages."
echo " -a The architecture to build for: aarch64(default), arm, i686, x86_64 or all."

View File

@ -247,7 +247,7 @@ termux_setup_cmake() {
# First step is to handle command-line arguments. Not to be overridden by packages.
termux_step_handle_arguments() {
_show_usage () {
_show_usage() {
echo "Usage: ./build-package.sh [-a ARCH] [-d] [-D] [-f] [-q] [-s] [-o DIR] PACKAGE"
echo "Build a package by creating a .deb file in the debs/ folder."
echo " -a The architecture to build for: aarch64(default), arm, i686, x86_64 or all."
@ -833,7 +833,7 @@ termux_step_patch_package() {
}
# Replace autotools build-aux/config.{sub,guess} with ours to add android targets.
termux_step_replace_guess_scripts () {
termux_step_replace_guess_scripts() {
cd "$TERMUX_PKG_SRCDIR"
find . -name config.sub -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.sub" '{}' \;
find . -name config.guess -exec chmod u+w '{}' \; -exec cp "$TERMUX_SCRIPTDIR/scripts/config.guess" '{}' \;
@ -844,7 +844,7 @@ termux_step_pre_configure() {
return
}
termux_step_configure_autotools () {
termux_step_configure_autotools() {
if [ ! -e "$TERMUX_PKG_SRCDIR/configure" ]; then return; fi
local DISABLE_STATIC="--disable-static"
@ -954,7 +954,7 @@ termux_step_configure_autotools () {
$QUIET_BUILD
}
termux_step_configure_cmake () {
termux_step_configure_cmake() {
termux_setup_cmake
local TOOLCHAIN_ARGS="-DCMAKE_ANDROID_STANDALONE_TOOLCHAIN=$TERMUX_STANDALONE_TOOLCHAIN"
@ -997,7 +997,7 @@ termux_step_configure_cmake () {
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS $TOOLCHAIN_ARGS
}
termux_step_configure_meson () {
termux_step_configure_meson() {
termux_setup_meson
CC=gcc CXX=g++ $TERMUX_MESON \
$TERMUX_PKG_SRCDIR \
@ -1010,7 +1010,7 @@ termux_step_configure_meson () {
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS
}
termux_step_configure () {
termux_step_configure() {
if [ "$TERMUX_PKG_FORCE_CMAKE" == 'no' ] && [ -f "$TERMUX_PKG_SRCDIR/configure" ]; then
termux_step_configure_autotools
elif [ -f "$TERMUX_PKG_SRCDIR/CMakeLists.txt" ]; then
@ -1020,7 +1020,7 @@ termux_step_configure () {
fi
}
termux_step_post_configure () {
termux_step_post_configure() {
return
}

View File

@ -8,7 +8,7 @@ TERMUX_PKG_SHA256=71282502184c592c1a008e256c22ed0ba5728ca65e05273ceb480c70f51596
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-pythonlibs=\"-lpython2.7\" --with-pythonincludes=-I/$TERMUX_PREFIX/include/python2.7"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-python"
termux_step_pre_configure () {
termux_step_pre_configure() {
#LDFLAGS="$LDFLAGS -landroid-shmem"
#_files='src/pcm/pcm_dsnoop.c src/pcm/pcm_mmap.c src/pcm/pcm_shm.c src/pcm/pcm_dmix.c src/pcm/pcm_dshare.c src/pcm/pcm_direct.c src/shmarea.c src/control/control_shm.c aserver/aserver.c'
#for _file in $_files; do sed -i 's%#include <sys/shm.h>%#include <shmem/shm.h>%' "$TERMUX_PKG_SRCDIR/$_file"; done

View File

@ -5,6 +5,6 @@ TERMUX_PKG_SHA256=8ea4d1e082c36528a896a2581e5eb62d4dc2683238e353050d0d624e65f901
TERMUX_PKG_DEPENDS="alsa-lib, pulseaudio"
TERMUX_PKG_EXTRA_MAKE_ARGS='SUBDIRS=pulse'
termux_step_post_make_install () {
termux_step_post_make_install() {
cp $TERMUX_PKG_BUILDER_DIR/asound.conf $TERMUX_PREFIX/etc
}

View File

@ -5,6 +5,6 @@ TERMUX_PKG_SHA256=127217a54eea0f9a49700a2f239a2d4f5384aa094d68df04a8eb80132eb616
TERMUX_PKG_DEPENDS="alsa-lib, ncurses"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-udev-rules-dir=$TERMUX_PREFIX/lib/udev/rules.d --with-asound-state-dir=$TERMUX_PREFIX/var/lib/alsa --disable-bat --disable-rst2man"
termux_step_pre_configure () {
termux_step_pre_configure() {
LDFLAGS+=" -llog"
}

View File

@ -5,7 +5,7 @@ TERMUX_PKG_SRCURL=http://apache.mirrors.spacedump.net//ant/binaries/apache-ant-$
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make_install () {
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/share/ant/lib
for jar in ant ant-launcher; do

View File

@ -14,7 +14,7 @@ termux_step_pre_configure() {
CFLAGS+=" -DS_IREAD=S_IRUSR"
}
termux_step_post_make_install () {
termux_step_post_make_install() {
mv $TERMUX_PREFIX/lib/checkinstall/checkinstallrc-dist \
$TERMUX_PREFIX/lib/checkinstall/checkinstallrc
}

View File

@ -5,7 +5,7 @@ TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/clisp/clisp/${TERMUX_
TERMUX_PKG_DEPENDS="readline, libandroid-support"
TERMUX_MAKE_PROCESSES=1
termux_step_configure () {
termux_step_configure() {
cd $TERMUX_PKG_BUILDDIR
export XCPPFLAGS="$CPPFLAGS"

View File

@ -9,7 +9,7 @@ TERMUX_PKG_SRCURL=https://crawl.develz.org/release/stone_soup-${TERMUX_PKG_VERSI
TERMUX_PKG_EXTRA_MAKE_ARGS="V=1"
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure () {
termux_step_pre_configure() {
export CROSSHOST=$TERMUX_HOST_PLATFORM
TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/source
}

View File

@ -13,10 +13,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-components=core
"
termux_step_pre_configure () {
termux_step_pre_configure() {
LDFLAGS="$LDFLAGS -llog -lcrypt"
}
termux_step_post_make_install () {
termux_step_post_make_install() {
mv "$TERMUX_PREFIX"/lib64/libcups.so* "$TERMUX_PREFIX"/lib/
}

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Dexer that converts java byte code to dex code"
TERMUX_PKG_VERSION=$TERMUX_ANDROID_BUILD_TOOLS_VERSION
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make_install () {
termux_step_make_install() {
# Rewrite packages to avoid using com.android.* classes which may clash with
# classes in the Android runtime on devices (see #1801):
local JARJAR=$TERMUX_PKG_CACHEDIR/jarjar.jar

View File

@ -24,7 +24,7 @@ lib_cv_va_copy=yes
lib_cv___va_copy=yes
"
termux_step_pre_configure () {
termux_step_pre_configure() {
LDFLAGS="$LDFLAGS -llog"
for i in `find $TERMUX_PKG_SRCDIR/src/director -type f`; do sed 's|\bstruct user\b|struct usertest|g' -i $i; done
@ -36,7 +36,7 @@ termux_step_pre_configure () {
fi
}
termux_step_post_make_install () {
termux_step_post_make_install() {
for binary in doveadm doveconf; do
mv $TERMUX_PREFIX/bin/$binary $TERMUX_PREFIX/libexec/dovecot/$binary
cat > $TERMUX_PREFIX/bin/$binary <<HERE

View File

@ -7,7 +7,7 @@ TERMUX_PKG_CONFFILES="etc/easy-rsa/openssl-1.0.cnf, etc/easy-rsa/vars"
TERMUX_PKG_MAINTAINER='Vishal Biswas @vishalbiswas'
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install () {
termux_step_make_install() {
install -D -m0755 easyrsa "${TERMUX_PREFIX}"/bin/easyrsa
install -D -m0644 openssl-1.0.cnf "${TERMUX_PREFIX}"/etc/easy-rsa/openssl-1.0.cnf

View File

@ -35,7 +35,7 @@ termux_step_post_extract_package() {
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --target=${TERMUX_HOST_PLATFORM}"
}
termux_step_pre_configure () {
termux_step_pre_configure() {
echo "INTEGER_LIBRARY = integer-simple" > mk/build.mk
#echo "GhcStage2HcOpts = $ORIG_CFLAGS $ORIG_CPPFLAGS $ORIG_LDFLAGS" >> mk/build.mk

View File

@ -3,11 +3,11 @@ TERMUX_PKG_DESCRIPTION="Java programming language compiler from (openjdk)"
TERMUX_PKG_VERSION=8u45
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_extract_package () {
termux_step_extract_package() {
mkdir $TERMUX_PKG_SRCDIR
}
termux_step_make () {
termux_step_make() {
RAW_JAR=/usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar
mkdir -p $TERMUX_PREFIX/share/dex

View File

@ -8,7 +8,7 @@ TERMUX_PKG_SRCURL=https://github.com/libffi/libffi/archive/${_COMMIT}.zip
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-multi-os-directory --enable-symvers=no"
TERMUX_PKG_RM_AFTER_INSTALL="lib/libffi-${TERMUX_PKG_VERSION}/include"
termux_step_pre_configure () {
termux_step_pre_configure() {
cd $TERMUX_PKG_SRCDIR
./autogen.sh
}

View File

@ -12,7 +12,7 @@ TERMUX_PKG_FOLDERNAME=mono-$_MONO_VERSION
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="--disable-btls --disable-dynamic-btls" #--with-btls-android-ndk=$ANDROID_NDK"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure () {
termux_step_pre_configure() {
# export CFLAGS="$CFLAGS -mthumb"
cd "$TERMUX_PKG_SRCDIR"
# NOCONFIGURE=1 ./autogen.sh

View File

@ -5,7 +5,7 @@ TERMUX_PKG_SRCURL=https://s3.amazonaws.com/altorg/nethack/nethack-360-src.tgz
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="ncurses"
termux_step_make_install () {
termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR/sys/unix
sh setup.sh hints/linux

View File

@ -5,7 +5,7 @@ TERMUX_PKG_SRCURL=http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.3.tar.x
TERMUX_PKG_DEPENDS="pcre, openssl, libuuid"
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_configure () {
termux_step_configure() {
./configure -prefix $TERMUX_PREFIX -mandir $TERMUX_PREFIX/share/man/man1 -cc "$CC $CFLAGS $CPPFLAGS $LDFLAGS" \
-host $TERMUX_HOST_PLATFORM
}

View File

@ -49,7 +49,7 @@ _url_src=http://hg.openjdk.java.net/mobile/dev
TERMUX_PKG_SRCURL=$_url_src/archive/${changesets[0]}.tar.bz2
TERMUX_PKG_SHA256=${sha256sums[0]}
termux_step_post_extract_package () {
termux_step_post_extract_package() {
cd "$TERMUX_PKG_TMPDIR"
# download and extract repo archives
for index in {1..7}; do
@ -72,11 +72,11 @@ termux_step_post_extract_package () {
}
# override this step to since openjdk provides its own customized guess scripts
termux_step_replace_guess_scripts () {
termux_step_replace_guess_scripts() {
return
}
termux_step_pre_configure () {
termux_step_pre_configure() {
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-cups-include=$TERMUX_PKG_SRCDIR/cups-$_cups_ver"
ln -sf $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/libc.so $TERMUX_PKG_TMPDIR/libpthread.so
@ -100,7 +100,7 @@ HERE
# remove sa_proc support
rm $TERMUX_PKG_SRCDIR/hotspot/make/lib/Lib-jdk.hotspot.agent.gmk
}
termux_step_configure () {
termux_step_configure() {
if [ $TERMUX_ARCH = "x86_64" ]; then
ln -sf $TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib64/libc.so $TERMUX_PKG_TMPDIR/libpthread.so
else
@ -124,11 +124,11 @@ termux_step_configure () {
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS
}
termux_step_make () {
termux_step_make() {
make JOBS=$TERMUX_MAKE_PROCESSES images
}
termux_step_post_make_install () {
termux_step_post_make_install() {
# move jvm install dir
mkdir -p $TERMUX_PREFIX/lib/jvm
rm -rf "$TERMUX_PREFIX/lib/jvm/openjdk-9"

View File

@ -19,7 +19,7 @@ IPROUTE=$TERMUX_PREFIX/bin/ip
NETSTAT=$TERMUX_PREFIX/bin/netstat"
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
termux_step_pre_configure () {
termux_step_pre_configure() {
# need to provide getpass, else you "can't get console input"
cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/src/openvpn/"
@ -27,7 +27,7 @@ termux_step_pre_configure () {
LDFLAGS="$LDFLAGS -llog "
}
termux_step_post_make_install () {
termux_step_post_make_install() {
# helper script
install -m700 "$TERMUX_PKG_BUILDER_DIR/termux-openvpn" "$TERMUX_PREFIX/bin/"
# Install examples

View File

@ -17,13 +17,13 @@ termux_step_pre_configure() {
LDFLAGS+="$LDFLAGS -llog -landroid-glob"
}
termux_step_make () {
termux_step_make() {
make
make -C contrib
# make -C "$pkgname-$pkgver" check
}
termux_step_make_install () {
termux_step_make_install() {
make install
make -C contrib install

View File

@ -6,6 +6,6 @@ TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/premake/Premake/4.4/p
# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ssl=openssl"
termux_step_pre_configure () {
termux_step_pre_configure() {
TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/gmake.unix
}

View File

@ -9,12 +9,12 @@ TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_DEPENDS="libffi, libandroid-support"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-racket=$TERMUX_PKG_HOSTBUILD_DIR/racket/racketcgc --enable-libs --disable-shared --disable-gracket --enable-libffi"
termux_step_host_build () {
termux_step_host_build() {
$TERMUX_PKG_SRCDIR/src/configure ${TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS}
make -j $TERMUX_MAKE_PROCESSES
}
termux_step_pre_configure () {
termux_step_pre_configure() {
CPPFLAGS+=" -I$TERMUX_PKG_SRCDIR/src/racket/include -I$TERMUX_PKG_BUILDDIR/racket"
# Due to use of syslog.
LDFLAGS+=" -llog"

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Steel Bank Common Lisp"
TERMUX_PKG_VERSION=1.3.9
TERMUX_PKG_SRCURL=http://prdownloads.sourceforge.net/sbcl/sbcl-${TERMUX_PKG_VERSION}-source.tar.bz2
termux_step_pre_configure () {
termux_step_pre_configure() {
local SBCL_HOST_TARFILE=$TERMUX_PKG_CACHEDIR/sbcl-host-${TERMUX_PKG_VERSION}.tar.bz2
if [ ! -f $SBCL_HOST_TARFILE ]; then
curl -o $SBCL_HOST_TARFILE -L http://downloads.sourceforge.net/project/sbcl/sbcl/${TERMUX_PKG_VERSION}/sbcl-${TERMUX_PKG_VERSION}-x86-64-linux-binary.tar.bz2
@ -16,7 +16,7 @@ termux_step_pre_configure () {
export SBCL_HOME=$TERMUX_PKG_CACHEDIR/sbcl-host/lib/sbcl
}
termux_step_make_install () {
termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR
sh make.sh --prefix=$TERMUX_PREFIX
}

View File

@ -6,7 +6,7 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_DEPENDS="readline, libgmp"
termux_step_host_build () {
termux_step_host_build() {
cp -Rf $TERMUX_PKG_SRCDIR/* .
# apt install libgmp-dev:i386 libncurses5-dev:i386
@ -23,7 +23,7 @@ termux_step_host_build () {
}
termux_step_post_configure () {
termux_step_post_configure() {
cp $TERMUX_PKG_HOSTBUILD_DIR/src/defatom src/
touch -d "next hour" $TERMUX_PKG_BUILDDIR/src/defatom
#cp $TERMUX_PKG_HOSTBUILD_DIR/{defatom,swipl} $TERMUX_PKG_BUILDDIR/src/
@ -35,6 +35,6 @@ termux_step_post_configure () {
perl -p -i -e "s|${TERMUX_ARCH}-linux|i386-linux|" */swipl.sh
}
termux_step_post_make_install () {
termux_step_post_make_install() {
mv $TERMUX_PREFIX/lib/swipl-$TERMUX_PKG_VERSION/lib/${TERMUX_ARCH}-linux/libswipl.so* $TERMUX_PREFIX/lib/
}

View File

@ -5,6 +5,6 @@ TERMUX_PKG_SRCURL=http://landley.net/toybox/downloads/toybox-${TERMUX_PKG_VERSIO
TERMUX_PKG_SHA256=e6469b508224e0d2e4564dda05c4bb47aef5c28bf29d6c983bcdc6e3a0cd29d6
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_configure () {
termux_step_configure() {
make defconfig
}

View File

@ -15,7 +15,7 @@ CFLAGS="$CFLAGS $CPPFLAGS $LDFLAGS"
export LFLAGS="$LDFLAGS"
LD="$CC"
termux_step_pre_configure () {
termux_step_pre_configure() {
# Create a host build for the makedefs binary
mkdir $TERMUX_PKG_TMPDIR/host-build
cd $TERMUX_PKG_TMPDIR/host-build
@ -40,7 +40,7 @@ termux_step_pre_configure () {
export LFLAGS=$ORIG_LFLAGS
}
termux_step_post_configure () {
termux_step_post_configure() {
# Use the host built makedefs
cp $TERMUX_PKG_TMPDIR/host-build/util/makedefs $TERMUX_PKG_BUILDDIR/util/makedefs
cp $TERMUX_PKG_TMPDIR/host-build/util/lev_comp $TERMUX_PKG_BUILDDIR/util/lev_comp
@ -50,7 +50,7 @@ termux_step_post_configure () {
touch -d "next hour" $TERMUX_PKG_BUILDDIR/util/makedefs $TERMUX_PKG_BUILDDIR/util/lev_comp $TERMUX_PKG_BUILDDIR/util/dgn_comp $TERMUX_PKG_BUILDDIR/util/dlb
}
termux_step_post_make_install () {
termux_step_post_make_install() {
# Add directory which must exist:
mkdir -p $TERMUX_PREFIX/var/unnethack/level
echo "This directory stores locks" > $TERMUX_PREFIX/var/unnethack/level/README

View File

@ -8,7 +8,7 @@ TERMUX_PKG_REVISION=2
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="libexpat, libpng, libzopfli"
termux_step_make_install () {
termux_step_make_install() {
# FIXME: We would like to enable checksums when downloading
# tar files, but they change each time as the tar metadata
# differs: https://github.com/google/gitiles/issues/84

View File

@ -7,6 +7,6 @@ TERMUX_PKG_SHA256=c90909e13fa95770b5afc3b59f311b3d3d2fdfae23f9569fa4f96a3e192a35
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="libutil,dvtm"
termux_step_pre_configure () {
termux_step_pre_configure() {
CFLAGS+=" $CPPFLAGS"
}

View File

@ -9,7 +9,7 @@ TERMUX_PKG_SKIP_SRC_EXTRACT=yes
TERMUX_PKG_DEPENDS="perl, coreutils"
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install () {
termux_step_make_install() {
termux_download \
$TERMUX_PKG_SRCURL \
$TERMUX_PREFIX/bin/ack \

View File

@ -17,7 +17,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
"
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure () {
termux_step_pre_configure() {
export TCC=$CC
export TRANLIB=$RANLIB
export SPELLPROG=${TERMUX_PREFIX}/bin/hunspell
@ -40,7 +40,7 @@ termux_step_post_configure() {
$CC_FOR_BUILD help_h_gen.c -o help_h_gen
touch -d "next hour" help_c_gen help_h_gen
}
termux_step_create_debscripts () {
termux_step_create_debscripts() {
echo "#!$TERMUX_PREFIX/bin/sh" >> postinst
echo "if [ ! -e $TERMUX_ANDROID_HOME/.alpine-smime/.pwd/MasterPassword.crt ] && [ ! -e $HOME/.alpine-smime/.pwd/MasterPassword.key ]; then" >> postinst

View File

@ -9,11 +9,11 @@ TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-x11 --bindir=$TERMUX_PREFIX/bin --sysconfdir=$TERMUX_PREFIX/share/angband"
TERMUX_PKG_RM_AFTER_INSTALL="share/angband/xtra share/angband/icons"
termux_step_pre_configure () {
termux_step_pre_configure() {
./autogen.sh
perl -p -i -e 's|ncursesw5-config|ncursesw6-config|g' configure
}
termux_step_post_make_install () {
termux_step_post_make_install() {
rm -Rf $TERMUX_PREFIX/share/angband/{fonts,sounds}
}

View File

@ -70,7 +70,7 @@ TERMUX_PKG_RM_AFTER_INSTALL="share/apache2/manual etc/apache2/original share/man
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="share/apache2/build"
TERMUX_PKG_EXTRA_MAKE_ARGS="-s"
termux_step_pre_configure () {
termux_step_pre_configure() {
# remove old files
rm -rf "$TERMUX_PREFIX"/{libexec,share,etc}/apache2
rm -rf "$TERMUX_PREFIX"/lib/cgi-bin
@ -87,13 +87,13 @@ termux_step_pre_configure () {
cat $TERMUX_PKG_BUILDER_DIR/Termux.layout > $TERMUX_PKG_SRCDIR/config.layout
}
termux_step_post_configure () {
termux_step_post_configure() {
# thanks to @JetBalsa
gcc -O2 -DCROSS_COMPILE $TERMUX_PKG_SRCDIR/server/gen_test_char.c -o $TERMUX_PKG_BUILDDIR/server/gen_test_char
touch -d "1 hour" $TERMUX_PKG_BUILDDIR/server/gen_test_char
}
termux_step_post_make_install () {
termux_step_post_make_install() {
sed -e "s#/$TERMUX_PREFIX/libexec/apache2/#modules/#" \
-e 's|#\(LoadModule negotiation_module \)|\1|' \
-e 's|#\(LoadModule include_module \)|\1|' \
@ -110,7 +110,7 @@ termux_step_post_make_install () {
-i "$TERMUX_PREFIX/etc/apache2/httpd.conf"
}
termux_step_post_massage () {
termux_step_post_massage() {
# sometimes it creates a $TERMUX_PREFIX/bin/sh -> /bin/sh
rm ${TERMUX_PKG_MASSAGEDIR}${TERMUX_PREFIX}/bin/sh || true

View File

@ -8,7 +8,7 @@ TERMUX_PKG_SRCURL=https://github.com/fornwall/apksigner/archive/v${TERMUX_PKG_VE
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make () {
termux_step_make() {
mkdir -p $TERMUX_PREFIX/share/{dex,man/man1}
cp apksigner.1 $TERMUX_PREFIX/share/man/man1/

View File

@ -19,6 +19,6 @@ ac_cv_search_crypt="
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="bin/apr-1-config share/apr-1/build"
TERMUX_PKG_RM_AFTER_INSTALL="lib/apr.exp"
termux_step_post_make_install () {
termux_step_post_make_install() {
sed -i "s%NM=\".*%NM=\"${TERMUX_HOST_PLATFORM}-nm -B\"%g" $TERMUX_PREFIX/share/apr-1/build/libtool
}

View File

@ -10,15 +10,15 @@ TERMUX_PKG_HAS_DEBUG=no
# ncurses-utils for tput which asciinema uses:
TERMUX_PKG_DEPENDS="python, ncurses-utils"
termux_step_make () {
termux_step_make() {
return
}
termux_step_make_install () {
termux_step_make_install() {
export PYTHONPATH=$TERMUX_PREFIX/lib/python3.7/site-packages/
python3.7 setup.py install --prefix=$TERMUX_PREFIX --force
}
termux_step_post_massage () {
termux_step_post_massage() {
find . -path '*/__pycache__*' -delete
}

View File

@ -7,11 +7,11 @@ TERMUX_PKG_SHA256=64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a576
TERMUX_PKG_DEPENDS="m4, make, perl"
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_post_extract_package () {
termux_step_post_extract_package() {
perl -p -i -e "s|/bin/sh|$TERMUX_PREFIX/bin/sh|" lib/*/*.m4
}
termux_step_post_massage () {
termux_step_post_massage() {
perl -p -i -e "s|/usr/bin/m4|$TERMUX_PREFIX/bin/m4|" bin/*
perl -p -i -e "s|CONFIG_SHELL-/bin/sh|CONFIG_SHELL-$TERMUX_PREFIX/bin/sh|" bin/autoconf
}

View File

@ -8,7 +8,7 @@ TERMUX_PKG_BUILD_IN_SRC="yes"
TERMUX_PKG_DEPENDS="openssh | dropbear"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--mandir=$TERMUX_PREFIX/share/man ac_cv_path_ssh=$TERMUX_PREFIX/bin/ssh"
termux_step_pre_configure () {
termux_step_pre_configure() {
# For syslog logging:
LDFLAGS+=" -llog"
}

View File

@ -27,7 +27,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" bash_cv_getcwd_malloc=yes"
TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1/bashbug.1 bin/bashbug"
termux_step_pre_configure () {
termux_step_pre_configure() {
declare -A PATCH_CHECKSUMS
PATCH_CHECKSUMS[001]=3e28d91531752df9a8cb167ad07cc542abaf944de9353fe8c6a535c9f1f17f0f
PATCH_CHECKSUMS[002]=7020a0183e17a7233e665b979c78c184ea369cfaf3e8b4b11f5547ecb7c13c53
@ -63,7 +63,7 @@ termux_step_pre_configure () {
done
}
termux_step_post_make_install () {
termux_step_post_make_install() {
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" $TERMUX_PKG_BUILDER_DIR/etc-profile > $TERMUX_PREFIX/etc/profile
sed "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|" \
$TERMUX_PKG_BUILDER_DIR/etc-profile | \

View File

@ -12,7 +12,7 @@ TERMUX_PKG_KEEP_STATIC_LIBRARIES=true
# Avoid linking against libfl.so from flex if available:
export LEXLIB=
termux_step_pre_configure () {
termux_step_pre_configure() {
export CPPFLAGS="$CPPFLAGS -Wno-c++11-narrowing"
if [ $TERMUX_ARCH_BITS = 32 ]; then
@ -22,7 +22,7 @@ termux_step_pre_configure () {
fi
}
termux_step_post_make_install () {
termux_step_post_make_install() {
cp $TERMUX_PKG_BUILDER_DIR/ldd $TERMUX_PREFIX/bin/ldd
cd $TERMUX_PREFIX/bin
# Setup symlinks as these are used when building, so used by

View File

@ -8,10 +8,10 @@ TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_EXTRA_MAKE_ARGS="curses"
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure () {
termux_step_pre_configure() {
CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS"
}
termux_step_make_install () {
termux_step_make_install() {
cp bin/brogue $TERMUX_PREFIX/bin
}

View File

@ -11,11 +11,11 @@ TERMUX_PKG_BUILD_IN_SRC=yes
# We replace env in the old coreutils package:
TERMUX_PKG_CONFLICTS="coreutils (<< 8.25-4)"
termux_step_pre_configure () {
termux_step_pre_configure() {
CFLAGS+=" -llog" # Android system liblog.so for syslog
}
termux_step_configure () {
termux_step_configure() {
cp $TERMUX_PKG_BUILDER_DIR/busybox.config .config
echo "CONFIG_SYSROOT=\"$TERMUX_STANDALONE_TOOLCHAIN/sysroot\"" >> .config
echo "CONFIG_PREFIX=\"$TERMUX_PREFIX\"" >> .config
@ -25,7 +25,7 @@ termux_step_configure () {
make oldconfig
}
termux_step_post_make_install () {
termux_step_post_make_install() {
if [ "$TERMUX_DEBUG" == "true" ]; then
install busybox_unstripped $PREFIX/bin/busybox
fi

View File

@ -8,7 +8,7 @@ TERMUX_PKG_SHA256=c1fd9b235896b1094ee97bfb7e042f93530b5e300781f59b45edf84ee8c750
TERMUX_PKG_SKIP_SRC_EXTRACT=yes
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install () {
termux_step_make_install() {
local CERTDIR=$TERMUX_PREFIX/etc/tls
local CERTFILE=$CERTDIR/cert.pem

View File

@ -6,7 +6,7 @@ TERMUX_PKG_SHA256=dd748039f3531653e1573577cd814741524e1b16e16e3a841ef512e5150da6
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/c-board/${TERMUX_PKG_VERSION}/cboard-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_DEPENDS="libandroid-support,libandroid-glob,gnuchess, ncurses, ncurses-ui-libs"
termux_step_pre_configure () {
termux_step_pre_configure() {
CFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX"
LDFLAGS+=" -landroid-glob"
if [ "$TERMUX_DEBUG" == "true" ]; then

View File

@ -8,7 +8,7 @@ TERMUX_PKG_SRCURL=https://github.com/abishekvashok/cmatrix/archive/${_REAL_VERSI
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--mandir=$TERMUX_PREFIX/share/man"
TERMUX_PKG_DEPENDS="ncurses"
termux_step_pre_configure () {
termux_step_pre_configure() {
export ac_cv_file__usr_lib_kbd_consolefonts=no
export ac_cv_file__usr_share_consolefonts=no
export ac_cv_file__usr_lib_X11_fonts_misc=no

View File

@ -13,6 +13,6 @@ termux_step_pre_configure() {
export CONFIG_OSS=n
}
termux_step_configure () {
termux_step_configure() {
./configure prefix=$TERMUX_PREFIX
}

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Suggest installation of packages in interactive shell se
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION=1.36
termux_step_make_install () {
termux_step_make_install() {
TERMUX_LIBEXEC_DIR=$TERMUX_PREFIX/libexec/termux
mkdir -p $TERMUX_LIBEXEC_DIR
$CC -Wall -Wextra -Werror -pedantic $CFLAGS $LDFLAGS -std=c11 $TERMUX_PKG_BUILDER_DIR/command-not-found.c \

View File

@ -7,7 +7,7 @@ TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://dl.bintray.com/termux/upstream/corkscrew-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=0d0fcbb41cba4a81c4ab494459472086f377f9edb78a2e2238ed19b58956b0be
termux_step_post_make_install () {
termux_step_post_make_install() {
# Corkscrew does not distribute a man page, use one from debian:
mkdir -p $TERMUX_PREFIX/share/man/man1
cp $TERMUX_PKG_BUILDER_DIR/corkscrew.1 $TERMUX_PREFIX/share/man/man1

View File

@ -7,7 +7,7 @@ TERMUX_PKG_SHA256=10bae895d9afb2d720d2211db58f396352b00fe1386c369ca3608cbf6497b8
TERMUX_PKG_DEPENDS="perl"
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install () {
termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR
sh install.sh
}

View File

@ -7,7 +7,7 @@ TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/a-nikolaev/curseofwar/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=91b7781e26341faa6b6999b6baf6e74ef532fa94303ab6a2bf9ff6d614a3f670
termux_step_make_install () {
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/share/man/man6
cp curseofwar $TERMUX_PREFIX/bin
cp $TERMUX_PKG_SRCDIR/curseofwar.6 $TERMUX_PREFIX/share/man/man6

View File

@ -7,7 +7,7 @@ TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=3c663919dc5c66ec991da14c7cf7e0be8ad00f3db73986a987c118862b5f6071
TERMUX_PKG_SRCURL=http://gondor.apana.org.au/~herbert/dash/files/dash-${TERMUX_PKG_VERSION}.tar.gz
termux_step_post_make_install () {
termux_step_post_make_install() {
# Symlink sh -> dash
cd $TERMUX_PREFIX/bin
ln -sf dash sh

View File

@ -7,7 +7,7 @@ TERMUX_PKG_SRCURL=http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-${TERMUX_
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="littlecms, libjasper, libjpeg-turbo"
termux_step_make_install () {
termux_step_make_install() {
# See the "install" script for flags:
$CC $CFLAGS $CPPFLAGS $LDFLAGS dcraw.c $TERMUX_PKG_BUILDER_DIR/swab.c -lm -ljasper -ljpeg -llcms2 -o $TERMUX_PREFIX/bin/dcraw
chmod +w dcraw.1 # Add missing write permission

View File

@ -8,12 +8,12 @@ TERMUX_PKG_SRCURL=http://invisible-island.net/datafiles/release/dialog.tar.gz
# This will break when a new version is released (the URL unfortunately does not change)
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ncursesw --enable-widec --with-pkg-config"
termux_step_pre_configure () {
termux_step_pre_configure() {
# Put a temporary link for libtinfo.so
ln -s -f $TERMUX_PREFIX/lib/libncursesw.so $TERMUX_PREFIX/lib/libtinfo.so
}
termux_step_post_make_install () {
termux_step_post_make_install() {
rm $TERMUX_PREFIX/lib/libtinfo.so
cd $TERMUX_PREFIX/bin
ln -f -s dialog whiptail

View File

@ -20,7 +20,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-eddsa=no
"
termux_step_pre_configure () {
termux_step_pre_configure() {
export BUILD_AR=ar
export BUILD_CC=gcc
export BUILD_CFLAGS=
@ -33,7 +33,7 @@ termux_step_pre_configure () {
LDFLAGS+=" -llog"
}
termux_step_make () {
termux_step_make() {
make -C lib/isc
make -C lib/dns
make -C lib/ns
@ -46,7 +46,7 @@ termux_step_make () {
make -C bin/nsupdate
}
termux_step_make_install () {
termux_step_make_install() {
make -C lib/isc install
make -C lib/dns install
make -C lib/ns install

View File

@ -13,7 +13,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dbuild_parse=yes
-Dbuild_xmlparser=yes
"
termux_step_post_make_install () {
termux_step_post_make_install() {
mkdir -p $TERMUX_PREFIX/share/man/man1
cp $TERMUX_PKG_SRCDIR/doc/doxygen.1 $TERMUX_PREFIX/share/man/man1
}

View File

@ -65,7 +65,7 @@ share/perl5
TERMUX_PKG_DEPENDS="busybox, liblzma"
TERMUX_PKG_ESSENTIAL=yes
termux_step_pre_configure () {
termux_step_pre_configure() {
export TAR=tar # To make sure dpkg tries to use "tar" instead of e.g. "gnutar" (which happens when building on OS X)
perl -p -i -e "s/TERMUX_ARCH/$TERMUX_ARCH/" $TERMUX_PKG_SRCDIR/configure
}

View File

@ -23,7 +23,7 @@ termux_step_post_make_install() {
ln -sf "dropbearmulti" "${TERMUX_PREFIX}/bin/ssh"
}
termux_step_create_debscripts () {
termux_step_create_debscripts() {
{
echo "#!$TERMUX_PREFIX/bin/sh"
echo "mkdir -p $TERMUX_PREFIX/etc/dropbear"

View File

@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION=$TERMUX_ANDROID_BUILD_TOOLS_VERSION
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make_install () {
termux_step_make_install() {
# Rewrite packages to avoid using com.android.* classes which may clash with
# classes in the Android runtime on devices (see #1801):
local JARJAR=$TERMUX_PKG_CACHEDIR/jarjar.jar

View File

@ -9,11 +9,11 @@ TERMUX_PKG_SRCURL=http://archive.eclipse.org/eclipse/downloads/drops${TERMUX_PKG
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_CONFLICTS="ecj4.6"
termux_step_extract_package () {
termux_step_extract_package() {
mkdir $TERMUX_PKG_SRCDIR
}
termux_step_make () {
termux_step_make() {
local RAW_JAR=$TERMUX_PKG_CACHEDIR/ecj-${TERMUX_PKG_VERSION}.jar
termux_download $TERMUX_PKG_SRCURL \
$RAW_JAR \

View File

@ -9,11 +9,11 @@ TERMUX_PKG_SRCURL=http://archive.eclipse.org/eclipse/downloads/drops${TERMUX_PKG
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_CONFLICTS="ecj"
termux_step_extract_package () {
termux_step_extract_package() {
mkdir $TERMUX_PKG_SRCDIR
}
termux_step_make () {
termux_step_make() {
local RAW_JAR=$TERMUX_PKG_CACHEDIR/ecj-${TERMUX_PKG_VERSION}.jar
termux_download $TERMUX_PKG_SRCURL \
$RAW_JAR \

View File

@ -41,7 +41,7 @@ TERMUX_PKG_RM_AFTER_INSTALL="share/icons share/emacs/${TERMUX_PKG_VERSION}/etc/i
# program still remain in the emacs package):
TERMUX_PKG_RM_AFTER_INSTALL+=" bin/ctags share/man/man1/ctags.1 share/man/man1/ctags.1.gz"
termux_step_post_extract_package () {
termux_step_post_extract_package() {
# XXX: We have to start with new host build each time
# to avoid build error when cross compiling.
rm -Rf $TERMUX_PKG_HOSTBUILD_DIR
@ -56,7 +56,7 @@ termux_step_post_extract_package () {
export CANNOT_DUMP=yes
}
termux_step_host_build () {
termux_step_host_build() {
# Build a bootstrap-emacs binary to be used in termux_step_post_configure.
local NATIVE_PREFIX=$TERMUX_PKG_TMPDIR/emacs-native
mkdir -p $NATIVE_PREFIX/share/emacs/$TERMUX_PKG_VERSION
@ -66,13 +66,13 @@ termux_step_host_build () {
make -j $TERMUX_MAKE_PROCESSES
}
termux_step_post_configure () {
termux_step_post_configure() {
cp $TERMUX_PKG_HOSTBUILD_DIR/src/bootstrap-emacs $TERMUX_PKG_BUILDDIR/src/bootstrap-emacs
cp $TERMUX_PKG_HOSTBUILD_DIR/lib-src/make-docfile $TERMUX_PKG_BUILDDIR/lib-src/make-docfile
# Update timestamps so that the binaries does not get rebuilt:
touch -d "next hour" $TERMUX_PKG_BUILDDIR/src/bootstrap-emacs $TERMUX_PKG_BUILDDIR/lib-src/make-docfile
}
termux_step_post_make_install () {
termux_step_post_make_install() {
cp $TERMUX_PKG_BUILDER_DIR/site-init.el $TERMUX_PREFIX/share/emacs/${TERMUX_PKG_VERSION}/lisp/emacs-lisp/
}

View File

@ -18,13 +18,13 @@ termux_step_post_extract_package() {
./otp_build autoconf
}
termux_step_host_build () {
termux_step_host_build() {
cd $TERMUX_PKG_SRCDIR
./configure --enable-bootstrap-only
make -j "$TERMUX_MAKE_PROCESSES"
}
termux_step_pre_configure () {
termux_step_pre_configure() {
(cd erts && autoreconf)
# liblog is needed for syslog usage:

View File

@ -6,11 +6,11 @@ TERMUX_PKG_SHA256=49a7da83b0bdd9f46d04a04deec19c7767bb9a323e40c4781f89caf760b92c
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/expect/Expect/${TERMUX_PKG_VERSION}/expect${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libutil, tcl"
termux_step_pre_configure () {
termux_step_pre_configure() {
autoconf
}
termux_step_post_make_install () {
termux_step_post_make_install() {
cd $TERMUX_PREFIX/lib
ln -f -s expect${TERMUX_PKG_VERSION}/libexpect${TERMUX_PKG_VERSION}.so .
}

View File

@ -13,7 +13,7 @@ TERMUX_PKG_DEPENDS="libbz2, libsoxr, libx264, libx265, xvidcore, libvorbis, libm
TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="share/ffmpeg/examples"
TERMUX_PKG_CONFLICTS="libav"
termux_step_configure () {
termux_step_configure() {
cd $TERMUX_PKG_BUILDDIR
export ASFLAGS="-no-integrated-as"

View File

@ -7,6 +7,6 @@ TERMUX_PKG_SRCURL=ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-${TERMUX_P
TERMUX_PKG_SHA256=bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure () {
termux_step_pre_configure() {
LD=$CC
}

View File

@ -21,12 +21,12 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
"
TERMUX_PKG_RM_AFTER_INSTALL="share/sounds/purple lib/purple-2/libmsn.so"
termux_step_pre_configure () {
termux_step_pre_configure() {
# For arpa:
CFLAGS+=" -isystem $TERMUX_PKG_BUILDER_DIR"
}
termux_step_post_configure () {
termux_step_post_configure() {
# Hack to compile first version of libpurple-ciphers.la
cp $TERMUX_PREFIX/lib/libxml2.so $TERMUX_PREFIX/lib/libpurple.so
@ -41,7 +41,7 @@ termux_step_post_configure () {
make clean
}
termux_step_post_make_install () {
termux_step_post_make_install() {
cd $TERMUX_PREFIX/lib
for lib in jabber oscar ymsg; do
ln -f -s purple-2/lib${lib}.so .

View File

@ -17,7 +17,7 @@ termux_step_pre_configure() {
CXXFLAGS+=" $CPPFLAGS"
}
termux_step_post_make_install () {
termux_step_post_make_install() {
cat >> $TERMUX_PREFIX/etc/fish/config.fish <<HERE
function __fish_command_not_found_handler --on-event fish_command_not_found

View File

@ -5,7 +5,7 @@ TERMUX_PKG_VERSION=1.2
TERMUX_PKG_SRCURL=http://dl.fefe.de/fortune-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=cbb246a500366db39ce035632eb4954e09f1e03b28f2c4688864bfa8661b236a
termux_step_make_install () {
termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR
$CC $CFLAGS fortune.c -o $TERMUX_PREFIX/bin/fortune
mkdir -p $TERMUX_PREFIX/share/man/man6

View File

@ -8,14 +8,14 @@ TERMUX_PKG_SHA256=2c24359131d7495e47dc95021eb35f1ba408ded9087e36370d94742a401103
TERMUX_PKG_SRCURL=https://www.fossil-scm.org/index.html/uv/fossil-src-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libsqlite, openssl"
termux_step_pre_configure () {
termux_step_pre_configure() {
# Avoid mixup of flags between cross compilation
# and native build.
CC="$CC $CFLAGS $LDFLAGS"
unset CFLAGS LDFLAGS
}
termux_step_configure () {
termux_step_configure() {
$TERMUX_PKG_SRCDIR/configure \
--prefix=$TERMUX_PREFIX \
--host=$TERMUX_HOST_PLATFORM \

View File

@ -10,7 +10,7 @@ TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="bin/freetype-config share/man/man1/freetype-co
# Use with-harfbuzz=no to avoid circular dependency between freetype and harfbuzz:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-harfbuzz=no"
# not install these files anymore so install them manually.
termux_step_post_make_install () {
termux_step_post_make_install() {
cp freetype-config $TERMUX_PREFIX/bin
cp ../src/docs/freetype-config.1 $TERMUX_PREFIX/share/man/man1/
}

View File

@ -15,11 +15,11 @@ termux_step_pre_configure() {
CFLAGS+=" -Drindex=strrchr"
}
termux_step_make () {
termux_step_make() {
CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j $TERMUX_MAKE_PROCESSES install
}
termux_step_make_install () {
termux_step_make_install() {
cp $TERMUX_PKG_BUILDER_DIR/zgames $TERMUX_PREFIX/bin/zgames
chmod +x $TERMUX_PREFIX/bin/zgames
}

View File

@ -14,7 +14,7 @@ termux_step_make() {
:
}
termux_step_make_install () {
termux_step_make_install() {
termux_setup_golang
export CGO_CFLAGS="-I$TERMUX_PREFIX/include"
export CGO_LDFLAGS="-L$TERMUX_PREFIX/lib"
@ -60,7 +60,7 @@ termux_step_make_install () {
cp $TERMUX_PKG_SRCDIR/plugin/fzf.vim $TERMUX_PREFIX/share/nvim/runtime/plugin/
}
termux_step_post_massage () {
termux_step_post_massage() {
# Remove so that the vim build doesn't add it to vim-runtime:
rm $TERMUX_PREFIX/share/vim/vim81/plugin/fzf.vim
}

View File

@ -8,7 +8,7 @@ TERMUX_PKG_SHA256=d1119785e746d46a8209d28b2de404a57f983aa48670f4e225531d3bdc1755
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gawk/gawk-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_RM_AFTER_INSTALL="bin/gawk-* bin/igawk share/man/man1/igawk.1"
termux_step_pre_configure () {
termux_step_pre_configure() {
# Remove old symlink to force a fresh timestamp:
rm -f $TERMUX_PREFIX/bin/awk

View File

@ -8,10 +8,10 @@ TERMUX_PKG_DEPENDS="python2"
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install () {
termux_step_make_install() {
python2 setup.py install --prefix=$TERMUX_PREFIX --force
}
termux_step_post_massage () {
termux_step_post_massage() {
find . -path '*.pyc' -delete
}

View File

@ -6,6 +6,6 @@ TERMUX_PKG_SHA256=105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938b
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gettext/gettext-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="pcre, liblzma, libxml2, libcroco, ncurses, libunistring"
termux_step_pre_configure () {
termux_step_pre_configure() {
autoreconf
}

View File

@ -17,6 +17,6 @@ CCAUX=gcc
--with-system-libtiff
"
termux_step_post_extract_package () {
termux_step_post_extract_package() {
rm -rdf $TERMUX_PKG_SRCDIR/{jpeg,libpng,expat,jasper,freetype,lcms2,tiff,openjpeg}
}

View File

@ -9,12 +9,12 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DCMAKE_BUILD_TYPE=Release -Dbuild_parse=yes -
TERMUX_PKG_EXTRA_MAKE_ARGS="make ENABLE_MAN=yes"
TERMUX_PKG_DEPENDS="git, openssl"
termux_step_make () {
termux_step_make() {
cd $TERMUX_PKG_SRCDIR
make
}
termux_step_make_install () {
termux_step_make_install() {
cd $TERMUX_PKG_SRCDIR
make install
}

View File

@ -40,7 +40,7 @@ share/man/man1/git-cvsserver.1
share/man/man1/git-shell.1
"
termux_step_pre_configure () {
termux_step_pre_configure() {
# Setup perl so that the build process can execute it:
rm -f $TERMUX_PREFIX/bin/perl
ln -s `which perl` $TERMUX_PREFIX/bin/perl
@ -54,7 +54,7 @@ termux_step_pre_configure () {
CPPFLAGS="-I$TERMUX_PKG_SRCDIR $CPPFLAGS"
}
termux_step_post_make_install () {
termux_step_post_make_install() {
# Installing man requires asciidoc and xmlto, so git uses separate make targets for man pages
make -j $TERMUX_MAKE_PROCESSES install-man
@ -74,7 +74,7 @@ termux_step_post_make_install () {
(cd $TERMUX_PREFIX/bin; ln -s -f ../libexec/git-core/git-upload-pack git-upload-pack)
}
termux_step_post_massage () {
termux_step_post_massage() {
if [ ! -f libexec/git-core/git-remote-https ]; then
termux_error_exit "Git built without https support"
fi

View File

@ -24,7 +24,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-pcre=system
"
termux_step_pre_configure () {
termux_step_pre_configure() {
NOCONFIGURE=1 ./autogen.sh
# glib checks for __BIONIC__ instead of __ANDROID__:

View File

@ -7,14 +7,14 @@ TERMUX_PKG_SHA256=33c563bdbd0fdbae625e1a2441e9a6f40f1491f1cdc2a197bbd6cf2c32c383
TERMUX_PKG_BUILD_IN_SRC="yes"
TERMUX_PKG_DEPENDS="ncurses"
termux_step_configure () {
termux_step_configure() {
termux_download http://eblong.com/zarf/glk/glktermw-104.tar.gz \
$TERMUX_PKG_CACHEDIR/glktermw-104.tar.gz \
5968630b45e2fd53de48424559e3579db0537c460f4dc2631f258e1c116eb4ea
tar xf $TERMUX_PKG_CACHEDIR/glktermw-104.tar.gz
}
termux_step_make () {
termux_step_make() {
cd $TERMUX_PKG_SRCDIR/glkterm
patch -p1 < $TERMUX_PKG_BUILDER_DIR/glkterm.patch.special
CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" PREFIX=$TERMUX_PREFIX make -j 1
@ -24,6 +24,6 @@ termux_step_make () {
cp glulxe $TERMUX_PREFIX/bin
}
termux_step_make_install () {
termux_step_make_install() {
echo "Do nothing..."
}

View File

@ -13,7 +13,7 @@ termux_step_configure() {
return 0;
}
termux_step_make () {
termux_step_make() {
cd src/
make cli
}

View File

@ -13,7 +13,7 @@ termux_step_pre_configure() {
CFLAGS+=" -Wno-overflow"
}
termux_step_post_configure () {
termux_step_post_configure() {
cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/mkeyes $TERMUX_PKG_BUILDDIR/patterns/mkeyes
cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/uncompress_fuseki $TERMUX_PKG_BUILDDIR/patterns/uncompress_fuseki
cp $TERMUX_PKG_HOSTBUILD_DIR/patterns/joseki $TERMUX_PKG_BUILDDIR/patterns/joseki

View File

@ -14,7 +14,7 @@ termux_step_pre_configure() {
CFLAGS+=" $CPPFLAGS"
}
termux_step_post_configure () {
termux_step_post_configure() {
cp $TERMUX_PKG_HOSTBUILD_DIR/gnushogi/pat2inc $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc
# Update timestamps so that the binaries does not get rebuilt:
touch -d "next hour" $TERMUX_PKG_BUILDDIR/gnushogi/pat2inc

View File

@ -9,7 +9,7 @@ TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.
TERMUX_PKG_KEEP_STATIC_LIBRARIES=true
TERMUX_PKG_DEPENDS="clang"
termux_step_make_install () {
termux_step_make_install() {
termux_setup_golang
TERMUX_GOLANG_DIRNAME=${GOOS}_$GOARCH
@ -37,6 +37,6 @@ termux_step_make_install () {
cp -Rf pkg/${TERMUX_GOLANG_DIRNAME}/* $TERMUX_GODIR/pkg/${TERMUX_GOLANG_DIRNAME}/
}
termux_step_post_massage () {
termux_step_post_massage() {
find . -path '*/testdata*' -delete
}

View File

@ -6,6 +6,6 @@ TERMUX_PKG_SHA256=22860e913f093aa9124e295d52d1d4ae1afccaa67ed6bed6f1f8d8b0a45336
TERMUX_PKG_SRCURL=https://github.com/gpsbabel/gpsbabel/archive/gpsbabel_${TERMUX_PKG_VERSION//./_}.tar.gz
TERMUX_PKG_DEPENDS="libexpat"
termux_step_post_extract_package () {
termux_step_post_extract_package() {
TERMUX_PKG_SRCDIR+=/gpsbabel
}

View File

@ -44,7 +44,7 @@ termux_step_post_make_install() {
done
}
termux_step_create_debscripts () {
termux_step_create_debscripts() {
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
echo "dot -c" >> postinst
echo "exit 0" >> postinst

View File

@ -11,7 +11,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-pango
"
termux_step_post_make_install () {
termux_step_post_make_install() {
for BINARY in gst-play-1.0 gst-discoverer-1.0 gst-device-monitor-1.0
do
echo $BINARY

View File

@ -8,7 +8,7 @@ TERMUX_PKG_DEPENDS="glib"
TERMUX_PKG_DEVPACKAGE_DEPENDS="glib-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-check --disable-tests --disable-examples --disable-benchmarks --with-unwind=no --with-dw=no"
termux_step_post_make_install () {
termux_step_post_make_install() {
for BINARY in gst-inspect-1.0 gst-stats-1.0 gst-typefind-1.0 gst-launch-1.0
do
echo $BINARY

View File

@ -10,7 +10,7 @@ if [ "$TERMUX_ARCH_BITS" = 32 ]; then
TERMUX_PKG_API_LEVEL=24
fi
termux_step_pre_configure () {
termux_step_pre_configure() {
sh bootstrap.sh
CPPFLAGS+=" -DTERMUX_EXPOSE_FILE_OFFSET64=1"
}

View File

@ -5,7 +5,7 @@ TERMUX_PKG_VERSION=2.11-rc3
TERMUX_PKG_SHA256=6285f134e03688b5ec03986ef53cce463abc007281996156cac52b61cbeb58b2
TERMUX_PKG_SRCURL=https://github.com/HeyuX10Automation/heyu/archive/v$TERMUX_PKG_VERSION.tar.gz
termux_step_pre_configure () {
termux_step_pre_configure() {
# rindex is an obsolete version of strrchr which is not available in Android:
CFLAGS+=" -Drindex=strrchr"
LDFLAGS+=" -llog"

View File

@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_VERSION=2018.10.25
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install () {
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/share/hunspell/
# On checksum mismatch the files may have been updated:
# https://cgit.freedesktop.org/libreoffice/dictionaries/log/en/en_US.aff

View File

@ -4,7 +4,7 @@ TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_VERSION=2017.03.03
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install () {
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/share/hunspell/
# On checksum mismatch the files may have been updated:
# https://cgit.freedesktop.org/libreoffice/dictionaries/log/ru_RU/ru_RU.aff

View File

@ -7,7 +7,7 @@ TERMUX_PKG_SHA256=ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc89131
# Only install the binary, not the library since we use libandroid-support for iconv functions:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-static --disable-shared"
termux_step_make_install () {
termux_step_make_install() {
mkdir -p $TERMUX_PREFIX/share/man/man1
make -C lib install # this installs libiconv.{a,la} which the below install task needs:
make -C src install

View File

@ -12,11 +12,11 @@ termux_step_pre_configure() {
LDFLAGS+=" -llog"
}
termux_step_make () {
termux_step_make() {
:
}
termux_step_make_install () {
termux_step_make_install() {
# the command-line tools needs the libinotifytools installed before building
make -C libinotifytools install
make install

View File

@ -6,7 +6,7 @@ TERMUX_PKG_VERSION=0.41
TERMUX_PKG_SRCURL=http://jodies.de/ipcalc-archive/ipcalc-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a
termux_step_make_install () {
termux_step_make_install() {
cp $TERMUX_PKG_SRCDIR/ipcalc $TERMUX_PREFIX/bin/
}

View File

@ -7,6 +7,6 @@ TERMUX_PKG_SHA256=5ccc2b89a394e91bea0aa83a951c3b1d471c76da87b4169ec435530a31bf97
TERMUX_PKG_SRCURL=https://github.com/irssi/irssi/releases/download/$TERMUX_PKG_VERSION/irssi-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_pre_configure () {
termux_step_pre_configure() {
LDFLAGS+=" -landroid-glob"
}

View File

@ -6,7 +6,7 @@ TERMUX_PKG_SHA256=82194e0128d9141038f82fadcb5845391ca3021d61bc00815078601619f6c0
TERMUX_PKG_SRCURL=http://www.sentex.net/~mwandel/jhead/jhead-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_make_install () {
termux_step_make_install() {
cp jhead $TERMUX_PREFIX/bin/jhead
cp -f jhead.1 $TERMUX_PREFIX/share/man/man1/jhead.1
}

View File

@ -6,7 +6,7 @@ TERMUX_PKG_VERSION=0.13.1
TERMUX_PKG_SHA256=b87e608d4d3f7bfdd36ef78d56d53c74e66ab278d318b71e6002a369d36f4873
TERMUX_PKG_SRCURL=https://s3.amazonaws.com/json-c_releases/releases/json-c-${TERMUX_PKG_VERSION}.tar.gz
termux_step_make () {
termux_step_make() {
make \
LDFLAGS="$LDFLAGS -llog"
}

View File

@ -11,7 +11,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DCCACHE_FOUND=OFF
"
termux_step_pre_configure () {
termux_step_pre_configure() {
# 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*

Some files were not shown because too many files have changed in this diff Show More