*/build.sh: Fix indent

for packages the mantainer of which is @termux.

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-11-06 14:03:38 +09:00
parent 51699ffb60
commit 68833cc864
48 changed files with 158 additions and 157 deletions

View File

@ -14,20 +14,20 @@ termux_step_pre_configure() {
} }
termux_step_make_install() { termux_step_make_install() {
termux_setup_rust termux_setup_rust
cargo install \ cargo install \
--jobs $TERMUX_MAKE_PROCESSES \ --jobs $TERMUX_MAKE_PROCESSES \
--path alass-cli \ --path alass-cli \
--force \ --force \
--locked \ --locked \
--target $CARGO_TARGET_NAME \ --target $CARGO_TARGET_NAME \
--root $TERMUX_PREFIX \ --root $TERMUX_PREFIX \
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS $TERMUX_PKG_EXTRA_CONFIGURE_ARGS
# https://github.com/rust-lang/cargo/issues/3316: # https://github.com/rust-lang/cargo/issues/3316:
rm -f $TERMUX_PREFIX/.crates.toml rm -f $TERMUX_PREFIX/.crates.toml
rm -f $TERMUX_PREFIX/.crates2.json rm -f $TERMUX_PREFIX/.crates2.json
} }
termux_step_post_make_install() { termux_step_post_make_install() {
install -Dm644 LICENSE "$TERMUX_PREFIX/share/licenses/alass/LICENSE" install -Dm644 LICENSE "$TERMUX_PREFIX/share/licenses/alass/LICENSE"
} }

View File

@ -9,12 +9,11 @@ TERMUX_PKG_SHA256="aaf60095884abb872e25f8e919a8a63d0dabaeca46faeba87d12812d6efc7
TERMUX_PKG_DEPENDS="perl" TERMUX_PKG_DEPENDS="perl"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_RECOMMENDS="file,binutils,bzip2,cpio,gzip,lhasa,liblzma,lzop,lzip \ TERMUX_PKG_RECOMMENDS="file, binutils, bzip2, cpio, gzip, lhasa, liblzma, lzop, lzip, p7zip, tar, unrar, zip, unzip, arj, zstd"
,p7zip,tar,unrar,zip,unzip,arj,zstd"
TERMUX_PKG_SUGGESTS="bash-completion" TERMUX_PKG_SUGGESTS="bash-completion"
termux_step_post_make_install() { termux_step_post_make_install() {
mkdir -p "$TERMUX_PREFIX/share/bash-completion/completions" mkdir -p "$TERMUX_PREFIX/share/bash-completion/completions"
install -Dm600 "extra/bash-completion-atool_0.1-1" \ install -Dm600 "extra/bash-completion-atool_0.1-1" \
"$TERMUX_PREFIX/share/bash-completion/completions/atool" "$TERMUX_PREFIX/share/bash-completion/completions/atool"
} }

View File

@ -10,7 +10,7 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_GROUPS="games" TERMUX_PKG_GROUPS="games"
termux_step_pre_configure () { termux_step_pre_configure () {
CFLAGS+=" -fcommon" CFLAGS+=" -fcommon"
CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS" CC="$CC $CFLAGS $CPPFLAGS $LDFLAGS"
} }

View File

@ -9,9 +9,9 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_HOSTBUILD=true
termux_step_host_build() { termux_step_host_build() {
cd $TERMUX_PKG_SRCDIR cd $TERMUX_PKG_SRCDIR
make clean make clean
make make
} }
termux_step_pre_configure() { termux_step_pre_configure() {
@ -20,6 +20,6 @@ termux_step_pre_configure() {
} }
termux_step_make() { termux_step_make() {
make clean -C src make clean -C src
make bin make bin
} }

View File

@ -8,5 +8,5 @@ TERMUX_PKG_SHA256=ff5338d4b473a3e295f3ae4273fb097c0f79c42e3d803eefdf372b51dba606
TERMUX_PKG_DEPENDS=libcurl TERMUX_PKG_DEPENDS=libcurl
termux_step_pre_configure() { termux_step_pre_configure() {
autoreconf --install autoreconf --install
} }

View File

@ -9,13 +9,13 @@ TERMUX_PKG_DEPENDS="ncurses, zlib"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() { termux_step_pre_configure() {
export CROSSHOST="$TERMUX_HOST_PLATFORM" export CROSSHOST="$TERMUX_HOST_PLATFORM"
export TERMUX_PKG_BUILDDIR="$TERMUX_PKG_SRCDIR/crawl-ref/source" export TERMUX_PKG_BUILDDIR="$TERMUX_PKG_SRCDIR/crawl-ref/source"
export INCLUDES_L="-I$TERMUX_PREFIX/include" export INCLUDES_L="-I$TERMUX_PREFIX/include"
export LIBS="-llog -Wl,--rpath=$TERMUX_PREFIX/lib" export LIBS="-llog -Wl,--rpath=$TERMUX_PREFIX/lib"
} }
termux_step_post_configure() { termux_step_post_configure() {
sed -i 's,#ifdef __ANDROID__,#ifdef __NO_THANKS__,g' "$TERMUX_PKG_BUILDDIR/syscalls.cc" sed -i 's,#ifdef __ANDROID__,#ifdef __NO_THANKS__,g' "$TERMUX_PKG_BUILDDIR/syscalls.cc"
} }

View File

@ -9,5 +9,5 @@ TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install() { termux_step_make_install() {
cp $TERMUX_PKG_SRCDIR/bin/* $TERMUX_PREFIX/bin/ cp $TERMUX_PKG_SRCDIR/bin/* $TERMUX_PREFIX/bin/
} }

View File

@ -28,5 +28,5 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
" "
termux_step_pre_configure() { termux_step_pre_configure() {
cp $TERMUX_PKG_BUILDER_DIR/arith.h/$TERMUX_ARCH.h $TERMUX_PKG_SRCDIR/config/include/dcmtk/config/arith.h cp $TERMUX_PKG_BUILDER_DIR/arith.h/$TERMUX_ARCH.h $TERMUX_PKG_SRCDIR/config/include/dcmtk/config/arith.h
} }

View File

@ -10,6 +10,6 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_post_make_install() { termux_step_post_make_install() {
mkdir -p ${TERMUX_PREFIX}/share/man/man8/ mkdir -p ${TERMUX_PREFIX}/share/man/man8/
install ${TERMUX_PKG_SRCDIR}/debootstrap.8 ${TERMUX_PREFIX}/share/man/man8/ install ${TERMUX_PKG_SRCDIR}/debootstrap.8 ${TERMUX_PREFIX}/share/man/man8/
} }

View File

@ -9,5 +9,5 @@ TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() { termux_step_pre_configure() {
termux_setup_golang termux_setup_golang
} }

View File

@ -8,5 +8,5 @@ TERMUX_PKG_SHA256=9405a8a77da49fe92bbe4af18bf925ff91f6d3374c10b7d700a031bacb94c4
TERMUX_PKG_DEPENDS="libandroid-glob" TERMUX_PKG_DEPENDS="libandroid-glob"
termux_step_pre_configure() { termux_step_pre_configure() {
export LIBS="-landroid-glob" export LIBS="-landroid-glob"
} }

View File

@ -11,16 +11,16 @@ TERMUX_PKG_DEPENDS="golang"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() { termux_step_pre_configure() {
termux_setup_golang termux_setup_golang
go mod init || : go mod init || :
go mod tidy go mod tidy
} }
termux_step_make() { termux_step_make() {
go build -trimpath -buildmode=pie -ldflags "-s -w" . go build -trimpath -buildmode=pie -ldflags "-s -w" .
} }
termux_step_make_install() { termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin "$TERMUX_PKG_SRCDIR"/discordo install -Dm700 -t "${TERMUX_PREFIX}"/bin "$TERMUX_PKG_SRCDIR"/discordo
} }

View File

@ -21,5 +21,5 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
TERMUX_MAKE_PROCESSES=1 TERMUX_MAKE_PROCESSES=1
termux_step_pre_configure() { termux_step_pre_configure() {
./autogen.sh ./autogen.sh
} }

View File

@ -32,5 +32,5 @@ termux_step_post_configure() {
} }
termux_step_post_massage() { termux_step_post_massage() {
sed -i 's',"$TERMUX_STANDALONE_TOOLCHAIN/bin/$TERMUX_HOST_PLATFORM-pkg-config","$TERMUX_PREFIX/bin/pkg-config",'g' $TERMUX_PKG_MASSAGEDIR$TERMUX_PREFIX/bin/guile-config sed -i 's',"$TERMUX_STANDALONE_TOOLCHAIN/bin/$TERMUX_HOST_PLATFORM-pkg-config","$TERMUX_PREFIX/bin/pkg-config",'g' $TERMUX_PKG_MASSAGEDIR$TERMUX_PREFIX/bin/guile-config
} }

View File

@ -10,5 +10,5 @@ TERMUX_PKG_DEPENDS="libcurl, libgnutls, libogg, libvorbis, libxml2, libxslt, mim
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() { termux_step_pre_configure() {
perl -p -i -e "s#/etc/mime.types#$TERMUX_PREFIX/etc/mime.types#" $TERMUX_PKG_SRCDIR/src/cfgfile.c perl -p -i -e "s#/etc/mime.types#$TERMUX_PREFIX/etc/mime.types#" $TERMUX_PKG_SRCDIR/src/cfgfile.c
} }

View File

@ -9,6 +9,6 @@ TERMUX_PKG_SHA256=a4dbfaeb7511b81830793ab9936bae9d7b1b561ad33e29106faaaf97ba1c11
TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_AUTO_UPDATE=true
termux_step_make_install() { termux_step_make_install() {
cp $TERMUX_PKG_SRCDIR/ipcalc $TERMUX_PREFIX/bin/ cp $TERMUX_PKG_SRCDIR/ipcalc $TERMUX_PREFIX/bin/
} }

View File

@ -8,13 +8,13 @@ TERMUX_PKG_SHA256=b55edc605eda0a5b25b8009391dcaeb3c8ba88d1fb3337a071f555983a114c
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() { termux_step_pre_configure() {
cd sources cd sources
./autogen.sh ./autogen.sh
sed --in-place 's/$RM "$cfgfile"/$RM -f "$cfgfile"/g' configure sed --in-place 's/$RM "$cfgfile"/$RM -f "$cfgfile"/g' configure
TERMUX_PKG_SRCDIR+="/sources" TERMUX_PKG_SRCDIR+="/sources"
} }
termux_step_post_configure() { termux_step_post_configure() {
# removing tests # removing tests
sed --in-place 's/test_kit//g' sources/Makefile.am sed --in-place 's/test_kit//g' sources/Makefile.am
} }

View File

@ -23,6 +23,6 @@ termux_step_make() {
termux_step_make_install() { termux_step_make_install() {
rm -rf $TERMUX_PREFIX/opt/jython rm -rf $TERMUX_PREFIX/opt/jython
mkdir -p $TERMUX_PREFIX/opt/jython mkdir -p $TERMUX_PREFIX/opt/jython
cp -a $TERMUX_PKG_SRCDIR/dist/* $TERMUX_PREFIX/opt/jython/ cp -a $TERMUX_PKG_SRCDIR/dist/* $TERMUX_PREFIX/opt/jython/
ln -sfr $TERMUX_PREFIX/opt/jython/bin/jython $TERMUX_PREFIX/bin/jython ln -sfr $TERMUX_PREFIX/opt/jython/bin/jython $TERMUX_PREFIX/bin/jython
} }

View File

@ -8,5 +8,5 @@ TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/dict/libmaa/libmaa-$
TERMUX_PKG_SHA256=59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5 TERMUX_PKG_SHA256=59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5
termux_step_pre_configure() { termux_step_pre_configure() {
autoreconf -ivf autoreconf -ivf
} }

View File

@ -10,5 +10,5 @@ TERMUX_PKG_DEPENDS="libprotobuf"
TERMUX_PKG_GROUPS="science" TERMUX_PKG_GROUPS="science"
termux_step_pre_configure() { termux_step_pre_configure() {
termux_setup_protobuf termux_setup_protobuf
} }

View File

@ -9,5 +9,5 @@ TERMUX_PKG_DEPENDS="zlib,freetype,libpng"
TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_AUTO_UPDATE=true
termux_step_post_make_install() { termux_step_post_make_install() {
mv "$TERMUX_PREFIX"/lib/libPNGwriter_shared.so libPNGwriter.so mv "$TERMUX_PREFIX"/lib/libPNGwriter_shared.so libPNGwriter.so
} }

View File

@ -7,6 +7,6 @@ TERMUX_PKG_SRCURL=https://www.spice-space.org/download/releases/spice-protocol-$
TERMUX_PKG_SHA256=f986e5bc2a1598532c4897f889afb0df9257ac21c160c083703ae7c8de99487a TERMUX_PKG_SHA256=f986e5bc2a1598532c4897f889afb0df9257ac21c160c083703ae7c8de99487a
termux_step_post_make_install() { termux_step_post_make_install() {
mv "${TERMUX_PREFIX}"/share/pkgconfig/spice-protocol.pc \ mv "${TERMUX_PREFIX}"/share/pkgconfig/spice-protocol.pc \
"${TERMUX_PREFIX}"/lib/pkgconfig "${TERMUX_PREFIX}"/lib/pkgconfig
} }

View File

@ -12,4 +12,4 @@ TERMUX_PKG_REPLACES="libssh-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DHAVE_ARGP_H=OFF -DHAVE_ARGP_H=OFF
-DWITH_GSSAPI=OFF -DWITH_GSSAPI=OFF
" "

View File

@ -9,9 +9,9 @@ TERMUX_PKG_DEPENDS="readline, openssl (>= 1.1.1), zlib"
TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_HOSTBUILD=true
termux_step_host_build() { termux_step_host_build() {
termux_setup_cmake termux_setup_cmake
cmake "-DCMAKE_BUILD_TYPE=Release" "$TERMUX_PKG_SRCDIR" cmake "-DCMAKE_BUILD_TYPE=Release" "$TERMUX_PKG_SRCDIR"
cmake --build . --target prepare_cross_compiling cmake --build . --target prepare_cross_compiling
} }
termux_step_post_make_install() { termux_step_post_make_install() {

View File

@ -11,8 +11,8 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_DEPENDS="libc++" TERMUX_PKG_DEPENDS="libc++"
termux_step_make_install() { termux_step_make_install() {
install -m 0755 libtinyxml.so \ install -m 0755 libtinyxml.so \
"$TERMUX_PREFIX/lib/" "$TERMUX_PREFIX/lib/"
install -m 0644 tinyxml.h tinystr.h \ install -m 0644 tinyxml.h tinystr.h \
"$TERMUX_PREFIX/include/" "$TERMUX_PREFIX/include/"
} }

View File

@ -11,8 +11,9 @@ TERMUX_PKG_DEPENDS="libusb, libplist, usbmuxd"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() { termux_step_configure() {
./autogen.sh --prefix=$TERMUX_PREFIX \ ./autogen.sh \
--without-preflight \ --prefix=$TERMUX_PREFIX \
--without-systemd \ --without-preflight \
--host=$TERMUX_HOST_PLATFORM --without-systemd \
--host=$TERMUX_HOST_PLATFORM
} }

View File

@ -15,7 +15,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_SHARED_MBEDTLS_LIBRARY=ON
-DENABLE_TESTING=OFF -DENABLE_TESTING=OFF
-DENABLE_PROGRAMS=OFF -DENABLE_PROGRAMS=OFF
" "
termux_step_post_get_source() { termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them # Do not forget to bump revision of reverse dependencies and rebuild them

View File

@ -11,9 +11,9 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-fuse --enable-docs-build"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() { termux_step_pre_configure() {
mkdir -p m4 mkdir -p m4
autoreconf -v --install autoreconf -v --install
sed -i -e 's/-V -qversion//' configure sed -i -e 's/-V -qversion//' configure
sed -i -e 's/GOBJECT_INTROSPECTION_CHECK/#GOBJECT_INTROSPECTION_CHECK/' configure sed -i -e 's/GOBJECT_INTROSPECTION_CHECK/#GOBJECT_INTROSPECTION_CHECK/' configure
} }

View File

@ -10,5 +10,5 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_DEPENDS="openssl" TERMUX_PKG_DEPENDS="openssl"
termux_step_pre_configure() { termux_step_pre_configure() {
rm -f Makefile rm -f Makefile
} }

View File

@ -11,8 +11,8 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-Dbuild_dir=$TERMUX_PKG_BUILDDIR"
TERMUX_PKG_GROUPS="games" TERMUX_PKG_GROUPS="games"
termux_step_create_debscripts() { termux_step_create_debscripts() {
# Create scores file in a debscript, so an update to the package wouldn't erease any scores # Create scores file in a debscript, so an update to the package wouldn't erease any scores
echo "mkdir -p $TERMUX_PREFIX/lib/games/moria/" > postinst echo "mkdir -p $TERMUX_PREFIX/lib/games/moria/" > postinst
echo "touch $TERMUX_PREFIX/lib/games/moria/scores.dat" >> postinst echo "touch $TERMUX_PREFIX/lib/games/moria/scores.dat" >> postinst
chmod 0755 postinst chmod 0755 postinst
} }

View File

@ -12,16 +12,16 @@ TERMUX_PKG_DEPENDS="libllvm, libtbb"
TERMUX_PKG_BLACKLISTED_ARCHES="aarch64, arm, i686" TERMUX_PKG_BLACKLISTED_ARCHES="aarch64, arm, i686"
termux_step_pre_configure() { termux_step_pre_configure() {
local ISPC_VERSION=1.18.0 local ISPC_VERSION=1.18.0
local ISPC_URL=https://github.com/ispc/ispc/releases/download/v$ISPC_VERSION/ispc-v$ISPC_VERSION-linux.tar.gz local ISPC_URL=https://github.com/ispc/ispc/releases/download/v$ISPC_VERSION/ispc-v$ISPC_VERSION-linux.tar.gz
local ISPC_TARFILE=$TERMUX_PKG_CACHEDIR/$(basename $ISPC_URL) local ISPC_TARFILE=$TERMUX_PKG_CACHEDIR/$(basename $ISPC_URL)
local ISPC_SHA256=6c379bb97962e9de7d24fd48b3f7e647dc42be898e9d187948220268c646b692 local ISPC_SHA256=6c379bb97962e9de7d24fd48b3f7e647dc42be898e9d187948220268c646b692
termux_download $ISPC_URL $ISPC_TARFILE $ISPC_SHA256 termux_download $ISPC_URL $ISPC_TARFILE $ISPC_SHA256
if [ ! -e "$TERMUX_PKG_CACHEDIR/.placeholder-ispc-v$ISPC_VERSION" ]; then if [ ! -e "$TERMUX_PKG_CACHEDIR/.placeholder-ispc-v$ISPC_VERSION" ]; then
rm -rf $TERMUX_PKG_CACHEDIR/ispc-v$ISPC_VERSION-linux rm -rf $TERMUX_PKG_CACHEDIR/ispc-v$ISPC_VERSION-linux
tar -xvf $ISPC_TARFILE -C $TERMUX_PKG_CACHEDIR tar -xvf $ISPC_TARFILE -C $TERMUX_PKG_CACHEDIR
touch "$TERMUX_PKG_CACHEDIR/.placeholder-ispc-v$ISPC_VERSION" touch "$TERMUX_PKG_CACHEDIR/.placeholder-ispc-v$ISPC_VERSION"
fi fi
export PATH="$TERMUX_PKG_CACHEDIR/ispc-v$ISPC_VERSION-linux/bin:$PATH" export PATH="$TERMUX_PKG_CACHEDIR/ispc-v$ISPC_VERSION-linux/bin:$PATH"
LDFLAGS+=" -llog" LDFLAGS+=" -llog"
} }

View File

@ -11,6 +11,6 @@ TERMUX_PKG_BUILD_DEPENDS="libao, ffmpeg, libgcrypt, libcurl, json-c"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_make_install(){ termux_step_post_make_install(){
#install useful script #install useful script
install -Dm755 "$TERMUX_PKG_SRCDIR"/contrib/headless_pianobar "$TERMUX_PREFIX"/bin/pianoctl install -Dm755 "$TERMUX_PKG_SRCDIR"/contrib/headless_pianobar "$TERMUX_PREFIX"/bin/pianoctl
} }

View File

@ -20,8 +20,8 @@ termux_step_make() {
_ARCH="x86" _ARCH="x86"
elif [ "$TERMUX_ARCH" = "x86_64" ]; then elif [ "$TERMUX_ARCH" = "x86_64" ]; then
_ARCH="amd64" _ARCH="amd64"
elif [ "$TERMUX_ARCH" = "arm" ]; then elif [ "$TERMUX_ARCH" = "arm" ]; then
_ARCH="armv7" _ARCH="armv7"
elif [ "$TERMUX_ARCH" = "aarch64" ]; then elif [ "$TERMUX_ARCH" = "aarch64" ]; then
_ARCH="armv8" _ARCH="armv8"
else else

View File

@ -8,10 +8,10 @@ TERMUX_PKG_SHA256=6313a4b3b0b53e899f4612701dbf4d4abd212b51f48a69461309d136338a40
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() { termux_step_pre_configure() {
termux_setup_golang termux_setup_golang
go mod init || : go mod init || :
go mod tidy go mod tidy
} }

View File

@ -12,6 +12,6 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make_install() { termux_step_make_install() {
install screenfetch-dev ${TERMUX_PREFIX}/bin/screenfetch install screenfetch-dev ${TERMUX_PREFIX}/bin/screenfetch
install screenfetch.1 ${TERMUX_PREFIX}/share/man/man1/ install screenfetch.1 ${TERMUX_PREFIX}/share/man/man1/
} }

View File

@ -11,8 +11,9 @@ TERMUX_PKG_DEPENDS="libusb, libplist"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() { termux_step_configure() {
./autogen.sh --prefix=$TERMUX_PREFIX \ ./autogen.sh \
--without-preflight \ --prefix=$TERMUX_PREFIX \
--without-systemd \ --without-preflight \
--host=$TERMUX_HOST_PLATFORM --without-systemd \
--host=$TERMUX_HOST_PLATFORM
} }

View File

@ -10,26 +10,26 @@ TERMUX_PKG_DEPENDS="zlib"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install() { termux_step_make_install() {
termux_setup_rust termux_setup_rust
cargo install \ cargo install \
--jobs $TERMUX_MAKE_PROCESSES \ --jobs $TERMUX_MAKE_PROCESSES \
--path cli \ --path cli \
--force \ --force \
--locked \ --locked \
--target $CARGO_TARGET_NAME \ --target $CARGO_TARGET_NAME \
--root $TERMUX_PREFIX \ --root $TERMUX_PREFIX \
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS $TERMUX_PKG_EXTRA_CONFIGURE_ARGS
# https://github.com/rust-lang/cargo/issues/3316: # https://github.com/rust-lang/cargo/issues/3316:
rm -f $TERMUX_PREFIX/.crates.toml rm -f $TERMUX_PREFIX/.crates.toml
rm -f $TERMUX_PREFIX/.crates2.json rm -f $TERMUX_PREFIX/.crates2.json
} }
termux_step_post_make_install() { termux_step_post_make_install() {
install -Dm644 -t "$TERMUX_PREFIX"/share/doc/watchexec/watchexec.1.html \ install -Dm644 -t "$TERMUX_PREFIX"/share/doc/watchexec/watchexec.1.html \
"$TERMUX_PKG_SRCDIR"/doc/watchexec.1.html "$TERMUX_PKG_SRCDIR"/doc/watchexec.1.html
install -Dm644 -t "$TERMUX_PREFIX"/share/man/man1/watchexec.1 \ install -Dm644 -t "$TERMUX_PREFIX"/share/man/man1/watchexec.1 \
"$TERMUX_PKG_SRCDIR"/doc/watchexec.1 "$TERMUX_PKG_SRCDIR"/doc/watchexec.1
install -Dm644 "completions/zsh" \ install -Dm644 "completions/zsh" \
"$TERMUX_PREFIX/share/zsh/site-functions/_watchexec" "$TERMUX_PREFIX/share/zsh/site-functions/_watchexec"
install -Dm644 LICENSE "$TERMUX_PREFIX/share/licenses/watchexec/LICENSE" install -Dm644 LICENSE "$TERMUX_PREFIX/share/licenses/watchexec/LICENSE"
} }

View File

@ -49,11 +49,11 @@ termux_step_pre_configure() {
cat configure.newf > configure cat configure.newf > configure
rm configure.newf rm configure.newf
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="
zsh_cv_off_t_is_64_bit=yes zsh_cv_off_t_is_64_bit=yes
" "
else else
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="
zsh_cv_64_bit_type=long zsh_cv_64_bit_type=long
" "
fi fi

View File

@ -15,7 +15,7 @@ termux_step_configure() {
mkdir -p "$GOPATH"/src/github.com/bettercap/ mkdir -p "$GOPATH"/src/github.com/bettercap/
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/bettercap/bettercap cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/bettercap/bettercap
go get github.com/bettercap/recording go get github.com/bettercap/recording
} }
termux_step_make() { termux_step_make() {

View File

@ -12,7 +12,7 @@ termux_step_make() {
export GOPATH=$TERMUX_PKG_BUILDDIR export GOPATH=$TERMUX_PKG_BUILDDIR
cd $TERMUX_PKG_SRCDIR cd $TERMUX_PKG_SRCDIR
mkdir bin/ mkdir bin/
if ! [ -z "$GOOS" ];then export GOOS=android;fi if ! [ -z "$GOOS" ];then export GOOS=android;fi
go build -o bin/docker-compose -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=${TERMUX_PKG_VERSION}" ./cmd go build -o bin/docker-compose -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=${TERMUX_PKG_VERSION}" ./cmd
} }

View File

@ -22,6 +22,6 @@ termux_step_pre_configure() {
termux_step_configure() { termux_step_configure() {
echo 'touch changelog' > git2log echo 'touch changelog' > git2log
LDFLAGS+=" -landroid-shmem" LDFLAGS+=" -landroid-shmem"
export HWINFO_VERSION="$TERMUX_PKG_VERSION" export HWINFO_VERSION="$TERMUX_PKG_VERSION"
export DESTDIR="$TERMUX_PREFIX" export DESTDIR="$TERMUX_PREFIX"
} }

View File

@ -23,5 +23,5 @@ termux_step_pre_configure() {
} }
termux_step_make() { termux_step_make() {
make -j2 static make -j2 static
} }

View File

@ -10,5 +10,5 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_DEPENDS="xorgproto, libx11, xorg-util-macros" TERMUX_PKG_DEPENDS="xorgproto, libx11, xorg-util-macros"
termux_step_pre_configure() { termux_step_pre_configure() {
NOCONFIGURE=1 ./autogen.sh NOCONFIGURE=1 ./autogen.sh
} }

View File

@ -9,10 +9,10 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_AUTO_UPDATE=true
termux_step_make() { termux_step_make() {
termux_setup_rust termux_setup_rust
cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
} }
termux_step_make_install() { termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/eww install -Dm700 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/eww
} }

View File

@ -44,7 +44,7 @@ termux_step_post_configure() {
termux_step_create_debscripts() { termux_step_create_debscripts() {
for i in postinst postrm triggers; do for i in postinst postrm triggers; do
sed \ sed \
"s|@TERMUX_PREFIX@|${TERMUX_PREFIX}|g" \ "s|@TERMUX_PREFIX@|${TERMUX_PREFIX}|g" \
"${TERMUX_PKG_BUILDER_DIR}/hooks/${i}.in" > ./${i} "${TERMUX_PKG_BUILDER_DIR}/hooks/${i}.in" > ./${i}
chmod 755 ./${i} chmod 755 ./${i}

View File

@ -11,7 +11,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gtk3"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure () { termux_step_configure () {
echo CC=$CC echo CC=$CC
export HOST=`$CC -dumpmachine` export HOST=`$CC -dumpmachine`
export BUILD=`$CC_FOR_BUILD -dumpmachine` export BUILD=`$CC_FOR_BUILD -dumpmachine`
export CFLAGS+=" -I${TERMUX_PREFIX}/include" export CFLAGS+=" -I${TERMUX_PREFIX}/include"
@ -20,21 +20,21 @@ termux_step_configure () {
mkdir -p netsurf/build/Linux-gtk3 mkdir -p netsurf/build/Linux-gtk3
# Note: NETSURF_USE_DUKTAPE= disables javascript, because I couldn't figure out how to build # Note: NETSURF_USE_DUKTAPE= disables javascript, because I couldn't figure out how to build
# required the nsgenbind tool so that it can be executed on the *host* (it is used during the build process only) # required the nsgenbind tool so that it can be executed on the *host* (it is used during the build process only)
make PREFIX="${TERMUX_PREFIX}" NETSURF_GTK_MAJOR=3 NETSURF_USE_DUKTAPE=NO NETSURF_USE_LIBICONV_PLUG=NO toolchain=clang make PREFIX="${TERMUX_PREFIX}" NETSURF_GTK_MAJOR=3 NETSURF_USE_DUKTAPE=NO NETSURF_USE_LIBICONV_PLUG=NO toolchain=clang
} }
termux_step_make() { termux_step_make() {
# Nothing to do # Nothing to do
echo CC=$CC echo CC=$CC
} }
termux_step_make_install () { termux_step_make_install () {
echo CC=$CC echo CC=$CC
export HOST=`$CC -dumpmachine` export HOST=`$CC -dumpmachine`
export BUILD=`$CC_FOR_BUILD -dumpmachine` export BUILD=`$CC_FOR_BUILD -dumpmachine`
export CFLAGS+=" -I${TERMUX_PREFIX}/include" export CFLAGS+=" -I${TERMUX_PREFIX}/include"
export CPPFLAGS+=" -I${TERMUX_PREFIX}/include" export CPPFLAGS+=" -I${TERMUX_PREFIX}/include"
export CXXFLAGS+=" -I${TERMUX_PREFIX}/include" export CXXFLAGS+=" -I${TERMUX_PREFIX}/include"
make install PREFIX="${TERMUX_PREFIX}" NETSURF_GTK_MAJOR=3 NETSURF_USE_DUKTAPE=NO NETSURF_USE_LIBICONV_PLUG=NO toolchain=clang make install PREFIX="${TERMUX_PREFIX}" NETSURF_GTK_MAJOR=3 NETSURF_USE_DUKTAPE=NO NETSURF_USE_LIBICONV_PLUG=NO toolchain=clang
ln -sfr $TERMUX_PREFIX/bin/netsurf-gtk3 $TERMUX_PREFIX/bin/netsurf ln -sfr $TERMUX_PREFIX/bin/netsurf-gtk3 $TERMUX_PREFIX/bin/netsurf
} }

View File

@ -12,23 +12,23 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_NO_STATICSPLIT=true TERMUX_PKG_NO_STATICSPLIT=true
termux_step_configure () { termux_step_configure () {
"${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \ "${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \
-spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross" -spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross"
} }
termux_step_make_install() { termux_step_make_install() {
make install make install
####################################################### #######################################################
## ##
## Fixes & cleanup. ## Fixes & cleanup.
## ##
####################################################### #######################################################
## Drop QMAKE_PRL_BUILD_DIR because reference the build dir. ## Drop QMAKE_PRL_BUILD_DIR because reference the build dir.
find "${TERMUX_PREFIX}/lib" -type f -name "libQt5Script*.prl" \ find "${TERMUX_PREFIX}/lib" -type f -name "libQt5Script*.prl" \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' "{}" \; -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' "{}" \;
## Remove *.la files. ## Remove *.la files.
find "${TERMUX_PREFIX}/lib" -iname \*.la -delete find "${TERMUX_PREFIX}/lib" -iname \*.la -delete
} }

View File

@ -12,7 +12,7 @@ TERMUX_PKG_BUILD_DEPENDS="git, qt5-qtbase-cross-tools, qt5-qtdeclarative-cross-t
TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_AUTO_UPDATE=true
termux_step_pre_configure() { termux_step_pre_configure() {
termux_setup_cmake termux_setup_cmake
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DLUA_MATH_LIBRARY=$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/$TERMUX_HOST_PLATFORM/$TERMUX_PKG_API_LEVEL/libm.so" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DLUA_MATH_LIBRARY=$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib/$TERMUX_HOST_PLATFORM/$TERMUX_PKG_API_LEVEL/libm.so"
} }