move from unstable repo: guile, guile18, surfraw
Everything has been uploaded to packages.termux.org manually. %ci:no-build
This commit is contained in:
parent
c7c4657631
commit
fd4456e49a
33
packages/guile/build.sh
Normal file
33
packages/guile/build.sh
Normal file
@ -0,0 +1,33 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/guile/
|
||||
TERMUX_PKG_DESCRIPTION="Portable, embeddable Scheme implementation written in C"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=2.2.7
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/guile/guile-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=44b4c5fbbe257ccdebea18420212c9b3e90c3c86a54920d8554039fc6769a007
|
||||
TERMUX_PKG_DEPENDS="libandroid-support, libffi, libgc, libgmp, libltdl, libunistring"
|
||||
TERMUX_PKG_BUILD_DEPENDS="libtool"
|
||||
TERMUX_PKG_BREAKS="guile-dev"
|
||||
TERMUX_PKG_REPLACES="guile-dev"
|
||||
TERMUX_PKG_CONFLICTS="guile18"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_type_complex_double=no ac_cv_search_clock_getcpuclockid=false ac_cv_func_GC_move_disappearing_link=yes ac_cv_func_GC_is_heap_ptr=yes"
|
||||
TERMUX_PKG_HOSTBUILD=true
|
||||
|
||||
termux_step_host_build() {
|
||||
mkdir HOSTBUILDINSTALL
|
||||
|
||||
../src/configure --prefix=$TERMUX_PKG_HOSTBUILD_DIR/HOSTBUILDINSTALL # CFLAGS="-m32" LDFLAGS=" -L/usr/lib/i386-linux-gnu" --host=i386-linux-gnu
|
||||
make -j $TERMUX_MAKE_PROCESSES
|
||||
make install
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
|
||||
export GUILE_FOR_BUILD="$TERMUX_PKG_HOSTBUILD_DIR"/HOSTBUILDINSTALL/bin/guile
|
||||
export LD_LIBRARY_PATH="$TERMUX_PKG_HOSTBUILD_DIR"/HOSTBUILDINSTALL/lib
|
||||
}
|
||||
|
||||
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
|
||||
}
|
48
packages/guile18/build.sh
Normal file
48
packages/guile18/build.sh
Normal file
@ -0,0 +1,48 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/guile/
|
||||
TERMUX_PKG_DESCRIPTION="Portable, embeddable Scheme implementation written in C. (legacy branch)"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.8.8
|
||||
TERMUX_PKG_REVISION=15
|
||||
TERMUX_PKG_SRCURL=ftp://ftp.gnu.org/pub/gnu/guile/guile-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050
|
||||
TERMUX_PKG_DEPENDS="libcrypt, libgmp, libltdl, ncurses, readline"
|
||||
TERMUX_PKG_BUILD_DEPENDS="libtool"
|
||||
TERMUX_PKG_BREAKS="guile18-dev"
|
||||
TERMUX_PKG_REPLACES="guile18-dev"
|
||||
TERMUX_PKG_CONFLICTS="guile"
|
||||
TERMUX_PKG_HOSTBUILD=true
|
||||
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--program-suffix=1.8
|
||||
--disable-error-on-warning"
|
||||
|
||||
termux_step_host_build() {
|
||||
mkdir HOSTBUILDINSTALL
|
||||
|
||||
../src/configure \
|
||||
--prefix="$TERMUX_PKG_HOSTBUILD_DIR"/HOSTBUILDINSTALL \
|
||||
--program-suffix=1.8 \
|
||||
--disable-error-on-warning
|
||||
|
||||
make -j "$TERMUX_MAKE_PROCESSES"
|
||||
make install
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
CFLAGS=${CFLAGS/Oz/Os}
|
||||
|
||||
if [ $TERMUX_ARCH = "i686" ]; then
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --without-threads"
|
||||
fi
|
||||
|
||||
export GUILE_FOR_BUILD="$TERMUX_PKG_HOSTBUILD_DIR"/HOSTBUILDINSTALL/bin/guile1.8
|
||||
export LD_LIBRARY_PATH="$TERMUX_PKG_HOSTBUILD_DIR"/HOSTBUILDINSTALL/lib
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
sed -i '1s/guile/guile1.8/' -i "$TERMUX_PREFIX"/bin/guile-config1.8
|
||||
mv -f \
|
||||
"$TERMUX_PREFIX"/share/aclocal/guile.m4 \
|
||||
"$TERMUX_PREFIX"/share/aclocal/guile18.m4
|
||||
}
|
70
packages/guile18/configure.patch
Normal file
70
packages/guile18/configure.patch
Normal file
@ -0,0 +1,70 @@
|
||||
diff -uNr guile-1.8.8/configure guile-1.8.8.mod/configure
|
||||
--- guile-1.8.8/configure 2010-12-13 21:29:32.000000000 +0200
|
||||
+++ guile-1.8.8.mod/configure 2019-02-05 17:02:45.956253956 +0200
|
||||
@@ -19794,66 +19794,9 @@
|
||||
|
||||
|
||||
|
||||
-## Check whether pthread_attr_getstack works for the main thread
|
||||
-
|
||||
if test "$with_threads" = pthreads; then
|
||||
-
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getstack works for the main thread" >&5
|
||||
-$as_echo_n "checking whether pthread_attr_getstack works for the main thread... " >&6; }
|
||||
-old_CFLAGS="$CFLAGS"
|
||||
-CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
|
||||
-if test "$cross_compiling" = yes; then :
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
-as_fn_error $? "cannot run test program while cross compiling
|
||||
-See \`config.log' for more details" "$LINENO" 5; }
|
||||
-else
|
||||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
-/* end confdefs.h. */
|
||||
-
|
||||
-#if HAVE_PTHREAD_ATTR_GETSTACK
|
||||
-#include <pthread.h>
|
||||
-
|
||||
-int main ()
|
||||
-{
|
||||
- pthread_attr_t attr;
|
||||
- void *start, *end;
|
||||
- size_t size;
|
||||
-
|
||||
- pthread_getattr_np (pthread_self (), &attr);
|
||||
- pthread_attr_getstack (&attr, &start, &size);
|
||||
- end = (char *)start + size;
|
||||
-
|
||||
- if ((void *)&attr < start || (void *)&attr >= end)
|
||||
- return 1;
|
||||
- else
|
||||
- return 0;
|
||||
-}
|
||||
-#else
|
||||
-int main ()
|
||||
-{
|
||||
- return 1;
|
||||
-}
|
||||
-#endif
|
||||
-
|
||||
-_ACEOF
|
||||
-if ac_fn_c_try_run "$LINENO"; then :
|
||||
- works=yes
|
||||
-
|
||||
$as_echo "#define PTHREAD_ATTR_GETSTACK_WORKS 1" >>confdefs.h
|
||||
-
|
||||
-else
|
||||
- works=no
|
||||
fi
|
||||
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
-fi
|
||||
-
|
||||
-CFLAGS="$old_CFLAGS"
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
|
||||
-$as_echo "$works" >&6; }
|
||||
-
|
||||
-fi # with_threads=pthreads
|
||||
|
||||
|
||||
## Cross building
|
14
packages/surfraw/build.sh
Normal file
14
packages/surfraw/build.sh
Normal file
@ -0,0 +1,14 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://gitlab.com/surfraw/Surfraw
|
||||
TERMUX_PKG_DESCRIPTION="Shell Users' Revolutionary Front Rage Against the Web"
|
||||
TERMUX_PKG_LICENSE="Public Domain"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=2.3.0
|
||||
TERMUX_PKG_REVISION=10
|
||||
TERMUX_PKG_SRCURL=https://gitlab.com/surfraw/Surfraw/-/archive/surfraw-${TERMUX_PKG_VERSION}/Surfraw-surfraw-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=b5e2b451a822ed437b165a5c81d8448570ee590db902fcd8174d6c51fcc4a16d
|
||||
TERMUX_PKG_DEPENDS="lynx, perl"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_pre_configure() {
|
||||
./prebuild
|
||||
}
|
Loading…
Reference in New Issue
Block a user