Add all x11-packages

This commit is contained in:
Maxython
2022-04-19 14:32:44 +03:00
parent 61674fb91c
commit cbe6c424db
804 changed files with 26211 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
TERMUX_PKG_HOMEPAGE=https://www.gnome.org
TERMUX_PKG_DESCRIPTION="GNOME standard icons"
TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=41.0
TERMUX_PKG_SRCURL=https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/archive/${TERMUX_PKG_VERSION}/adwaita-icon-theme-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=cea0e7039a5d328158a92074034e172584071897ee256e85bb8f104cc10d6df9
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_DEPENDS="hicolor-icon-theme"
TERMUX_PKG_RM_AFTER_INSTALL="share/icons/Adwaita/icon-theme.cache"
termux_step_pre_configure() {
autoreconf -fvi
}
termux_step_post_make_install() {
# fix location of adwaita-icon-theme.pc
if [ -f "${TERMUX_PREFIX}/share/pkgconfig/adwaita-icon-theme.pc" ]; then
mkdir -p "${TERMUX_PREFIX}/lib/pkgconfig"
mv -f "${TERMUX_PREFIX}/share/pkgconfig/adwaita-icon-theme.pc" "${TERMUX_PREFIX}/lib/pkgconfig/adwaita-icon-theme.pc"
fi
}

View File

@@ -0,0 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://github.com/FedoraQt/adwaita-qt
TERMUX_PKG_DESCRIPTION="A style to bend Qt applications to look like they belong into GNOME Shell"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=1.4.1
TERMUX_PKG_SRCURL="https://github.com/FedoraQt/adwaita-qt/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=834f2caaf031306b63b31ad6fec489482feda35e9aa260f205cbb976cde97b1d
TERMUX_PKG_DEPENDS="qt5-qtbase, qt5-qtx11extras, qt5-qtsvg"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"

View File

@@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://github.com/tsujan/Arqiver
TERMUX_PKG_DESCRIPTION="A simple Qt archiver manager based on libarchive"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=0.9.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/tsujan/Arqiver/releases/download/V${TERMUX_PKG_VERSION}/Arqiver-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=bf3b4be44524b4d6b4096846c304d381e6707681fbb1e69b2847f6876b950593
TERMUX_PKG_DEPENDS="hicolor-icon-theme, qt5-qtbase, qt5-qtsvg, qt5-qtx11extras, libarchive, bsdtar, zip"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"

View File

@@ -0,0 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://wiki.linuxfoundation.org/accessibility/atk/at-spi/at-spi_on_d-bus
TERMUX_PKG_DESCRIPTION="A GTK+ module that bridges ATK to D-Bus at-spi"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=2.38.0
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://gitlab.gnome.org/GNOME/at-spi2-atk.git
TERMUX_PKG_GIT_BRANCH=AT_SPI2_ATK_${TERMUX_PKG_VERSION//./_}
TERMUX_PKG_DEPENDS="dbus, glib, atk, libxtst"

View File

@@ -0,0 +1,12 @@
diff -uNr aterm-1.0.1/autoconf/Make.common.in aterm-1.0.1.mod/autoconf/Make.common.in
--- aterm-1.0.1/autoconf/Make.common.in 2005-05-26 19:44:49.000000000 +0300
+++ aterm-1.0.1.mod/autoconf/Make.common.in 2018-11-28 19:42:34.675482946 +0200
@@ -41,7 +41,7 @@
CP = @CP@
SED = @SED@
INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL@ -s -m 755
+INSTALL_PROGRAM = @INSTALL@ -m 755
INSTALL_DATA = @INSTALL@ -m 644
# Flags & libs

View File

@@ -0,0 +1,133 @@
diff -uNr aterm-1.0.1/src/command.c aterm-1.0.1.mod/src/command.c
--- aterm-1.0.1/src/command.c 2006-06-26 21:01:20.000000000 +0300
+++ aterm-1.0.1.mod/src/command.c 2018-11-28 19:42:34.678816349 +0200
@@ -425,45 +425,7 @@
void
privileges(int mode)
{
-#ifdef HAVE_SETEUID
- static uid_t euid;
- static gid_t egid;
-
- switch (mode) {
- case IGNORE:
- /*
- * change effective uid/gid - not real uid/gid - so we can switch
- * back to root later, as required
- */
- seteuid(getuid());
- setegid(getgid());
- break;
-
- case SAVE:
- euid = geteuid();
- egid = getegid();
- break;
-
- case RESTORE:
- seteuid(euid);
- setegid(egid);
- break;
- }
-#else
-# ifndef __CYGWIN32__
- switch (mode) {
- case IGNORE:
- setuid(getuid());
- setgid(getgid());
- break;
-
- case SAVE:
- break;
- case RESTORE:
- break;
- }
-# endif
-#endif
+// do nothing on Termux.
}
/*}}} */
@@ -552,20 +514,10 @@
{
int fd = -1;
-#if defined (__sgi)
- ptydev = ttydev = _getpty(&fd, O_RDWR | O_NDELAY, 0622, 0);
- if (ptydev == NULL)
- goto Failed;
-#elif defined (__svr4__) || defined(__CYGWIN32__) || defined(__lnx21__)
- {
extern char *ptsname();
/* open the STREAMS, clone device /dev/ptmx (master pty) */
-#ifdef HAVE_GETPT
- if ((fd = getpt()) < 0) {
-#else
if ((fd = open("/dev/ptmx", O_RDWR)) < 0) {
-#endif
goto Failed;
} else {
grantpt(fd); /* change slave permissions */
@@ -573,61 +525,6 @@
ptydev = ttydev = ptsname(fd); /* get slave's name */
goto Found;
}
- }
-#elif defined (_AIX)
- if ((fd = open("/dev/ptc", O_RDWR)) < 0)
- goto Failed;
- else
- ptydev = ttydev = ttyname(fd);
-#elif defined(ALL_NUMERIC_PTYS) /* SCO OSr5 */
- static char pty_name[] = "/dev/ptyp??\0\0\0";
- static char tty_name[] = "/dev/ttyp??\0\0\0";
- int len = strlen(tty_name);
- char *c1, *c2;
- int idx;
-
- ptydev = pty_name;
- ttydev = tty_name;
-
- for (idx = 0; idx < 256; idx++) {
- sprintf(ptydev, "%s%d", "/dev/ptyp", idx);
- sprintf(ttydev, "%s%d", "/dev/ttyp", idx);
-
- if (access(ttydev, F_OK) < 0) {
- idx = 256;
- break;
- }
- if ((fd = open(ptydev, O_RDWR)) >= 0) {
- if (access(ttydev, R_OK | W_OK) == 0)
- goto Found;
- close(fd);
- }
- }
- goto Failed;
-#else
- static char pty_name[] = "/dev/pty??";
- static char tty_name[] = "/dev/tty??";
- int len = strlen(tty_name);
- char *c1, *c2;
-
- ptydev = pty_name;
- ttydev = tty_name;
-
-# define PTYCHAR1 "pqrstuvwxyz"
-# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuvwxyz"
- for (c1 = PTYCHAR1; *c1; c1++) {
- ptydev[len - 2] = ttydev[len - 2] = *c1;
- for (c2 = PTYCHAR2; *c2; c2++) {
- ptydev[len - 1] = ttydev[len - 1] = *c2;
- if ((fd = open(ptydev, O_RDWR)) >= 0) {
- if (access(ttydev, R_OK | W_OK) == 0)
- goto Found;
- close(fd);
- }
- }
- }
- goto Failed;
-#endif
Found:
fcntl(fd, F_SETFL, O_NDELAY);

View File

@@ -0,0 +1,17 @@
diff -uNr aterm-1.0.1/src/feature.h aterm-1.0.1.mod/src/feature.h
--- aterm-1.0.1/src/feature.h 2005-12-06 19:08:44.000000000 +0200
+++ aterm-1.0.1.mod/src/feature.h 2018-11-28 19:48:54.161918612 +0200
@@ -342,10 +342,10 @@
"taipei16"
# define NFONT_LIST "8x16", "10x20", "12x24", "10x20", "8x16"
# else /* no Kanji or Big5 support */
-# define NFONTS 5
-# define FONT0_IDX 2
+# define NFONTS 4
+# define FONT0_IDX 0
# undef MFONT_LIST
-# define NFONT_LIST "7x14", "6x10", "6x13", "8x13", "9x15"
+# define NFONT_LIST "6x13", "7x14", "8x13", "9x15"
# endif
#endif

View File

@@ -0,0 +1,12 @@
diff -uNr aterm-1.0.1/src/rxvt.h aterm-1.0.1.mod/src/rxvt.h
--- aterm-1.0.1/src/rxvt.h 2006-02-17 23:35:37.000000000 +0200
+++ aterm-1.0.1.mod/src/rxvt.h 2018-11-28 19:42:34.682149753 +0200
@@ -564,7 +564,7 @@
# define OLD_WORD_SELECTION
#endif
-#define DEFAULT_SHELL "/bin/bash"
+#define DEFAULT_SHELL "@TERMUX_PREFIX@/bin/bash"
/* sort out conflicts in feature.h */
#ifdef KANJI

View File

@@ -0,0 +1,30 @@
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/aterm/
TERMUX_PKG_DESCRIPTION="An xterm replacement with transparency support"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0.1
TERMUX_PKG_REVISION=33
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/aterm/aterm-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=a161c3b2d9c7149130a41963899993af21eae92e8e362f4b5b3c7c4cb16760ce
TERMUX_PKG_DEPENDS="libice, libsm, libx11, libxext, xorg-fonts-75dpi | xorg-fonts-100dpi"
TERMUX_PKG_CONFLICTS="xterm"
TERMUX_PKG_REPLACES="xterm"
TERMUX_PKG_PROVIDES="xterm"
TERMUX_PKG_BUILD_DEPENDS="libxt"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-transparency=yes
--enable-background-image
--enable-fading
--enable-menubar
--enable-graphics
"
termux_step_post_make_install() {
cat <<- EOF > $TERMUX_PREFIX/bin/xterm
#!${TERMUX_PREFIX}/bin/sh
exec ${TERMUX_PREFIX}/bin/aterm +tr "\${@}"
EOF
chmod 700 $TERMUX_PREFIX/bin/xterm
}

12
x11-packages/atk/build.sh Normal file
View File

@@ -0,0 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://www.gtk.org
TERMUX_PKG_DESCRIPTION="The interface definitions of accessibility infrastructure"
TERMUX_PKG_LICENSE="LGPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
_MAJOR_VERSION=2.38
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.0
TERMUX_PKG_SRCURL=https://ftp.gnome.org/pub/gnome/sources/atk/${_MAJOR_VERSION}/atk-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=ac4de2a4ef4bd5665052952fe169657e65e895c5057dffb3c2a810f6191a0c36
TERMUX_PKG_DEPENDS="glib"
TERMUX_PKG_CONFLICTS="libatk"
TERMUX_PKG_REPLACES="libatk"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-Dintrospection=false"

View File

@@ -0,0 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://audacious-media-player.org
TERMUX_PKG_DESCRIPTION="Plugins for Audacious"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
TERMUX_PKG_VERSION=4.1
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://distfiles.audacious-media-player.org/audacious-plugins-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=dad6fc625055349d589e36e8e5c8ae7dfafcddfe96894806509696d82bb61d4c
TERMUX_PKG_DEPENDS="audacious, qt5-qtbase, qt5-qtmultimedia, qt5-qtx11extras, zlib, libflac, libcue, libcurl, mpg123, libogg, libsndfile, libsoxr, libvorbis, libxrender, libxcomposite, ffmpeg"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gtk --disable-wavpack --disable-qtglspectrum --disable-neon"

View File

@@ -0,0 +1,20 @@
--- a/src/ffaudio/ffaudio-core.cc
+++ b/src/ffaudio/ffaudio-core.cc
@@ -288,7 +288,7 @@
AVProbeData d = {name, buf, filled};
score = target;
- f = av_probe_input_format2 (& d, true, & score);
+ f = const_cast<AVInputFormat *> (av_probe_input_format2 (& d, true, & score));
if (f)
break;
@@ -361,7 +361,7 @@
#endif
if (stream && stream->codecpar && stream->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
{
- AVCodec * codec = avcodec_find_decoder (stream->codecpar->codec_id);
+ AVCodec * codec = const_cast<AVCodec *> (avcodec_find_decoder (stream->codecpar->codec_id));
if (codec)
{

View File

@@ -0,0 +1,16 @@
TERMUX_PKG_HOMEPAGE=https://audacious-media-player.org
TERMUX_PKG_DESCRIPTION="An advanced audio player"
TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
TERMUX_PKG_VERSION=4.1
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://distfiles.audacious-media-player.org/audacious-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=1f58858f9789e867c513b5272987f13bdfb09332b03c2814ad4c6e29f525e35c
TERMUX_PKG_DEPENDS="qt5-qtbase, dbus-glib"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools"
TERMUX_PKG_RECOMMENDS="audacious-plugins"
# Audacious out-of-source build doesn't seem to work
TERMUX_PKG_BUILD_IN_SRC=true
# Audacious has switched to Qt toolkit and it's the default GUI option now
# Disable GTK to reduce the size and dependencies
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-qt --disable-gtk"

View File

@@ -0,0 +1,22 @@
TERMUX_PKG_HOMEPAGE=https://github.com/Symbian9/azpainter
TERMUX_PKG_DESCRIPTION="Full color painting software for Unix-like systems for illustration drawing (unofficial)"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1:2.1.6
TERMUX_PKG_REVISION=14
TERMUX_PKG_SRCURL=https://github.com/Symbian9/azpainter/releases/download/v${TERMUX_PKG_VERSION:2}/azpainter-${TERMUX_PKG_VERSION:2}.tar.xz
TERMUX_PKG_SHA256=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
TERMUX_PKG_DEPENDS="fontconfig, hicolor-icon-theme, libandroid-shmem, libjpeg-turbo, libxfixes, libxi"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_RM_AFTER_INSTALL="
share/icons/hicolor/icon-theme.cache
"
termux_step_configure() {
sed -i "s/LDFLAGS :=/LDFLAGS +=/" Makefile.in
./configure --prefix="$TERMUX_PREFIX" \
CC="$CC" \
CFLAGS="$CFLAGS" \
LIBS="-landroid-shmem"
}

View File

@@ -0,0 +1,14 @@
diff -uNr azpainter-2.1.6/configure azpainter-2.1.6.mod/configure
--- azpainter-2.1.6/configure 2020-04-21 02:27:27.000000000 +0300
+++ azpainter-2.1.6.mod/configure 2020-04-27 17:23:13.316609232 +0300
@@ -245,10 +245,6 @@
fc_check_command_err $cf_make
-if test $cf_os = linux;then
- LIBS_ADD=`fc_add_string "$LIBS_ADD" "-lrt"`
-fi
-
#-------------
# compiler

View File

@@ -0,0 +1,20 @@
--- a/bochs.h
+++ b/bochs.h
@@ -530,7 +530,7 @@
*((Bit16u*)(hostPtr)) = (nativeVar16)
#define WriteHostDWordToLittleEndian(hostPtr, nativeVar32) \
*((Bit32u*)(hostPtr)) = (nativeVar32)
-#ifdef ANDROID
+#if defined ANDROID || (defined __ANDROID__ && defined __arm__)
// Resolve problems with unaligned access
#define WriteHostQWordToLittleEndian(hostPtr, nativeVar64) { \
((Bit8u *)(hostPtr))[0] = (Bit8u) (nativeVar64); \
@@ -550,7 +550,7 @@
(nativeVar16) = *((Bit16u*)(hostPtr))
#define ReadHostDWordFromLittleEndian(hostPtr, nativeVar32) \
(nativeVar32) = *((Bit32u*)(hostPtr))
-#ifdef ANDROID
+#if defined ANDROID || (defined __ANDROID__ && defined __arm__)
// Resolve problems with unaligned access
#define ReadHostQWordFromLittleEndian(hostPtr, nativeVar64) { \
(nativeVar64) = ((Bit64u) ((Bit8u *)(hostPtr))[0]) | \

View File

@@ -0,0 +1,29 @@
TERMUX_PKG_HOMEPAGE=http://bochs.sourceforge.net/
TERMUX_PKG_DESCRIPTION="Bochs is a highly portable open source IA-32 (x86) PC emulator and debugger written in C++."
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_VERSION=2.6.9
TERMUX_PKG_REVISION=24
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/bochs/bochs-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ee5b677fd9b1b9f484b5aeb4614f43df21993088c0c0571187f93acb0866e98c
TERMUX_PKG_DEPENDS="atk, fontconfig, freetype, gdk-pixbuf, glib, gtk2, libc++, libcairo, libgraphite, libx11, libxpm, libxrandr, ncurses, pango, readline"
TERMUX_PKG_BLACKLISTED_ARCHES="arm"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--without-wx
--with-x11
--with-x
--with-term
--disable-docbook
--enable-x86-64
--enable-smp
--enable-debugger
--enable-disasm
--enable-3dnow
--enable-avx
--enable-usb
--enable-usb-ehci
--enable-ne2000
--enable-e1000
--enable-clgd54xx
--enable-voodoo
"

View File

@@ -0,0 +1,11 @@
diff -uNr bochs-2.6.9/bx_debug/Makefile.in bochs-2.6.9.mod/bx_debug/Makefile.in
--- bochs-2.6.9/bx_debug/Makefile.in 2016-08-13 01:06:14.000000000 +0800
+++ bochs-2.6.9.mod/bx_debug/Makefile.in 2019-08-26 21:47:49.744442900 +0800
@@ -58,7 +58,7 @@
BX_INCLUDES = debug.h
-BX_INCDIRS = -I.. -I$(srcdir)/.. -I../@INSTRUMENT_DIR@ -I$(srcdir)/../@INSTRUMENT_DIR@ -I. -I$(srcdir)/.
+BX_INCDIRS = -I.. -I@TERMUX_PREFIX@/include -I$(srcdir)/.. -I../@INSTRUMENT_DIR@ -I$(srcdir)/../@INSTRUMENT_DIR@ -I. -I$(srcdir)/.
all: libdebug.a

View File

@@ -0,0 +1,70 @@
diff -uNr bochs-2.6.9/configure bochs-2.6.9.mod/configure
--- bochs-2.6.9/configure 2017-04-09 14:46:13.000000000 +0800
+++ bochs-2.6.9.mod/configure 2019-08-26 20:49:05.555477600 +0800
@@ -22636,66 +22636,9 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if readline works without -lcurses" >&5
$as_echo_n "checking if readline works without -lcurses... " >&6; }
- OLD_LIBS=$LIBS
- LIBS="$LIBS -lreadline"
- 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. */
-
- #include <stdio.h>
- #include <readline/readline.h>
- int main() { rl_initialize(); exit(0); }
-
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
rl_without_curses_ok=yes
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if readline works with -lcurses" >&5
-$as_echo_n "checking if readline works with -lcurses... " >&6; }
- LIBS="$LIBS -lcurses"
- 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. */
-
- #include <stdio.h>
- #include <readline/readline.h>
- int main() { rl_initialize(); exit(0); }
-
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- rl_with_curses_ok=yes
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
- LIBS=$OLD_LIBS
if test "$rl_without_curses_ok" = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5

View File

@@ -0,0 +1,47 @@
diff -uNr bochs-2.6.9/gui/term.cc bochs-2.6.9.mod/gui/term.cc
--- bochs-2.6.9/gui/term.cc 2017-01-15 19:44:43.000000000 +0800
+++ bochs-2.6.9.mod/gui/term.cc 2019-08-26 01:42:56.996929000 +0800
@@ -33,7 +33,11 @@
#include <signal.h>
};
-#define BX_DEBUGGER_TERM (BX_DEBUGGER && !defined(__OpenBSD__))
+#if BX_DEBUGGER && !defined(__OpenBSD__)
+#define BX_DEBUGGER_TERM 1
+#else
+#define BX_DEBUGGER_TERM 0
+#endif
class bx_term_gui_c : public bx_gui_c {
public:
@@ -180,20 +184,25 @@
if (!strcmp(SIM->get_param_string(BXPN_LOG_FILENAME)->getptr(), "-"))
BX_PANIC(("cannot log to stderr in term mode"));
#else
- FILE *old_stdin = stdin;
- FILE *old_stdout = stdout;
+ int old_stdin = dup(STDIN_FILENO);
+ int old_stdout = dup(STDOUT_FILENO);
scr_fd = open("/dev/ptmx",O_RDWR);
if(scr_fd > 0){
- stdin = stdout = fdopen(scr_fd,"wr");
grantpt(scr_fd);
unlockpt(scr_fd);
+ FILE * pty = fdopen(scr_fd,"wr");
+ int pts = fileno(pty);
+ dup2(pts,STDIN_FILENO);
+ dup2(pts,STDOUT_FILENO);
fprintf(stderr, "\nBochs connected to screen \"%s\"\n",ptsname(scr_fd));
}
#endif
initscr();
#if BX_DEBUGGER_TERM
- stdin = old_stdin;
- stdout = old_stdout;
+ dup2(old_stdin,STDIN_FILENO);
+ dup2(old_stdout,STDOUT_FILENO);
+ close(old_stdin);
+ close(old_stdout);
#endif
start_color();
cbreak();

View File

@@ -0,0 +1,12 @@
diff -uNr bochs-2.6.9/iodev/network/slirp/misc.cc bochs-2.6.9.mod/iodev/network/slirp/misc.cc
--- bochs-2.6.9/iodev/network/slirp/misc.cc 2016-12-14 04:22:28.000000000 +0800
+++ bochs-2.6.9.mod/iodev/network/slirp/misc.cc 2019-08-26 20:05:37.060533000 +0800
@@ -16,7 +16,7 @@
#include "libslirp.h"
#if BX_NETWORKING && BX_NETMOD_SLIRP
-
+#define ANDROID
#ifdef DEBUG
int slirp_debug = DBG_CALL|DBG_MISC|DBG_ERROR;
#endif

View File

@@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE="https://github.com/baskerville/bspwm"
TERMUX_PKG_DESCRIPTION="A tiling window manager based on binary space partitioning"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@leapofazzam123"
TERMUX_PKG_VERSION=0.9.10
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL="https://github.com/baskerville/bspwm/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256="0d0f5e465b9c27a5c2143c86189392fa297fad55253b9ed8f6854473d3928f8f"
TERMUX_PKG_DEPENDS="libx11, libxcb, libxkbcommon, sxhkd, xcb-util, xcb-util-cursor, xcb-util-keysyms, xcb-util-wm, xcb-util-xrm"
TERMUX_PKG_BUILD_IN_SRC=true

View File

@@ -0,0 +1,69 @@
diff -uNr bspwm-0.9.10/doc/bspwm.1 bspwm-0.9.10.mod/doc/bspwm.1
--- bspwm-0.9.10/doc/bspwm.1 2020-08-02 14:51:32.000000000 +0700
+++ bspwm-0.9.10.mod/doc/bspwm.1 2022-03-22 15:59:57.637000678 +0700
@@ -1606,7 +1606,7 @@
\fBbspc\fR
and
\fBbspwm\fR\&. If it isn\(cqt defined, then the following path is used:
-\fI/tmp/bspwm<host_name>_<display_number>_<screen_number>\-socket\fR\&.
+\fI@TERMUX_PREFIX@/tmp/bspwm<host_name>_<display_number>_<screen_number>\-socket\fR\&.
.RE
.SH "CONTRIBUTORS"
.sp
diff -uNr bspwm-0.9.10/doc/bspwm.1.asciidoc bspwm-0.9.10.mod/doc/bspwm.1.asciidoc
--- bspwm-0.9.10/doc/bspwm.1.asciidoc 2020-08-02 14:51:32.000000000 +0700
+++ bspwm-0.9.10.mod/doc/bspwm.1.asciidoc 2022-03-22 15:59:57.657000678 +0700
@@ -948,7 +948,7 @@
---------------------
'BSPWM_SOCKET'::
- The path of the socket used for the communication between *bspc* and *bspwm*. If it isn't defined, then the following path is used: '/tmp/bspwm<host_name>_<display_number>_<screen_number>-socket'.
+ The path of the socket used for the communication between *bspc* and *bspwm*. If it isn't defined, then the following path is used: '@TERMUX_PREFIX@/tmp/bspwm<host_name>_<display_number>_<screen_number>-socket'.
Contributors
------------
diff -uNr bspwm-0.9.10/examples/panel/profile bspwm-0.9.10.mod/examples/panel/profile
--- bspwm-0.9.10/examples/panel/profile 2020-08-02 14:51:32.000000000 +0700
+++ bspwm-0.9.10.mod/examples/panel/profile 2022-03-22 15:59:57.677000678 +0700
@@ -1,4 +1,4 @@
-PANEL_FIFO=/tmp/panel-fifo
+PANEL_FIFO=@TERMUX_PREFIX@/tmp/panel-fifo
PANEL_HEIGHT=24
PANEL_FONT="-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
PANEL_WM_NAME=bspwm_panel
diff -uNr bspwm-0.9.10/src/bspwm.h bspwm-0.9.10.mod/src/bspwm.h
--- bspwm-0.9.10/src/bspwm.h 2020-08-02 14:51:32.000000000 +0700
+++ bspwm-0.9.10.mod/src/bspwm.h 2022-03-22 15:59:57.697000678 +0700
@@ -32,7 +32,7 @@
#define CONFIG_HOME_ENV "XDG_CONFIG_HOME"
#define RUNTIME_DIR_ENV "XDG_RUNTIME_DIR"
-#define STATE_PATH_TPL "/tmp/bspwm%s_%i_%i-state"
+#define STATE_PATH_TPL "@TERMUX_PREFIX@/tmp/bspwm%s_%i_%i-state"
#define ROOT_EVENT_MASK (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY | XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_BUTTON_PRESS)
#define CLIENT_EVENT_MASK (XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_FOCUS_CHANGE)
diff -uNr bspwm-0.9.10/src/common.h bspwm-0.9.10.mod/src/common.h
--- bspwm-0.9.10/src/common.h 2020-08-02 14:51:32.000000000 +0700
+++ bspwm-0.9.10.mod/src/common.h 2022-03-22 15:59:57.729000678 +0700
@@ -25,7 +25,7 @@
#ifndef BSPWM_COMMON_H
#define BSPWM_COMMON_H
-#define SOCKET_PATH_TPL "/tmp/bspwm%s_%i_%i-socket"
+#define SOCKET_PATH_TPL "@TERMUX_PREFIX@/tmp/bspwm%s_%i_%i-socket"
#define SOCKET_ENV_VAR "BSPWM_SOCKET"
#define FAILURE_MESSAGE "\x07"
diff -uNr bspwm-0.9.10/src/helpers.c bspwm-0.9.10.mod/src/helpers.c
--- bspwm-0.9.10/src/helpers.c 2020-08-02 14:51:32.000000000 +0700
+++ bspwm-0.9.10.mod/src/helpers.c 2022-03-22 15:59:57.753000678 +0700
@@ -124,7 +124,7 @@
int tempfd;
char *runtime_dir = getenv(RUNTIME_DIR_ENV);
if (runtime_dir == NULL) {
- runtime_dir = "/tmp";
+ runtime_dir = "@TERMUX_PREFIX@/tmp";
}
char *fifo_path = malloc(strlen(runtime_dir)+1+strlen(template)+1);

View File

@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=http://glx-dock.org/
TERMUX_PKG_DESCRIPTION="Cairo-Dock is a simple and avanzed dock for linux desktop."
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=3.4.1
_COMMIT=6c569e67a2a366e7634224a0133ede51755629cb
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://github.com/Cairo-Dock/cairo-dock-core/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=e59e99147ce9c901b46d4b56b88bd53aeda34292b86fd9fbf2c55d158153f2ec
TERMUX_PKG_DEPENDS="atk, dbus-glib, glib, gtk3, pango, libcairo, libx11, xsltproc, libcurl, gdk-pixbuf, harfbuzz, mesa, glu, librsvg, libxcomposite, libwayland, libwayland-protocols, libxinerama, libxrandr, libxrender, libxtst, libxml2"
TERMUX_PKG_BUILD_DEPENDS="valac"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DFORCE_NOT_LIB64=yes"
TERMUX_CMAKE_BUILD="Unix Makefiles"

View File

@@ -0,0 +1,12 @@
diff -uNr cairo-dock-core-6c569e67a2a366e7634224a0133ede51755629cb/src/gldit/CMakeLists.txt cairo-dock-core-6c569e67a2a366e7634224a0133ede51755629cb.mod/src/gldit/CMakeLists.txt
--- cairo-dock-core-6c569e67a2a366e7634224a0133ede51755629cb/src/gldit/CMakeLists.txt 2021-03-27 06:23:53.000000000 +0200
+++ cairo-dock-core-6c569e67a2a366e7634224a0133ede51755629cb.mod/src/gldit/CMakeLists.txt 2021-12-05 11:40:06.757366142 +0200
@@ -122,8 +122,6 @@
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/gldi.pc.in ${CMAKE_CURRENT_BINARY_DIR}/gldi.pc)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/gldi.pc DESTINATION ${install-pc-path})
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/libgldi.so DESTINATION ${libdir})
-install (FILES ${CMAKE_CURRENT_BINARY_DIR}/libgldi.so.${VERSION} DESTINATION ${libdir})
-install (FILES ${CMAKE_CURRENT_BINARY_DIR}/libgldi.so.${SOVERSION} DESTINATION ${libdir})
########### install files ###############

View File

@@ -0,0 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://github.com/CDrummond/cantata
TERMUX_PKG_DESCRIPTION="Qt client for the music player daemon (MPD)"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=2.5.0
TERMUX_PKG_SRCURL=https://github.com/CDrummond/cantata/releases/download/v${TERMUX_PKG_VERSION}/cantata-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=eb7e00ab3f567afaa02ea2c86e2fe811a475afab93182b95922c6eb126821724
TERMUX_PKG_DEPENDS="qt5-qtbase, qt5-qtmultimedia, qt5-qtsvg, qt5-qtxmlpatterns, zlib, taglib, ffmpeg, mpg123, avahi, libcddb, libmusicbrainz, mpd"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"

View File

@@ -0,0 +1,26 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b99e161..5c8d0a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -554,7 +554,7 @@ if (UNIX AND NOT APPLE)
install(PROGRAMS ${CMAKE_BINARY_DIR}/cantata-remote DESTINATION ${SHARE_INSTALL_PREFIX}/${CMAKE_PROJECT_NAME}/scripts)
install(FILES cantata.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
endif ()
- target_link_libraries(cantata -lpthread)
+ target_link_libraries(cantata)
endif ()
configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
diff --git a/replaygain/CMakeLists.txt b/replaygain/CMakeLists.txt
index ae456ea..864066c 100644
--- a/replaygain/CMakeLists.txt
+++ b/replaygain/CMakeLists.txt
@@ -45,7 +45,7 @@ if (FFMPEG_FOUND OR MPG123_FOUND)
endif ()
target_link_libraries(cantata-replaygain ${QTCORELIBS})
if (UNIX AND NOT APPLE)
- target_link_libraries(cantata-replaygain -lpthread)
+ target_link_libraries(cantata-replaygain)
endif ()
endif ()

View File

@@ -0,0 +1,17 @@
diff --git a/3rdparty/solid-lite/managerbase.cpp b/3rdparty/solid-lite/managerbase.cpp
index 001af38..5161fb0 100644
--- a/3rdparty/solid-lite/managerbase.cpp
+++ b/3rdparty/solid-lite/managerbase.cpp
@@ -87,11 +87,7 @@ void Solid::ManagerBasePrivate::loadBackends()
# if defined(UDEV_FOUND)
m_backends << new Solid::Backends::UDev::UDevManager(nullptr);
# endif
-# if defined(WITH_SOLID_UDISKS2)
- m_backends << new Solid::Backends::UDisks2::Manager(nullptr)
-# else
- m_backends << new Solid::Backends::UDisks::UDisksManager(0)
-# endif
+
/*<< new Solid::Backends::UPower::UPowerManager(0)
<< new Solid::Backends::Fstab::FstabManager(0)*/;
}

View File

@@ -0,0 +1,109 @@
diff --git a/3rdparty/solid-lite/backends/hal/halfstabhandling.cpp b/3rdparty/solid-lite/backends/hal/halfstabhandling.cpp
index 535343f..1ae444d 100644
--- a/3rdparty/solid-lite/backends/hal/halfstabhandling.cpp
+++ b/3rdparty/solid-lite/backends/hal/halfstabhandling.cpp
@@ -36,9 +36,9 @@
#endif
#ifdef Q_OS_SOLARIS
-#define FSTAB "/etc/vfstab"
+#define FSTAB "@TERMUX_PREFIX@/etc/vfstab"
#else
-#define FSTAB "/etc/fstab"
+#define FSTAB "@TERMUX_PREFIX@/etc/fstab"
#endif
typedef QMultiHash<QString, QString> QStringMultiHash;
@@ -167,7 +167,7 @@ QProcess *Solid::Backends::Hal::FstabHandling::callSystemCommand(const QString &
QObject *obj, const char *slot)
{
QStringList env = QProcess::systemEnvironment();
- env.replaceInStrings(QRegExp("^PATH=(.*)", Qt::CaseInsensitive), "PATH=/sbin:/bin:/usr/sbin/:/usr/bin");
+ env.replaceInStrings(QRegExp("^PATH=(.*)", Qt::CaseInsensitive), "PATH=@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/local/bin");
QProcess *process = new QProcess(obj);
diff --git a/3rdparty/solid-lite/xdgbasedirs.cpp b/3rdparty/solid-lite/xdgbasedirs.cpp
index d6ba5a0..3bae748 100644
--- a/3rdparty/solid-lite/xdgbasedirs.cpp
+++ b/3rdparty/solid-lite/xdgbasedirs.cpp
@@ -70,12 +70,12 @@ QStringList Solid::XdgBaseDirs::systemPathList( const char *resource )
{
if ( qstrncmp( "data", resource, 4 ) == 0 ) {
if ( instance()->mDataDirs.isEmpty() ) {
- instance()->mDataDirs = instance()->systemPathList( "XDG_DATA_DIRS", "/usr/local/share:/usr/share" );
+ instance()->mDataDirs = instance()->systemPathList( "XDG_DATA_DIRS", "@TERMUX_PREFIX@/local/share:@TERMUX_PREFIX@/share" );
}
return instance()->mDataDirs;
} else if ( qstrncmp( "config", resource, 6 ) == 0 ) {
if ( instance()->mConfigDirs.isEmpty() ) {
- instance()->mConfigDirs = instance()->systemPathList( "XDG_CONFIG_DIRS", "/etc/xdg" );
+ instance()->mConfigDirs = instance()->systemPathList( "XDG_CONFIG_DIRS", "@TERMUX_PREFIX@/etc/xdg" );
}
return instance()->mConfigDirs;
}
diff --git a/gui/settings.cpp b/gui/settings.cpp
index 5c77961..82906ee 100644
--- a/gui/settings.cpp
+++ b/gui/settings.cpp
@@ -39,7 +39,7 @@ struct MpdDefaults
{
MpdDefaults()
: host("localhost")
- , dir("/var/lib/mpd/music/")
+ , dir("@TERMUX_PREFIX@/var/lib/mpd/music/")
, port(6600) {
}
@@ -58,7 +58,7 @@ struct MpdDefaults
};
void read() {
- QFile f("/etc/mpd.conf");
+ QFile f("@TERMUX_PREFIX@/etc/mpd.conf");
if (f.open(QIODevice::ReadOnly|QIODevice::Text)) {
int details=0;
diff --git a/playlists/cantata-dynamic b/playlists/cantata-dynamic
index 110f65a..800bb46 100755
--- a/playlists/cantata-dynamic
+++ b/playlists/cantata-dynamic
@@ -1071,8 +1071,8 @@ sub stop() {
# #####################################
# SERVER MODE
# #####################################
-$filesDir="/var/lib/mpd/dynamic";
-$pidFile="/var/run/cantata-dynamic/pid";
+$filesDir="@TERMUX_PREFIX@/var/lib/mpd/dynamic";
+$pidFile="@TERMUX_PREFIX@/var/run/cantata-dynamic/pid";
sub encodeString() {
my $str=shift;
@@ -1098,10 +1098,10 @@ sub decodeString() {
sub loadConfig() {
my $config=shift;
if (!$config || ($config=~ m/^(default)/)) {
- $config="/etc/cantata-dynamic.conf";
+ $config="@TERMUX_PREFIX@/etc/cantata-dynamic.conf";
}
open(my $fileHandle, $config) || die "ERROR: Failed to load config $config - $!\n";
- $activeFile="/var/run/cantata-dynamic/rules";
+ $activeFile="@TERMUX_PREFIX@/var/run/cantata-dynamic/rules";
if (tell($fileHandle) != -1) {
my @lines = <$fileHandle>; # Read into an array...
close($fileHandle);
diff --git a/playlists/cantata-dynamic.service b/playlists/cantata-dynamic.service
index 53ebc41..1a91512 100755
--- a/playlists/cantata-dynamic.service
+++ b/playlists/cantata-dynamic.service
@@ -7,8 +7,8 @@ After=mpd.service
User=mpd
Group=audio
Type=forking
-ExecStart=/usr/share/cantata/scripts/cantata-dynamic server /etc/cantata-dynamic.conf
-ExecStop=/usr/share/cantata/scripts/cantata-dynamic stopserver /etc/cantata-dynamic.conf
+ExecStart=@TERMUX_PREFIX@/share/cantata/scripts/cantata-dynamic server @TERMUX_PREFIX@/etc/cantata-dynamic.conf
+ExecStop=@TERMUX_PREFIX@/share/cantata/scripts/cantata-dynamic stopserver @TERMUX_PREFIX@/etc/cantata-dynamic.conf
RuntimeDirectory=cantata-dynamic
PIDFile=/run/cantata-dynamic/pid

View File

@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=https://www.chocolate-doom.org
TERMUX_PKG_DESCRIPTION="Historically-accurate Doom, Heretic, Hexen, and Strife ports."
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@wmcbtech30"
TERMUX_PKG_VERSION=3.0.1
TERMUX_PKG_REVISION=10
TERMUX_PKG_SRCURL=https://github.com/chocolate-doom/chocolate-doom/archive/refs/tags/chocolate-doom-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=a54383beef6a52babc5b00d58fcf53a454f012ced7b1936ba359b13f1f10ac66
TERMUX_PKG_DEPENDS="sdl2, sdl2-mixer, sdl2-net, mpg123"
termux_step_pre_configure(){
autoreconf -fi
CFLAGS+=" -fcommon"
}

View File

@@ -0,0 +1,24 @@
diff -uNr chocolate-doom-chocolate-doom-3.0.1/src/m_misc.c chocolate-doom-chocolate-doom-3.0.1.mod/src/m_misc.c
--- ./src/m_misc.c 2020-06-25 11:16:34.000000000 +0800
+++ ./src/m_misc.c 2021-05-09 17:19:02.830000000 +0800
@@ -250,7 +250,7 @@
#else
// In Unix, just use /tmp.
- tempdir = "/tmp";
+ tempdir = "@TERMUX_PREFIX@/tmp";
#endif
return M_StringJoin(tempdir, DIR_SEPARATOR_S, s, NULL);
diff -uNr chocolate-doom-chocolate-doom-3.0.1/src/setup/execute.c chocolate-doom-chocolate-doom-3.0.1.mod/src/setup/execute.c
--- ./src/setup/execute.c 2020-06-25 11:16:34.000000000 +0800
+++ ./src/setup/execute.c 2021-05-09 17:19:37.700000000 +0800
@@ -69,7 +69,7 @@
#else
// In Unix, just use /tmp.
- tempdir = "/tmp";
+ tempdir = "@TERMUX_PREFIX@/tmp";
#endif
return M_StringJoin(tempdir, DIR_SEPARATOR_S, s, NULL);

View File

@@ -0,0 +1,18 @@
TERMUX_PKG_HOMEPAGE=https://pi4.informatik.uni-mannheim.de/~haensel/cuse/
TERMUX_PKG_DESCRIPTION="A MIDI-Sequencer which targets both terminal purists and visually impaired people"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.6
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/cuse/cuse-${TERMUX_PKG_VERSION}.tgz
TERMUX_PKG_SHA256=dc2306c68eeb0eefb2da4739cf42bf3bf49fde3adba6ca58900fb3f78d4f9ad6
TERMUX_PKG_DEPENDS="libc++, libcdk, sdl-mixer"
termux_step_post_get_source() {
make distclean || :
}
termux_step_pre_configure() {
autoreconf -fi
LDFLAGS+=" -lSDL"
}

View File

@@ -0,0 +1,12 @@
--- a/configure.ac
+++ b/configure.ac
@@ -25,8 +25,7 @@
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([netinet/in.h stdint.h stdlib.h sys/time.h])
-CPPFLAGS="$CPPFLAGS -I/usr/include/cdk"
-AC_CHECK_HEADERS([cdk/cdk.h],,[
+AC_CHECK_HEADERS([cdk.h],,[
echo 'cdk version >= 5.0 and includes (developer-version) required'
exit 1
])

View File

@@ -0,0 +1,20 @@
--- a/src/CuSE.cxx
+++ b/src/CuSE.cxx
@@ -56,7 +56,7 @@
#include <pthread.h>
#include <curses.h>
#include <math.h>
-#include <cdk/cdk.h>
+#include <cdk.h>
#include <netinet/in.h>
#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>
@@ -79,7 +79,7 @@
/* GUI-Components */
Track *p_first_displayed_track, *p_last_displayed_track;
-static char *menulist[MAX_MENU_ITEMS][MAX_SUB_ITEMS];
+static const char *menulist[MAX_MENU_ITEMS][MAX_SUB_ITEMS];
char status_text[LENGTH_DISPLAY_TEXT];
bool display_top_line, popup_active;
short cursor_column; // current cursor column in track display

View File

@@ -0,0 +1,11 @@
--- a/src/sequencer.h
+++ b/src/sequencer.h
@@ -9,7 +9,7 @@
#include <pthread.h>
#include <curses.h>
#include <math.h>
-#include <cdk/cdk.h>
+#include <cdk.h>
#include <netinet/in.h>
#include "midi_event.h"

View File

@@ -0,0 +1,24 @@
TERMUX_PKG_HOMEPAGE=https://dbus.freedesktop.org
TERMUX_PKG_DESCRIPTION="GLib bindings for DBUS"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.112
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL="https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=7d550dccdfcd286e33895501829ed971eeb65c614e73aadb4a08aeef719b143a
TERMUX_PKG_DEPENDS="dbus, glib"
TERMUX_PKG_BREAKS="dbus-glib-dev"
TERMUX_PKG_REPLACES="dbus-glib-dev"
TERMUX_PKG_HOSTBUILD=true
termux_step_host_build() {
(cd $TERMUX_PKG_SRCDIR && autoconf -i)
$TERMUX_PKG_SRCDIR/configure
make -j $TERMUX_MAKE_PROCESSES
}
termux_step_pre_configure() {
export GLIB_GENMARSHAL=glib-genmarshal
autoconf -i
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-dbus-binding-tool=$TERMUX_PKG_HOSTBUILD_DIR/dbus/dbus-binding-tool"
}

View File

@@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://wiki.gnome.org/Projects/dconf
TERMUX_PKG_DESCRIPTION="dconf is a simple key/value storage system that is heavily optimised for reading"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_VERSION=0.40.0
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://gitlab.gnome.org/GNOME/dconf.git
TERMUX_PKG_GIT_BRANCH=$TERMUX_PKG_VERSION
TERMUX_PKG_DEPENDS="dbus, glib-bin"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="-Dbash_completion=false -Dvapi=false"

View File

@@ -0,0 +1,22 @@
TERMUX_PKG_HOMEPAGE=https://github.com/ThiBsc/debpac
TERMUX_PKG_DESCRIPTION="A Debian package creator assistant"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <yisus7u7v@gmail.com>"
TERMUX_PKG_VERSION=1.7
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL="https://github.com/ThiBsc/debpac/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=402f9dfcc739fb64666832f1a0d5b47295c900a22232150af4cc069b420515c9
TERMUX_PKG_DEPENDS="qt5-qtbase, qt5-qtsvg"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure () {
"${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \
-spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross" \
PREFIX="${TERMUX_PREFIX}"
}
termux_step_make_install () {
cd ${TERMUX_PKG_SRCDIR}
install -Dm700 -t ${TERMUX_PREFIX}/bin ./debpac
}

View File

@@ -0,0 +1,13 @@
diff --git a/debpac.pro b/debpac.pro
index 96c2353..dac466c 100644
--- a/debpac.pro
+++ b/debpac.pro
@@ -5,7 +5,7 @@
#-------------------------------------------------
QT += core gui
-
+DEFINES += USE_TERMUX_PATH
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QMAKE_CXXFLAGS += -std=c++11

View File

@@ -0,0 +1,20 @@
TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/desktop-file-utils
TERMUX_PKG_DESCRIPTION="Command line utilities for working with desktop entries"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.26
TERMUX_PKG_REVISION=7
TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=b26dbde79ea72c8c84fb7f9d870ffd857381d049a86d25e0038c4cef4c747309
TERMUX_PKG_DEPENDS="glib"
termux_step_create_debscripts() {
for i in postinst postrm triggers; do
sed \
"s|@TERMUX_PREFIX@|${TERMUX_PREFIX}|g" \
"${TERMUX_PKG_BUILDER_DIR}/hooks/${i}.in" > ./${i}
chmod 755 ./${i}
done
unset i
chmod 644 ./triggers
}

View File

@@ -0,0 +1,7 @@
#!@TERMUX_PREFIX@/bin/sh
if [ -d "@TERMUX_PREFIX@/share/applications" ]; then
update-desktop-database -q
fi
exit 0

View File

@@ -0,0 +1,10 @@
#!@TERMUX_PREFIX@/bin/sh
if [ "${1}" = "remove" ]; then
if [ -d "@TERMUX_PREFIX@/share/applications" ]; then
rm -f "@TERMUX_PREFIX@/share/applications/mimeinfo.cache"
rmdir --ignore-fail-on-non-empty "@TERMUX_PREFIX@/share/applications"
fi
fi
exit 0

View File

@@ -0,0 +1 @@
interest-noawait @TERMUX_PREFIX@/share/applications

View File

@@ -0,0 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://wiki.gnome.org/Projects/DevilsPie
TERMUX_PKG_DESCRIPTION="Utility for matching X11 windows and performing actions on them"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Rafael Kitover <rkitover@gmail.com>"
TERMUX_PKG_VERSION=0.23
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=http://deb.debian.org/debian/pool/main/d/devilspie/devilspie_${TERMUX_PKG_VERSION}.orig.tar.xz
TERMUX_PKG_SHA256=2dd9d4b7424ac999f20c214b0ff71e8c5836d97003d7a8a7391105cd16d36deb
TERMUX_PKG_DEPENDS="libx11, gettext, glib, gtk3, libwnck"

View File

@@ -0,0 +1,25 @@
Author: Andreas Rönnquist
Description: Fixes lintian warnings on the manpage, already fixed
in upstream git, but not in time for version 0.23.
Index: devilspie-0.23/devilspie.1
===================================================================
--- devilspie-0.23.orig/devilspie.1 2012-10-01 11:30:43.000000000 +0200
+++ devilspie-0.23/devilspie.1 2012-10-26 20:05:09.628490721 +0200
@@ -31,7 +31,7 @@
.SH "ALLOWED SYMBOLS"
In the input files, the following symbols are known by \fIdevilspie\fR:
-."SYMBOL HELP BEGINS HERE
+.\"SYMBOL HELP BEGINS HERE
.TP
\fBis\fR
String equality, (is a b) means a is the same as b.
@@ -164,7 +164,7 @@
.TP
\fBspawn_sync\fR
Execute a command in the foreground (returns command output as string, or FALSE on error). Command is given as a single string, or as a series of strings (similar to execl).
-."SYMBOL HELP ENDS HERE
+.\"SYMBOL HELP ENDS HERE
.SH BUGS
This manpage is almost useless, as it was thrown together on a train.

View File

@@ -0,0 +1,28 @@
Author: Andreas Rönnquist <gusnan@gusnan.se>
Description: Fix my_wnck_get_viewport memleak
Fixes a memleak in the my_wnck_get_viewport_start function where the result
from my_wnck_get_cardinal_list wasn't freed correctly. It is already fixed
in upstream git repository, but not in a release yet - See
https://git.gnome.org/browse/devilspie/commit/?id=6b1af1227658ac333bfab407e02f3de6452d6de1
--- a/src/xutils.c
+++ b/src/xutils.c
@@ -286,13 +286,14 @@
{
gulong *list;
int len;
+ int result = -1;
my_wnck_get_cardinal_list (RootWindowOfScreen (my_wnck_window_get_xscreen (win)),
my_wnck_atom_get ("_NET_DESKTOP_VIEWPORT"), &list, &len);
- if (len > 0) {
- return list[0];
- } else {
- return -1;
- }
+ if (len > 0) result=list[0];
+
+ g_free(list);
+
+ return result;
}

View File

@@ -0,0 +1,26 @@
Author: Andreas Rönnquist <gusnan@gusnan.se>
Description: Do not use depreceated libwnck function wnck_class_group_get_res_class
This patch makes the source use the wnck_class_group_get_id function instead
of the deprecated wnck_class_group_res_class
--- a/src/actions.c
+++ b/src/actions.c
@@ -43,7 +43,7 @@
g_print(_("Window Title: '%s'; Application Name: '%s'; Class: '%s'; Geometry: %dx%d+%d+%d\n"),
wnck_window_get_name (c->window),
wnck_application_get_name (wnck_window_get_application (c->window)),
- wnck_class_group_get_res_class (wnck_window_get_class_group (c->window)),
+ wnck_class_group_get_id (wnck_window_get_class_group (c->window)),
width, height, xoffset, yoffset);
return e_sexp_result_new_bool (f, TRUE);
--- a/src/matchers.c
+++ b/src/matchers.c
@@ -71,7 +71,7 @@
ESExpResult *func_window_class(ESExp *f, int argc, ESExpResult **argv, Context *c) {
ESExpResult *r;
r = e_sexp_result_new(f, ESEXP_RES_STRING);
- r->value.string = g_strdup (wnck_class_group_get_res_class (wnck_window_get_class_group (c->window)));
+ r->value.string = g_strdup (wnck_class_group_get_id (wnck_window_get_class_group (c->window)));
if (r->value.string == NULL) r->value.string = g_strdup("");
return r;
}

View File

@@ -0,0 +1,18 @@
Author: Andreas Rönnquist <gusnan@gusnan.se>
Description: Remove unavailable options from the manual page
Removes options in the manual page that isn't available in the program.
--- a/devilspie.1
+++ b/devilspie.1
@@ -22,12 +22,6 @@
.TP
\fB\-d\fR \fB\-\-debug\fR
Output debug information
-.TP
-\fB\-l\fR \fB\-\-list\-symbols\fR
-List available symbols supported in input files.
-.TP
-\fB\-s\fR \fIsymname\fR \fB\-\-symbol\-doc\fR=\fIsymname\fR
- Get detailed help on symbol \fIsymname\fR ('all' for all symbols).
.SH "ALLOWED SYMBOLS"
In the input files, the following symbols are known by \fIdevilspie\fR:

View File

@@ -0,0 +1,11 @@
TERMUX_PKG_HOMEPAGE=https://tools.suckless.org/dmenu/
TERMUX_PKG_DESCRIPTION="Generic menu for X"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=5.0
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://dl.suckless.org/tools/dmenu-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=fe18e142c4dbcf71ba5757dbbdea93b1c67d58fc206fc116664f4336deef6ed3
TERMUX_PKG_DEPENDS="dash, freetype, libxinerama, libx11, libxft"
TERMUX_PKG_BUILD_DEPENDS="xorgproto"
TERMUX_PKG_BUILD_IN_SRC=true

View File

@@ -0,0 +1,37 @@
diff -uNr dmenu-4.9/config.mk dmenu-4.9.mod/config.mk
--- dmenu-4.9/config.mk 2019-02-02 14:55:02.000000000 +0200
+++ dmenu-4.9.mod/config.mk 2020-01-04 23:50:39.788733241 +0200
@@ -2,11 +2,11 @@
VERSION = 4.9
# paths
-PREFIX = /usr/local
+PREFIX ?= /usr/local
MANPREFIX = $(PREFIX)/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = $(PREFIX)/include
+X11LIB = $(PREFIX)/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
@@ -14,7 +14,7 @@
# freetype
FREETYPELIBS = -lfontconfig -lXft
-FREETYPEINC = /usr/include/freetype2
+FREETYPEINC = $(PREFIX)/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = $(X11INC)/freetype2
@@ -25,7 +25,7 @@
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS)
CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS)
-LDFLAGS = $(LIBS)
+LDFLAGS = -Wl,-rpath=@TERMUX_PREFIX@/lib,--enable-new-dtags $(LIBS)
# compiler and linker
-CC = cc
+CC ?= cc

View File

@@ -0,0 +1,17 @@
diff -uNr dmenu-4.9/dmenu_path dmenu-4.9.mod/dmenu_path
--- dmenu-4.9/dmenu_path 2019-02-02 14:55:02.000000000 +0200
+++ dmenu-4.9.mod/dmenu_path 2019-05-26 22:35:29.830530754 +0300
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@TERMUX_PREFIX@/bin/sh
cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
cache="$cachedir/dmenu_run"
diff -uNr dmenu-4.9/dmenu_run dmenu-4.9.mod/dmenu_run
--- dmenu-4.9/dmenu_run 2019-02-02 14:55:02.000000000 +0200
+++ dmenu-4.9.mod/dmenu_run 2019-05-26 22:35:06.966366935 +0300
@@ -1,2 +1,2 @@
-#!/bin/sh
-dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
+#!@TERMUX_PREFIX@/bin/sh
+dmenu_path | dmenu "$@" | ${SHELL:-"@TERMUX_PREFIX@/bin/sh"} &

View File

@@ -0,0 +1,15 @@
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/dosbox/
TERMUX_PKG_DESCRIPTION="Emulator with builtin DOS for running DOS Games"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.74.3
TERMUX_PKG_REVISION=19
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/dosbox/dosbox-${TERMUX_PKG_VERSION/.3/-3}.tar.gz
TERMUX_PKG_SHA256=c0d13dd7ed2ed363b68de615475781e891cd582e8162b5c3669137502222260a
TERMUX_PKG_DEPENDS="libc++, libpng, libx11, sdl, sdl-net, zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-dynamic-x86
--disable-fpu-x86
--disable-opengl
"

13
x11-packages/dwm/build.sh Normal file
View File

@@ -0,0 +1,13 @@
TERMUX_PKG_HOMEPAGE=https://dwm.suckless.org/
TERMUX_PKG_DESCRIPTION="A dynamic window manager for X"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Tristan Ross <spaceboyross@yandex.com>"
TERMUX_PKG_VERSION=6.3
TERMUX_PKG_SRCURL="http://dl.suckless.org/dwm/dwm-$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=badaa028529b1fba1fd7f9a84f3b64f31190466c858011b53e2f7b70c6a3078d
TERMUX_PKG_DEPENDS="libx11, libxinerama, libxft, freetype, st, dmenu"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() {
cp "$TERMUX_PKG_BUILDER_DIR/config.h" "config.h"
}

116
x11-packages/dwm/config.h Normal file
View File

@@ -0,0 +1,116 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
[SchemeSel] = { col_gray4, col_cyan, col_cyan },
};
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "@TERMUX_PREFIX@/bin/sh", "-c", cmd, NULL } }
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
};
/* button definitions */
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};

View File

@@ -0,0 +1,45 @@
--- a/config.mk
+++ b/config.mk
@@ -4,11 +4,11 @@
# Customize below to fit your system
# paths
-PREFIX = /usr/local
+PREFIX = @TERMUX_PREFIX@
MANPREFIX = ${PREFIX}/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = @TERMUX_PREFIX@/include
+X11LIB = @TERMUX_PREFIX@/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
@@ -16,7 +16,7 @@
# freetype
FREETYPELIBS = -lfontconfig -lXft
-FREETYPEINC = /usr/include/freetype2
+FREETYPEINC = @TERMUX_PREFIX@/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
@@ -25,14 +25,14 @@
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CPPFLAGS += -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = ${LIBS}
+CFLAGS += -std=c99 -pedantic -Wall -Wno-deprecated-declarations ${INCS} ${CPPFLAGS}
+LDFLAGS += ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
# compiler and linker
-CC = cc
+CC ?= cc

View File

@@ -0,0 +1,11 @@
--- ../Makefile.in.orig 2020-09-14 22:21:34.172699093 +0200
+++ ./Makefile.in 2020-09-15 21:43:19.212824716 +0200
@@ -365,7 +365,7 @@
sed < ${srcdir}/src/epaths.in > epaths.h.$$$$ \
-e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "${standardlisppath}";' \
-e 's;\(#.*PATH_SITELOADSEARCH\).*$$;\1 "${locallisppath}";' \
- -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "${buildlisppath}";' \
+ -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "${standardlisppath}";' \
-e '/^#define PATH_[^ ]*SEARCH /s/\([":]\):*/\1/g' \
-e '/^#define PATH_[^ ]*SEARCH /s/:"/"/' \
-e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \

View File

@@ -0,0 +1,133 @@
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/emacs/
TERMUX_PKG_DESCRIPTION="Extensible, customizable text editor-and more"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=28.1
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/emacs/emacs-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=28b1b3d099037a088f0a4ca251d7e7262eab5ea1677aabffa6c4426961ad75e1
TERMUX_PKG_DEPENDS="fontconfig, freetype, gdk-pixbuf, giflib, glib, libgnutls, libice, libjansson, libjpeg-turbo, libpng, librsvg, libsm, libtiff, libx11, libxaw, libxcb, libxext, libxfixes, libxft, libxinerama, libxml2, libxmu, libxpm, libxrandr, libxrender, libxt, littlecms, ncurses, zlib"
TERMUX_PKG_CONFLICTS="emacs"
TERMUX_PKG_REPLACES="emacs"
TERMUX_PKG_PROVIDES="emacs"
TERMUX_PKG_SERVICE_SCRIPT=("emacsd" 'exec emacs --fg-daemon 2>&1')
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-autodepend
--without-cairo
--without-imagemagick
--without-libotf
--without-xaw3d
--without-gpm
--without-dbus
--without-gconf
--without-gsettings
--with-x
--with-x-toolkit=lucid
--without-selinux
--with-modules
--with-pdumper=yes
--with-dumping=none
--with-json
"
if $TERMUX_DEBUG_BUILD; then
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="
--enable-checking=yes,glyphs
--enable-check-lisp-object-type
"
CFLAGS+=" -gdwarf-4"
fi
# Ensure use of system malloc:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" emacs_cv_sanitize_address=yes"
# Prevent configure from adding -nopie:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" emacs_cv_prog_cc_no_pie=no"
# Prevent linking against libelf:
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_elf_elf_begin=no"
# implemented using dup3(), which fails if oldfd == newfd
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" gl_cv_func_dup2_works=no"
# disable setrlimit function to make termux-am work from within emacs
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_func_setrlimit=no"
TERMUX_PKG_HOSTBUILD=true
# Remove some irrelevant files:
TERMUX_PKG_RM_AFTER_INSTALL="
bin/grep-changelog
share/applications/emacs.desktop
share/emacs/${TERMUX_PKG_VERSION}/etc/emacs.desktop
share/emacs/${TERMUX_PKG_VERSION}/etc/emacs.icon
share/emacs/${TERMUX_PKG_VERSION}/etc/images
share/emacs/${TERMUX_PKG_VERSION}/etc/refcards
share/emacs/${TERMUX_PKG_VERSION}/etc/tutorials/TUTORIAL.*
share/icons
share/man/man1/grep-changelog.1.gz
"
# Remove ctags from the emacs package to prevent conflicting with
# the Universal Ctags from the 'ctags' package (the bin/etags
# 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_get_source() {
# Certain packages are not safe to build on device because their
# build.sh script deletes specific files in $TERMUX_PREFIX.
if $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
# Termux only use info pages for emacs. Remove the info directory
# to get a clean Info directory file dir.
rm -Rf $TERMUX_PREFIX/share/info
}
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
ln -s $TERMUX_PKG_SRCDIR/lisp $NATIVE_PREFIX/share/emacs/$TERMUX_PKG_VERSION/lisp
( cd $TERMUX_PKG_SRCDIR; ./autogen.sh )
$TERMUX_PKG_SRCDIR/configure --prefix=$NATIVE_PREFIX --without-all --without-x
make -j $TERMUX_MAKE_PROCESSES
}
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
cp $TERMUX_PKG_HOSTBUILD_DIR/lib-src/make-fingerprint $TERMUX_PKG_BUILDDIR/lib-src/make-fingerprint
# 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_PKG_BUILDDIR/lib-src/make-fingerprint
}
termux_step_post_make_install() {
cp $TERMUX_PKG_BUILDER_DIR/site-init.el $TERMUX_PREFIX/share/emacs/${TERMUX_PKG_VERSION}/lisp/emacs-lisp/
}
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!$TERMUX_PREFIX/bin/sh
if [ "\$1" = "configure" ] || [ "\$1" = "abort-upgrade" ]; then
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
update-alternatives --install \
$TERMUX_PREFIX/bin/editor editor $TERMUX_PREFIX/bin/emacs 40
fi
fi
cd $TERMUX_PREFIX/share/emacs/$TERMUX_PKG_VERSION/lisp
LC_ALL=C $TERMUX_PREFIX/bin/emacs -batch -l loadup --temacs=pdump
mv $TERMUX_PREFIX/bin/emacs*.pdmp $TERMUX_PREFIX/libexec/emacs/$TERMUX_PKG_VERSION/${TERMUX_ARCH}-linux-android*/
EOF
cat <<- EOF > ./prerm
#!$TERMUX_PREFIX/bin/sh
if [ "\$1" != "upgrade" ]; then
if [ -x "$TERMUX_PREFIX/bin/update-alternatives" ]; then
update-alternatives --remove editor $TERMUX_PREFIX/bin/emacs
fi
fi
EOF
}

View File

@@ -0,0 +1,34 @@
diff -uNr emacs-27.2/src/emacs.c emacs-27.2.mod/src/emacs.c
--- emacs-27.2/src/emacs.c 2021-01-28 19:52:38.000000000 +0200
+++ emacs-27.2.mod/src/emacs.c 2021-04-10 17:04:56.744343967 +0300
@@ -120,6 +120,11 @@
#include "pdumper.h"
#include "epaths.h"
+#ifdef __ANDROID__
+#include <android/fdsan.h>
+#include <dlfcn.h>
+#endif
+
static const char emacs_version[] = PACKAGE_VERSION;
static const char emacs_copyright[] = COPYRIGHT;
static const char emacs_bugreport[] = PACKAGE_BUGREPORT;
@@ -954,6 +959,18 @@
/* Record (approximately) where the stack begins. */
stack_bottom = (char *) &stack_bottom_variable;
+#ifdef __ANDROID__
+ // For Android 11+.
+ void *lib_handle = dlopen("libc.so", RTLD_LAZY);
+ if (lib_handle) {
+ void (*set_fdsan_error_level)(enum android_fdsan_error_level newlevel) = dlsym(lib_handle, "android_fdsan_set_error_level");
+ if (set_fdsan_error_level) {
+ set_fdsan_error_level(ANDROID_FDSAN_ERROR_LEVEL_DISABLED);
+ }
+ dlclose(lib_handle);
+ }
+#endif
+
const char *dump_mode = NULL;
int skip_args = 0;
char *temacs = NULL;

View File

@@ -0,0 +1,20 @@
--- ./lib-src/emacsclient.c.orig 2020-07-29 23:40:41.000000000 +0200
+++ ./lib-src/emacsclient.c 2020-09-14 21:36:04.883963456 +0200
@@ -1411,7 +1411,7 @@
tmpdirlen = min (n - 1, socknamesize);
# endif
if (tmpdirlen < 0)
- tmpdirlen = snprintf (sockname, socknamesize, "/tmp");
+ tmpdirlen = snprintf (sockname, socknamesize, "@TERMUX_PREFIX@/tmp");
}
socknamelen = local_sockname (sockname, socknamesize, tmpdirlen,
uid, server_name);
@@ -1495,7 +1495,7 @@
uintmax_t id = uid;
char sockdirname[socknamesize];
int sockdirnamelen = snprintf (sockdirname, sizeof sockdirname,
- "/run/user/%"PRIuMAX, id);
+ "@TERMUX_PREFIX@/var/run/user/%"PRIuMAX, id);
if (0 <= sockdirnamelen && sockdirnamelen < sizeof sockdirname
&& faccessat (AT_FDCWD, sockdirname, X_OK, AT_EACCESS) == 0)
message

View File

@@ -0,0 +1,11 @@
--- ./lisp/cus-start.el.orig 2020-07-27 23:21:49.000000000 +0200
+++ ./lisp/cus-start.el 2020-09-14 21:34:59.583435440 +0200
@@ -290,7 +290,7 @@
"/tmp"))
(t
(or (getenv "TMPDIR") (getenv "TMP") (getenv "TEMP")
- "/tmp"))))
+ "@TERMUX_PREFIX@/tmp"))))
:initialize custom-initialize-delay)
;; fns.c
(use-dialog-box menu boolean "21.1")

View File

@@ -0,0 +1,15 @@
--- ./lisp/loadup.el.orig 2020-07-27 23:21:49.000000000 +0200
+++ ./lisp/loadup.el 2020-09-14 21:34:59.586768800 +0200
@@ -423,7 +423,11 @@
(message "Warning: Change in load-path due to site-init will be \
lost after dumping")))
-(setq current-load-list nil)
+;; On an emacs that runs undumped, i.e. Android, this causes bogus
+;; entries to appear in load-history. Commenting this out causes an entry
+;; for loadup.el with a bogus filename to appear instead, but since it
+;; neither provides nor requires anything, it appears to be safe.
+;;(setq current-load-list nil)
;; Avoid storing references to build directory in the binary.
(setq custom-current-group-alist nil)

View File

@@ -0,0 +1,11 @@
--- ./lisp/net/tramp.el.orig 2020-07-29 23:40:41.000000000 +0200
+++ ./lisp/net/tramp.el 2020-09-14 21:34:59.593435521 +0200
@@ -133,7 +133,7 @@
;; Suppress `shell-file-name' for w32 systems.
(defcustom tramp-encoding-shell
(let (shell-file-name)
- (or (tramp-compat-funcall 'w32-shell-name) "/bin/sh"))
+ (or (tramp-compat-funcall 'w32-shell-name) "@TERMUX_PREFIX@/bin/sh"))
"Use this program for encoding and decoding commands on the local host.
This shell is used to execute the encoding and decoding command on the
local host, so if you want to use \"~\" in those commands, you should

View File

@@ -0,0 +1,11 @@
--- ./lisp/server.el.orig 2022-04-06 12:26:52.889010658 +0200
+++ ./lisp/server.el 2022-04-06 12:28:46.006501888 +0200
@@ -282,7 +282,7 @@
(if runtime-dir
(expand-file-name "emacs" runtime-dir)
(expand-file-name (format "emacs%d" (user-uid))
- (or (getenv "TMPDIR") "/tmp"))))))
+ "@TERMUX_PREFIX@/var/run")))))
"The directory in which to place the server socket.
If local sockets are not supported, this is nil.")

View File

@@ -0,0 +1,11 @@
--- ./lisp/term.el.orig 2022-04-06 12:29:31.256831618 +0200
+++ ./lisp/term.el 2022-04-06 12:29:59.820373057 +0200
@@ -1651,7 +1651,7 @@
(push (format "EMACS=%s (term:%s)" emacs-version term-protocol-version)
process-environment))
(apply #'start-process name buffer
- "/bin/sh" "-c"
+ "@TERMUX_PREFIX@/bin/sh" "-c"
(format "stty -nl echo rows %d columns %d sane 2>%s;\
if [ $1 = .. ]; then shift; fi; exec \"$@\""
term-height term-width null-device)

View File

@@ -0,0 +1,26 @@
diff -u -r ../emacs-26.2/lisp/textmodes/ispell.el ./lisp/textmodes/ispell.el
--- ../emacs-26.2/lisp/textmodes/ispell.el 2019-02-20 13:44:42.000000000 +0000
+++ ./lisp/textmodes/ispell.el 2019-04-14 18:15:07.894909566 +0000
@@ -215,14 +215,14 @@
:group 'ispell)
(defcustom ispell-alternate-dictionary
- (cond ((file-readable-p "/usr/dict/web2") "/usr/dict/web2")
- ((file-readable-p "/usr/share/dict/web2") "/usr/share/dict/web2")
- ((file-readable-p "/usr/dict/words") "/usr/dict/words")
- ((file-readable-p "/usr/lib/dict/words") "/usr/lib/dict/words")
- ((file-readable-p "/usr/share/dict/words") "/usr/share/dict/words")
- ((file-readable-p "/usr/share/lib/dict/words")
- "/usr/share/lib/dict/words")
- ((file-readable-p "/sys/dict") "/sys/dict"))
+ (cond ((file-readable-p "@TERMUX_PREFIX@/dict/web2") "/usr/dict/web2")
+ ((file-readable-p "@TERMUX_PREFIX@/share/dict/web2") "/usr/share/dict/web2")
+ ((file-readable-p "@TERMUX_PREFIX@/dict/words") "/usr/dict/words")
+ ((file-readable-p "@TERMUX_PREFIX@/lib/dict/words") "/usr/lib/dict/words")
+ ((file-readable-p "@TERMUX_PREFIX@/share/dict/words") "/usr/share/dict/words")
+ ((file-readable-p "@TERMUX_PREFIX@/share/lib/dict/words")
+ "@TERMUX_PREFIX@/share/lib/dict/words")
+ ((file-readable-p "@TERMUX_PREFIX@/sys/dict") "@TERMUX_PREFIX@/sys/dict"))
"Alternate plain word-list dictionary for spelling help."
:type '(choice file (const :tag "None" nil))
:group 'ispell)

View File

@@ -0,0 +1,19 @@
--- ./src/emacs.c~ 2021-12-24 16:44:24.693460891 +0100
+++ ./src/emacs.c 2021-12-24 23:09:28.461964680 +0100
@@ -2462,13 +2462,13 @@
reset_all_sys_modes ();
if (sig && sig != SIGTERM)
{
- static char const fmt[] = "Fatal error %d: %n%s\n";
- char buf[max ((sizeof fmt - sizeof "%d%n%s\n"
+ static char const fmt[] = "Fatal error %d: %s\n";
+ char buf[max ((sizeof fmt - sizeof "%d%s\n"
+ INT_STRLEN_BOUND (int) + 1),
min (PIPE_BUF, MAX_ALLOCA))];
char const *sig_desc = safe_strsignal (sig);
int nlen;
- int buflen = snprintf (buf, sizeof buf, fmt, sig, &nlen, sig_desc);
+ int buflen = snprintf (buf, sizeof buf, fmt, sig, sig_desc);
if (0 <= buflen && buflen < sizeof buf)
emacs_write (STDERR_FILENO, buf, buflen);
else

View File

@@ -0,0 +1,11 @@
--- ./src/editfns.c.orig 2022-04-06 12:34:24.052297271 +0200
+++ ./src/editfns.c 2022-04-06 12:34:54.075849159 +0200
@@ -1266,7 +1266,7 @@
if (!pw)
return Qnil;
- p = USER_FULL_NAME;
+ p = "termux";
/* Chop off everything after the first comma, since 'pw_gecos' is a
comma-separated list. */
q = strchr (p, ',');

View File

@@ -0,0 +1,4 @@
; Enable terminal mouse events:
(xterm-mouse-mode 1)
(global-set-key [mouse-4] 'scroll-down-line)
(global-set-key [mouse-5] 'scroll-up-line)

View File

@@ -0,0 +1,11 @@
--- ./src/callproc.c.orig 2020-07-29 23:40:42.000000000 +0200
+++ ./src/callproc.c 2020-09-14 21:36:04.897296897 +0200
@@ -1621,7 +1621,7 @@
dir_warning ("arch-independent data dir", Vdata_directory);
sh = getenv ("SHELL");
- Vshell_file_name = build_string (sh ? sh : "/bin/sh");
+ Vshell_file_name = build_string (sh ? sh : "@TERMUX_PREFIX@/bin/sh");
Lisp_Object gamedir = Qnil;
if (PATH_GAME)

View File

@@ -0,0 +1,20 @@
--- ../fileio.c.orig 2020-07-11 20:22:17.937310671 +0200
+++ ./src/fileio.c 2020-07-11 20:22:44.147310684 +0200
@@ -2617,7 +2617,7 @@
encoded_file = ENCODE_FILE (file);
encoded_newname = ENCODE_FILE (newname);
- if (link (SSDATA (encoded_file), SSDATA (encoded_newname)) == 0)
+ if (symlink (SSDATA (encoded_file), SSDATA (encoded_newname)) == 0)
return Qnil;
if (errno == EEXIST)
@@ -2627,7 +2627,7 @@
barf_or_query_if_file_exists (newname, true, "make it a new name",
FIXNUMP (ok_if_already_exists), false);
unlink (SSDATA (newname));
- if (link (SSDATA (encoded_file), SSDATA (encoded_newname)) == 0)
+ if (symlink (SSDATA (encoded_file), SSDATA (encoded_newname)) == 0)
return Qnil;
}

View File

@@ -0,0 +1,51 @@
--- ../emacs-27/src/filelock.c 2019-11-28 09:41:28.000000000 +0100
+++ ./src/filelock.c 2019-11-28 15:07:18.792543698 +0100
@@ -63,11 +63,11 @@
/* A file whose last-modified time is just after the most recent boot.
Define this to be NULL to disable checking for this file. */
#ifndef BOOT_TIME_FILE
-#define BOOT_TIME_FILE "/var/run/random-seed"
+#define BOOT_TIME_FILE "@TERMUX_PREFIX@/var/run/random-seed"
#endif
#if !defined WTMP_FILE && !defined WINDOWSNT
-#define WTMP_FILE "/var/log/wtmp"
+#define WTMP_FILE "@TERMUX_PREFIX@/var/log/wtmp"
#endif
/* Normally use a symbolic link to represent a lock.
@@ -127,14 +127,14 @@
static time_t boot_time;
static bool boot_time_initialized;
-#ifdef BOOT_TIME
+#if defined (BOOT_TIME) && !defined(__ANDROID__)
static void get_boot_time_1 (const char *, bool);
#endif
static time_t
get_boot_time (void)
{
-#if defined (BOOT_TIME)
+#if defined (BOOT_TIME) && !defined(__ANDROID__)
int counter;
#endif
@@ -170,7 +170,7 @@
}
}
-#if defined (BOOT_TIME)
+#if defined (BOOT_TIME) && !defined(__ANDROID__)
/* The utmp routines maintain static state. Don't touch that state
if we are going to dump, since it might not survive dumping. */
if (will_dump_p ())
@@ -229,7 +229,7 @@
#endif
}
-#ifdef BOOT_TIME
+#if defined (BOOT_TIME) && !defined(__ANDROID__)
/* Try to get the boot time from wtmp file FILENAME.
This succeeds if that file contains a reboot record.

View File

@@ -0,0 +1,13 @@
TERMUX_PKG_HOMEPAGE=https://www.kde.org/
TERMUX_PKG_DESCRIPTION="Extra CMake modules (KDE)"
TERMUX_PKG_LICENSE="BSD-3-Clause"
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
TERMUX_PKG_VERSION=5.87.0
TERMUX_PKG_SRCURL="http://download.kde.org/stable/frameworks/${TERMUX_PKG_VERSION%.*}/extra-cmake-modules-${TERMUX_PKG_VERSION}.tar.xz"
TERMUX_PKG_SHA256=541ca70d8e270614d19d8fd9e55f97b55fa1dc78d6538c6f6757be372ef8bcab
TERMUX_PKG_DEPENDS="cmake"
termux_step_install_license() {
install -Dm644 "${TERMUX_PKG_SRCDIR}/LICENSES/BSD-3-Clause.txt" "${TERMUX_PREFIX}/share/doc/${TERMUX_PKG_NAME}/LICENSE"
}

View File

@@ -0,0 +1,11 @@
TERMUX_PKG_HOMEPAGE=https://github.com/tsujan/FeatherNotes
TERMUX_PKG_DESCRIPTION="Lightweight Qt Notes-Manager for Linux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=0.9.0
TERMUX_PKG_REVISION=2
_COMMIT=087f522d62deed421b40d8fe96d66ecef0f38bf3
TERMUX_PKG_SRCURL=https://github.com/tsujan/FeatherNotes/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=cca635e42322b66e539908be36e12b760d6739c9ee5bef4136c10518068ae7b0
TERMUX_PKG_DEPENDS="hicolor-icon-theme, qt5-qtbase, qt5-qtsvg, qt5-qtx11extras, hunspell, libx11"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"

View File

@@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://github.com/tsujan/FeatherPad
TERMUX_PKG_DESCRIPTION="Lightweight Qt Plain-Text Editor"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
TERMUX_PKG_VERSION=1.1.1
TERMUX_PKG_SRCURL=https://github.com/tsujan/FeatherPad/releases/download/V${TERMUX_PKG_VERSION}/FeatherPad-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=90ed9fb3509ce2c5760ac3358e1783d7e2b7d35ee05b48c86d6a2fa25789736d
TERMUX_PKG_DEPENDS="hicolor-icon-theme, qt5-qtbase, qt5-qtsvg, qt5-qtx11extras, hunspell"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"

15
x11-packages/feh/build.sh Normal file
View File

@@ -0,0 +1,15 @@
TERMUX_PKG_HOMEPAGE=https://feh.finalrewind.org/
TERMUX_PKG_DESCRIPTION="Fast and light imlib2-based image viewer"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.8
TERMUX_PKG_SRCURL=https://feh.finalrewind.org/feh-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=7f3c34552b39336d7ebee2d7c4bf5697aaaa2c6c102c357f6e82ea240bd62ba9
TERMUX_PKG_DEPENDS="imlib2, libandroid-shmem, libcurl, libexif, libjpeg-turbo, libpng, libx11, libxinerama"
TERMUX_PKG_BUILD_DEPENDS="libxt"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="exif=1 help=1 verscmp=0"
termux_step_pre_configure() {
CFLAGS+=" -I${TERMUX_PREFIX}/include"
}

View File

@@ -0,0 +1,12 @@
diff -uNr feh-3.0/src/Makefile feh-3.0.mod/src/Makefile
--- feh-3.0/src/Makefile 2018-11-09 18:17:58.000000000 +0200
+++ feh-3.0.mod/src/Makefile 2018-11-23 23:26:11.165786637 +0200
@@ -40,7 +40,7 @@
I_DSTS = ${I_SRCS:.raw=.inc}
feh: deps.mk ${OBJECTS} ${I_DSTS}
- ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS}
+ ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS} -landroid-shmem
include deps.mk

View File

@@ -0,0 +1,12 @@
diff -uNr feh-3.0/src/events.c feh-3.0.mod/src/events.c
--- feh-3.0/src/events.c 2018-11-09 18:17:58.000000000 +0200
+++ feh-3.0.mod/src/events.c 2018-11-23 23:29:54.923941949 +0200
@@ -124,7 +124,7 @@
free(confpath);
- if (!conf && ((conf = fopen("/etc/feh/buttons", "r")) == NULL))
+ if (!conf && ((conf = fopen("@TERMUX_PREFIX@/etc/feh/buttons", "r")) == NULL))
return;
while (fgets(line, sizeof(line), conf)) {

View File

@@ -0,0 +1,12 @@
diff -uNr feh-3.0/src/filelist.c feh-3.0.mod/src/filelist.c
--- feh-3.0/src/filelist.c 2018-11-09 18:17:58.000000000 +0200
+++ feh-3.0.mod/src/filelist.c 2018-11-23 23:30:02.490608366 +0200
@@ -160,7 +160,7 @@
{
char buf[1024];
size_t readsize;
- char *sfn = estrjoin("_", "/tmp/feh_stdin", "XXXXXX", NULL);
+ char *sfn = estrjoin("_", "@TERMUX_PREFIX@/tmp/feh_stdin", "XXXXXX", NULL);
int fd = mkstemp(sfn);
FILE *outfile;

View File

@@ -0,0 +1,21 @@
diff -uNr feh-3.0/src/imlib.c feh-3.0.mod/src/imlib.c
--- feh-3.0/src/imlib.c 2018-11-09 18:17:58.000000000 +0200
+++ feh-3.0.mod/src/imlib.c 2018-11-23 23:30:25.020611522 +0200
@@ -361,7 +361,7 @@
else
basename++;
- tmpname = feh_unique_filename("/tmp/", basename);
+ tmpname = feh_unique_filename("@TERMUX_PREFIX@/tmp/", basename);
if (strlen(tmpname) > (NAME_MAX-6))
tmpname[NAME_MAX-7] = '\0';
@@ -559,7 +559,7 @@
else
path = "";
} else
- path = "/tmp/";
+ path = "@TERMUX_PREFIX@/tmp/";
curl = curl_easy_init();
if (!curl) {

View File

@@ -0,0 +1,12 @@
diff -uNr feh-3.0/src/keyevents.c feh-3.0.mod/src/keyevents.c
--- feh-3.0/src/keyevents.c 2018-11-09 18:17:58.000000000 +0200
+++ feh-3.0.mod/src/keyevents.c 2018-11-23 23:30:45.083952428 +0200
@@ -226,7 +226,7 @@
free(confpath);
- if (!conf && ((conf = fopen("/etc/feh/keys", "r")) == NULL))
+ if (!conf && ((conf = fopen("@TERMUX_PREFIX@/etc/feh/keys", "r")) == NULL))
return;
while (fgets(line, sizeof(line), conf)) {

View File

@@ -0,0 +1,12 @@
diff -uNr feh-3.0/src/options.c feh-3.0.mod/src/options.c
--- feh-3.0/src/options.c 2018-11-09 18:17:58.000000000 +0200
+++ feh-3.0.mod/src/options.c 2018-11-23 23:28:22.666746861 +0200
@@ -158,7 +158,7 @@
free(oldrcpath);
- if (!fp && ((fp = fopen("/etc/feh/themes", "r")) == NULL))
+ if (!fp && ((fp = fopen("@TERMUX_PREFIX@/etc/feh/themes", "r")) == NULL))
return;
/* Oooh. We have an options file :) */

View File

@@ -0,0 +1,12 @@
diff -uNr feh-3.0/src/slideshow.c feh-3.0.mod/src/slideshow.c
--- feh-3.0/src/slideshow.c 2018-11-09 18:17:58.000000000 +0200
+++ feh-3.0.mod/src/slideshow.c 2018-11-23 23:31:02.923962780 +0200
@@ -455,7 +455,7 @@
if (filelist_tmppath != NULL) {
strncat(ret, filelist_tmppath, sizeof(ret) - strlen(ret) - 1);
} else {
- filelist_tmppath = feh_unique_filename("/tmp/","filelist");
+ filelist_tmppath = feh_unique_filename("@TERMUX_PREFIX@/tmp/","filelist");
feh_write_filelist(filelist, filelist_tmppath);
strncat(ret, filelist_tmppath, sizeof(ret) - strlen(ret) - 1);
}

View File

@@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://wiki.gnome.org/Apps/FileRoller
TERMUX_PKG_DESCRIPTION="File Roller is an archive manager for the GNOME desktop environment."
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=3.40.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/GNOME/file-roller/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=81e72121430ba6ea7396fe84d75b07252e550674addfb38bc6066665170941f3
TERMUX_PKG_DEPENDS="bzip2, desktop-file-utils, cpio, glib, gtk3, gzip, libcairo, lzip, lzop, p7zip, tar, unrar, unzip, xz-utils, zip, bsdtar, zlib, json-glib, libnotify, libarchive"
TERMUX_PKG_RM_AFTER_INSTALL="share/glib-2.0/schemas/gschemas.compiled"

View File

@@ -0,0 +1,22 @@
diff --git a/meson.build b/meson.build
index c1b9ce4..dc8454c 100644
--- a/meson.build
+++ b/meson.build
@@ -19,7 +19,7 @@ datadir = join_paths(prefix, get_option('datadir'))
privexecdir = join_paths(prefix, get_option('libexecdir'), meson.project_name())
c_comp = meson.get_compiler('c')
-meson.add_install_script('postinstall.py')
+#meson.add_install_script('postinstall.py')
# Dependencies
@@ -119,7 +119,7 @@ c_args += c_comp.get_supported_arguments(test_args)
# Subdirectories
subdir('data')
-subdir('help')
+#subdir('help')
if build_nautilus_actions
subdir('nautilus')
endif

View File

@@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=https://flacon.github.io/
TERMUX_PKG_DESCRIPTION="Extracts individual tracks from one big audio file and saves them as separate audio files"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=8.2.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/flacon/flacon/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=7fd0f97f9bca87c5ec0f7eee30c6480b9cc51c8c60f79d9726ed09db756c60b9
TERMUX_PKG_DEPENDS="libuchardet, taglib, qt5-qtbase, qt5-qttools"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"

View File

@@ -0,0 +1,11 @@
--- a/gui/controls.cpp
+++ b/gui/controls.cpp
@@ -691,7 +691,7 @@
.arg(mProgramName)
+ QString(" (%1);;").arg(mProgramName) + tr("All files", "This is part of filter for 'select program' dialog. 'All files (*)'") + " (*)";
- QString fileName = QFileDialog::getOpenFileName(this, tr("Select program file"), "/usr/bin/", flt);
+ QString fileName = QFileDialog::getOpenFileName(this, tr("Select program file"), "@TERMUX_PREFIX@/bin/", flt);
if (!fileName.isEmpty())
setText(fileName);
}

View File

@@ -0,0 +1,13 @@
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -1098,8 +1098,8 @@
failback << "elementary";
failback << "gnome";
- QDir usrDir("/usr/share/icons/");
- QDir usrLocalDir("/usr/local/share/icons/");
+ QDir usrDir("@TERMUX_PREFIX@/share/icons/");
+ QDir usrLocalDir("@TERMUX_PREFIX@/local/share/icons/");
foreach (QString s, failback) {
if (usrDir.exists(s) || usrLocalDir.exists(s)) {
QIcon::setThemeName(s);

View File

@@ -0,0 +1,28 @@
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/florence/
TERMUX_PKG_DESCRIPTION="A configurable on-screen virtual keyboard"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.6.3
TERMUX_PKG_REVISION=30
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/florence/files/florence/${TERMUX_PKG_VERSION}/florence-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=422992fd07d285be73cce721a203e22cee21320d69b0fda1579ce62944c5091e
TERMUX_PKG_DEPENDS="atk, fontconfig, freetype, fribidi, gdk-pixbuf, glib, gstreamer, gtk3, harfbuzz, libandroid-shmem, libcairo, libcroco, libpixman, libpng, librsvg, libx11, libxcb, libxext, libxi, libxml2, libxrender, libxtst, pango, zlib"
TERMUX_MAKE_PROCESSES=1
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-static
--without-notification
--without-at-spi
--with-panelapplet
--with-xtst
--without-docs
"
TERMUX_PKG_RM_AFTER_INSTALL="
lib/locale
share/glib-2.0/schemas/gschemas.compiled
"
termux_step_pre_configure() {
export LIBS="-lglib-2.0 -lgio-2.0"
}

View File

@@ -0,0 +1,11 @@
--- ./Makefile 2013-10-27 18:19:39.693208127 -0300
+++ ./Makefile 2013-10-27 18:20:08.032136885 -0300
@@ -18,7 +18,7 @@
include makeinclude
-DIRS = $(IMAGEDIRS) src $(CAIRODIR) fluid test documentation
+DIRS = $(IMAGEDIRS) src $(CAIRODIR) fluid documentation
all: makeinclude fltk-config
for dir in $(DIRS); do\

View File

@@ -0,0 +1,258 @@
diff -uNr fltk-1.3.5/fluid/ExternalCodeEditor_UNIX.cxx fltk-1.3.5.mod/fluid/ExternalCodeEditor_UNIX.cxx
--- fltk-1.3.5/fluid/ExternalCodeEditor_UNIX.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/fluid/ExternalCodeEditor_UNIX.cxx 2019-05-19 17:18:25.294720046 +0300
@@ -214,8 +214,8 @@
// Returns pointer to static memory.
//
const char* ExternalCodeEditor::tmpdir_name() {
- static char dirname[100];
- snprintf(dirname, sizeof(dirname), "/tmp/.fluid-%ld", (long)getpid());
+ static char dirname[100] = {0};
+ snprintf(dirname, sizeof(dirname), "@TERMUX_PREFIX@/tmp/.fluid-%ld", (long)getpid());
return dirname;
}
diff -uNr fltk-1.3.5/src/Fl_File_Browser.cxx fltk-1.3.5.mod/src/Fl_File_Browser.cxx
--- fltk-1.3.5/src/Fl_File_Browser.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/src/Fl_File_Browser.cxx 2019-05-19 17:18:25.295720052 +0300
@@ -624,13 +624,16 @@
// Open the file that contains a list of mounted filesystems...
//
- mtab = fl_fopen("/etc/mnttab", "r"); // Fairly standard
+ mtab = fl_fopen("@TERMUX_PREFIX@/etc/mnttab", "r"); // Fairly standard
if (mtab == NULL)
- mtab = fl_fopen("/etc/mtab", "r"); // More standard
+ mtab = fl_fopen("@TERMUX_PREFIX@/etc/mtab", "r"); // More standard
if (mtab == NULL)
- mtab = fl_fopen("/etc/fstab", "r"); // Otherwise fallback to full list
+ mtab = fl_fopen("@TERMUX_PREFIX@/etc/fstab", "r"); // Otherwise fallback to full list
if (mtab == NULL)
- mtab = fl_fopen("/etc/vfstab", "r"); // Alternate full list file
+ mtab = fl_fopen("@TERMUX_PREFIX@/etc/vfstab", "r"); // Alternate full list file
+
+ if (mtab == NULL)
+ mtab = fl_fopen("/proc/mounts", "r"); // Try to use /proc/mounts
if (mtab != NULL)
{
diff -uNr fltk-1.3.5/src/Fl_File_Icon2.cxx fltk-1.3.5.mod/src/Fl_File_Icon2.cxx
--- fltk-1.3.5/src/Fl_File_Icon2.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/src/Fl_File_Icon2.cxx 2019-05-19 17:18:25.297720063 +0300
@@ -677,9 +677,9 @@
if (!kdedir) {
// Figure out where KDE is installed...
if ((kdedir = getenv("KDEDIR")) == NULL) {
- if (!access("/opt/kde", F_OK)) kdedir = "/opt/kde";
- else if (!access("/usr/local/share/mimelnk", F_OK)) kdedir = "/usr/local";
- else kdedir = "/usr";
+ if (!access("@TERMUX_PREFIX@/opt/kde", F_OK)) kdedir = "@TERMUX_PREFIX@/opt/kde";
+ else if (!access("@TERMUX_PREFIX@/share/mimelnk", F_OK)) kdedir = "@TERMUX_PREFIX@";
+ else kdedir = "@TERMUX_PREFIX@";
}
}
@@ -715,66 +715,66 @@
snprintf(filename, sizeof(filename), "%s/share/mimelnk", kdedir);
load_kde_icons(filename, icondir);
- } else if (!access("/usr/share/icons/folder.xpm", F_OK)) {
+ } else if (!access("@TERMUX_PREFIX@/share/icons/folder.xpm", F_OK)) {
// Load GNOME icons...
icon = new Fl_File_Icon("*", Fl_File_Icon::PLAIN);
- icon->load_image("/usr/share/icons/page.xpm");
+ icon->load_image("@TERMUX_PREFIX@/share/icons/page.xpm");
icon = new Fl_File_Icon("*", Fl_File_Icon::DIRECTORY);
- icon->load_image("/usr/share/icons/folder.xpm");
- } else if (!access("/usr/dt/appconfig/icons", F_OK)) {
+ icon->load_image("@TERMUX_PREFIX@/share/icons/folder.xpm");
+ } else if (!access("@TERMUX_PREFIX@/dt/appconfig/icons", F_OK)) {
// Load CDE icons...
icon = new Fl_File_Icon("*", Fl_File_Icon::PLAIN);
- icon->load_image("/usr/dt/appconfig/icons/C/Dtdata.m.pm");
+ icon->load_image("@TERMUX_PREFIX@/dt/appconfig/icons/C/Dtdata.m.pm");
icon = new Fl_File_Icon("*", Fl_File_Icon::DIRECTORY);
- icon->load_image("/usr/dt/appconfig/icons/C/DtdirB.m.pm");
+ icon->load_image("@TERMUX_PREFIX@/dt/appconfig/icons/C/DtdirB.m.pm");
icon = new Fl_File_Icon("core", Fl_File_Icon::PLAIN);
- icon->load_image("/usr/dt/appconfig/icons/C/Dtcore.m.pm");
+ icon->load_image("@TERMUX_PREFIX@/dt/appconfig/icons/C/Dtcore.m.pm");
icon = new Fl_File_Icon("*.{bmp|bw|gif|jpg|pbm|pcd|pgm|ppm|png|ras|rgb|tif|xbm|xpm}", Fl_File_Icon::PLAIN);
- icon->load_image("/usr/dt/appconfig/icons/C/Dtimage.m.pm");
+ icon->load_image("@TERMUX_PREFIX@/dt/appconfig/icons/C/Dtimage.m.pm");
icon = new Fl_File_Icon("*.{eps|pdf|ps}", Fl_File_Icon::PLAIN);
- icon->load_image("/usr/dt/appconfig/icons/C/Dtps.m.pm");
+ icon->load_image("@TERMUX_PREFIX@/dt/appconfig/icons/C/Dtps.m.pm");
icon = new Fl_File_Icon("*.ppd", Fl_File_Icon::PLAIN);
- icon->load_image("/usr/dt/appconfig/icons/C/DtPrtpr.m.pm");
- } else if (!access("/usr/lib/filetype", F_OK)) {
+ icon->load_image("@TERMUX_PREFIX@/dt/appconfig/icons/C/DtPrtpr.m.pm");
+ } else if (!access("@TERMUX_PREFIX@/lib/filetype", F_OK)) {
// Load SGI icons...
icon = new Fl_File_Icon("*", Fl_File_Icon::PLAIN);
- icon->load_fti("/usr/lib/filetype/iconlib/generic.doc.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/iconlib/generic.doc.fti");
icon = new Fl_File_Icon("*", Fl_File_Icon::DIRECTORY);
- icon->load_fti("/usr/lib/filetype/iconlib/generic.folder.closed.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/iconlib/generic.folder.closed.fti");
icon = new Fl_File_Icon("core", Fl_File_Icon::PLAIN);
- icon->load_fti("/usr/lib/filetype/default/iconlib/CoreFile.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/default/iconlib/CoreFile.fti");
icon = new Fl_File_Icon("*.{bmp|bw|gif|jpg|pbm|pcd|pgm|ppm|png|ras|rgb|tif|xbm|xpm}", Fl_File_Icon::PLAIN);
- icon->load_fti("/usr/lib/filetype/system/iconlib/ImageFile.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/system/iconlib/ImageFile.fti");
- if (!access("/usr/lib/filetype/install/iconlib/acroread.doc.fti", F_OK)) {
+ if (!access("@TERMUX_PREFIX@/lib/filetype/install/iconlib/acroread.doc.fti", F_OK)) {
icon = new Fl_File_Icon("*.{eps|ps}", Fl_File_Icon::PLAIN);
- icon->load_fti("/usr/lib/filetype/system/iconlib/PostScriptFile.closed.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/system/iconlib/PostScriptFile.closed.fti");
icon = new Fl_File_Icon("*.pdf", Fl_File_Icon::PLAIN);
- icon->load_fti("/usr/lib/filetype/install/iconlib/acroread.doc.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/install/iconlib/acroread.doc.fti");
} else {
icon = new Fl_File_Icon("*.{eps|pdf|ps}", Fl_File_Icon::PLAIN);
- icon->load_fti("/usr/lib/filetype/system/iconlib/PostScriptFile.closed.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/system/iconlib/PostScriptFile.closed.fti");
}
- if (!access("/usr/lib/filetype/install/iconlib/html.fti", F_OK)) {
+ if (!access("@TERMUX_PREFIX@/lib/filetype/install/iconlib/html.fti", F_OK)) {
icon = new Fl_File_Icon("*.{htm|html|shtml}", Fl_File_Icon::PLAIN);
- icon->load_fti("/usr/lib/filetype/iconlib/generic.doc.fti");
- icon->load_fti("/usr/lib/filetype/install/iconlib/html.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/iconlib/generic.doc.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/install/iconlib/html.fti");
}
- if (!access("/usr/lib/filetype/install/iconlib/color.ps.idle.fti", F_OK)) {
+ if (!access("@TERMUX_PREFIX@/lib/filetype/install/iconlib/color.ps.idle.fti", F_OK)) {
icon = new Fl_File_Icon("*.ppd", Fl_File_Icon::PLAIN);
- icon->load_fti("/usr/lib/filetype/install/iconlib/color.ps.idle.fti");
+ icon->load_fti("@TERMUX_PREFIX@/lib/filetype/install/iconlib/color.ps.idle.fti");
}
} else {
// Create the default icons...
diff -uNr fltk-1.3.5/src/fl_open_uri.cxx fltk-1.3.5.mod/src/fl_open_uri.cxx
--- fltk-1.3.5/src/fl_open_uri.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/src/fl_open_uri.cxx 2019-05-19 17:18:25.298720069 +0300
@@ -275,7 +275,7 @@
*end; // End of filename buffer
- if ((path = getenv("PATH")) == NULL) path = "/bin:/usr/bin";
+ if ((path = getenv("PATH")) == NULL) path = "@TERMUX_PREFIX@/bin:@TERMUX_PREFIX@/bin/applets:/system/xbin:/system/bin";
for (ptr = filename, end = filename + filesize - 1; *path; path ++) {
if (*path == ':') {
diff -uNr fltk-1.3.5/src/Fl_Preferences.cxx fltk-1.3.5.mod/src/Fl_Preferences.cxx
--- fltk-1.3.5/src/Fl_Preferences.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/src/Fl_Preferences.cxx 2019-05-19 17:18:25.299720075 +0300
@@ -963,7 +963,8 @@
vendor_(0L),
application_(0L) {
- char filename[ FL_PATH_MAX ]; filename[0] = 0;
+ char filename[ FL_PATH_MAX ] = {0};
+
#ifdef WIN32
# define FLPREFS_RESOURCE "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"
# define FLPREFS_RESOURCEW L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"
@@ -1049,7 +1050,7 @@
break;
}
case SYSTEM:
- strcpy(filename, "/etc/fltk/");
+ strcpy(filename, "@TERMUX_PREFIX@/etc/fltk/");
break;
}
snprintf(filename + strlen(filename), sizeof(filename) - strlen(filename),
@@ -1162,20 +1163,6 @@
fprintf( f, "; application: %s\n", application_ );
prefs_->node->write( f );
fclose( f );
-#if !(defined(__APPLE__) || defined(WIN32))
- // unix: make sure that system prefs are user-readable
- if (strncmp(filename_, "/etc/fltk/", 10) == 0) {
- char *p;
- p = filename_ + 9;
- do { // for each directory to the pref file
- *p = 0;
- fl_chmod(filename_, 0755); // rwxr-xr-x
- *p = '/';
- p = strchr(p+1, '/');
- } while (p);
- fl_chmod(filename_, 0644); // rw-r--r--
- }
-#endif
return 0;
}
@@ -1191,12 +1178,6 @@
if ( !s ) return 0;
*s = 0;
char ret = fl_make_path( path );
-#if !(defined(__APPLE__) || defined(WIN32))
- // unix: make sure that system prefs dir. is user-readable
- if (strncmp(path, "/etc/fltk/", 10) == 0) {
- fl_chmod(path, 0755); // rwxr-xr-x
- }
-#endif
strcpy( s, "/" );
return ret;
}
diff -uNr fltk-1.3.5/src/Fl_x.cxx fltk-1.3.5.mod/src/Fl_x.cxx
--- fltk-1.3.5/src/Fl_x.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/src/Fl_x.cxx 2019-05-19 17:18:25.301720087 +0300
@@ -1481,9 +1481,9 @@
if (!fl_selection_requestor) return 0;
if (Fl::e_clipboard_type == Fl::clipboard_image) {
if (bytesread == 0) return 0;
- static char tmp_fname[21];
+ static char tmp_fname[52] = {0};
static Fl_Shared_Image *shared = 0;
- strcpy(tmp_fname, "/tmp/clipboardXXXXXX");
+ strcpy(tmp_fname, "@TERMUX_PREFIX@/tmp/clipboardXXXXXX");
int fd = mkstemp(tmp_fname);
if (fd == -1) return 0;
uchar *p = sn_buffer; ssize_t towrite = bytesread, written;
diff -uNr fltk-1.3.5/src/print_panel.cxx fltk-1.3.5.mod/src/print_panel.cxx
--- fltk-1.3.5/src/print_panel.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/src/print_panel.cxx 2019-05-19 17:18:25.302720092 +0300
@@ -533,7 +533,7 @@
defname[0] = '\0';
// get names of all printers and of default one
- if ((lpstat = popen("LC_MESSAGES=C LANG=C /bin/sh -c '(lpstat -p -d ) 2>&-'", "r")) != NULL) { // try first with SystemV printing system
+ if ((lpstat = popen("LC_MESSAGES=C LANG=C @TERMUX_PREFIX@/bin/sh -c '(lpstat -p -d ) 2>&-'", "r")) != NULL) { // try first with SystemV printing system
while (fgets(line, sizeof(line), lpstat)) {
if (!strncmp(line, "printer ", 8) &&
sscanf(line + 8, "%s", name) == 1) {
@@ -550,7 +550,7 @@
pclose(lpstat);
}
- if (print_choice->size() == 2 && (lpstat = fopen("/etc/printcap", "r"))) { // try next with BSD printing system
+ if (print_choice->size() == 2 && (lpstat = fopen("@TERMUX_PREFIX@/etc/printcap", "r"))) { // try next with BSD printing system
while (fgets(line, sizeof(line),lpstat)) { // get names of all known printers
if (*line == '#' || (p = strchr(line, '|')) == NULL) continue;
*p = 0;
@@ -593,7 +593,7 @@
status[0] = 0;
if (print_choice->value()) {
strcpy(status, "printer status unavailable");
- snprintf(command, sizeof(command), "/bin/sh -c \"(lpstat -p '%s' ) 2>&-\" ", printer); // try first with SystemV printing system
+ snprintf(command, sizeof(command), "@TERMUX_PREFIX@/bin/sh -c \"(lpstat -p '%s' ) 2>&-\" ", printer); // try first with SystemV printing system
if ((lpstat = popen(command, "r")) != NULL) {
if (fgets(status, sizeof(status), lpstat) == 0) { // if no reply
pclose(lpstat);

View File

@@ -0,0 +1,28 @@
diff -uNr fltk-1.3.5/src/Fl_x.cxx fltk-1.3.5.mod/src/Fl_x.cxx
--- fltk-1.3.5/src/Fl_x.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/src/Fl_x.cxx 2019-05-19 17:30:59.885700620 +0300
@@ -758,8 +758,8 @@
#endif
#if USE_XRANDR
- void *libxrandr_addr = dlopen("libXrandr.so.2", RTLD_LAZY);
- if (!libxrandr_addr) libxrandr_addr = dlopen("libXrandr.so", RTLD_LAZY);
+ void *libxrandr_addr = dlopen("libXrandr.so", RTLD_LAZY);
+
if (libxrandr_addr) {
int error_base;
typedef Bool (*XRRQueryExtension_type)(Display*, int*, int*);
diff -uNr fltk-1.3.5/src/screen_xywh.cxx fltk-1.3.5.mod/src/screen_xywh.cxx
--- fltk-1.3.5/src/screen_xywh.cxx 2019-03-03 10:40:23.000000000 +0200
+++ fltk-1.3.5.mod/src/screen_xywh.cxx 2019-05-19 17:30:32.556510789 +0300
@@ -176,8 +176,8 @@
static XRRSizes_type XRRSizes_f = NULL;
if (!XRRSizes_f) {
- void *libxrandr_addr = dlopen("libXrandr.so.2", RTLD_LAZY);
- if (!libxrandr_addr) libxrandr_addr = dlopen("libXrandr.so", RTLD_LAZY);
+ void *libxrandr_addr = dlopen("libXrandr.so", RTLD_LAZY);
+
# ifdef __APPLE_CC__ // allows testing on Darwin + X11
if (!libxrandr_addr) libxrandr_addr = dlopen("/opt/X11/lib/libXrandr.dylib", RTLD_LAZY);
# endif

View File

@@ -0,0 +1,28 @@
TERMUX_PKG_HOMEPAGE=https://www.fltk.org/
TERMUX_PKG_DESCRIPTION="Graphical user interface toolkit for X"
TERMUX_PKG_LICENSE="LGPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.3.7
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://www.fltk.org/pub/fltk/${TERMUX_PKG_VERSION}/fltk-${TERMUX_PKG_VERSION}-source.tar.gz
TERMUX_PKG_SHA256=5d2ccb7ad94e595d3d97509c7a931554e059dd970b7b29e6fd84cb70fd5491c6
TERMUX_PKG_DEPENDS="fontconfig, glu, libc++, libjpeg-turbo, libpng, libx11, libxcursor, libxext, libxfixes, libxft, libxinerama, libxrender, mesa, zlib"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-shared
--enable-threads
--enable-xinerama
--enable-xft
--enable-xfixes
--enable-xcursor
--enable-xrender
"
termux_step_pre_configure() {
sed -i 's/class Fl_XFont_On_Demand/class FL_EXPORT Fl_XFont_On_Demand/' FL/x.H
sed -i 's/x-fluid.desktop/fluid.desktop/' -i fluid/Makefile
sed -i -e 's/$(LINKFLTK)/$(LINKSHARED)/' -e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile
export LIBS="$LDFLAGS"
}

View File

@@ -0,0 +1,15 @@
TERMUX_PKG_HOMEPAGE=https://github.com/vinceliuice/Fluent-gtk-theme
TERMUX_PKG_DESCRIPTION="Fluent is a Fluent design theme for GNOME/GTK based desktop environments"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=2022.01.15
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/vinceliuice/Fluent-gtk-theme/archive/refs/tags/${TERMUX_PKG_VERSION//./-}.tar.gz
TERMUX_PKG_SHA256=e0cff57bd6b0a153315155584f144785d743fb29d30c5a3ea9e14bfbad7aad17
TERMUX_PKG_DEPENDS="gtk3, gtk2-engines-murrine"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make_install(){
./install.sh -d ${TERMUX_PREFIX}/share/themes
}

View File

@@ -0,0 +1,16 @@
TERMUX_PKG_HOMEPAGE=https://github.com/vinceliuice/Fluent-icon-theme
TERMUX_PKG_DESCRIPTION="Fluent icon theme for linux desktops"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@Yisus7u7 <dev.yisus@hotmail.com>"
TERMUX_PKG_VERSION=2022.02.04
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/vinceliuice/Fluent-icon-theme/archive/${TERMUX_PKG_VERSION//./-}.tar.gz
TERMUX_PKG_SHA256=d0bb0cba28e2da3365d15e7fa770d42266793fbe88ac468fb9e6289a2d0fbd64
TERMUX_PKG_DEPENDS="hicolor-icon-theme"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_RM_AFTER_INSTALL="share/icons/*/icon-theme.cache"
termux_step_make_install(){
./install.sh -d ${TERMUX_PREFIX}/share/icons -r
}

View File

@@ -0,0 +1,21 @@
TERMUX_PKG_HOMEPAGE=http://www.fluxbox.org
TERMUX_PKG_DESCRIPTION="A lightweight and highly-configurable window manager"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.3.7
TERMUX_PKG_REVISION=33
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/fluxbox/fluxbox-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=fc8c75fe94c54ed5a5dd3fd4a752109f8949d6df67a48e5b11a261403c382ec0
TERMUX_PKG_DEPENDS="feh, fribidi, imlib2, libc++, libxft, libxinerama, libxpm, libxrandr, xorg-xmessage"
TERMUX_PKG_RECOMMENDS="aterm"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-imlib2
--enable-xft
--enable-xinerama
"
termux_step_pre_configure() {
export CXXFLAGS="${CXXFLAGS} -Wno-c++11-narrowing"
}

View File

@@ -0,0 +1,12 @@
diff -uNr fluxbox-1.3.7/src/FbCommands.cc fluxbox-1.3.7.mod/src/FbCommands.cc
--- fluxbox-1.3.7/src/FbCommands.cc 2015-02-08 12:44:45.353187009 +0200
+++ fluxbox-1.3.7.mod/src/FbCommands.cc 2018-06-19 20:52:20.788391222 +0300
@@ -153,7 +153,7 @@
// this process exits immediately, so we don't have to worry about memleaks
const char *shell = getenv("SHELL");
if (!shell)
- shell = "/bin/sh";
+ shell = "@TERMUX_PREFIX@/bin/sh";
setsid();
execl(shell, shell, "-c", m_cmd.c_str(), static_cast<void*>(NULL));

View File

@@ -0,0 +1,12 @@
diff -uNr fluxbox-1.3.7/src/main.cc fluxbox-1.3.7.mod/src/main.cc
--- fluxbox-1.3.7/src/main.cc 2015-02-08 12:44:45.377187009 +0200
+++ fluxbox-1.3.7.mod/src/main.cc 2018-06-19 20:52:20.791724555 +0300
@@ -270,7 +270,7 @@
if (!restart_argument.empty()) {
const char *shell = getenv("SHELL");
if (!shell)
- shell = "/bin/sh";
+ shell = "@TERMUX_PREFIX@/bin/sh";
execlp(shell, shell, "-c", restart_argument.c_str(), (const char *) NULL);
perror(restart_argument.c_str());

View File

@@ -0,0 +1,12 @@
diff -uNr fluxbox-1.3.7/util/fbrun/FbRun.cc fluxbox-1.3.7.mod/util/fbrun/FbRun.cc
--- fluxbox-1.3.7/util/fbrun/FbRun.cc 2015-02-08 12:44:45.377187009 +0200
+++ fluxbox-1.3.7.mod/util/fbrun/FbRun.cc 2018-06-19 20:52:20.798391221 +0300
@@ -131,7 +131,7 @@
const char *shell = getenv("SHELL");
if (!shell)
- shell = "/bin/sh";
+ shell = "@TERMUX_PREFIX@/bin/sh";
setsid();
execl(shell, shell, "-c", command.c_str(), static_cast<void*>(NULL));

View File

@@ -0,0 +1,21 @@
diff -uNr fluxbox-1.3.7/util/fluxbox-generate_menu.in fluxbox-1.3.7.mod/util/fluxbox-generate_menu.in
--- fluxbox-1.3.7/util/fluxbox-generate_menu.in 2015-02-08 12:44:45.377187009 +0200
+++ fluxbox-1.3.7.mod/util/fluxbox-generate_menu.in 2018-10-17 17:15:44.175731942 +0300
@@ -1509,7 +1509,7 @@
your PATH or specify your favourite terminal-emulator with the -t option
EOF
- DEFAULT_TERM=xterm
+ DEFAULT_TERM=aterm
fi
DEFAULT_TERMNAME=`echo $DEFAULT_TERM|awk '{print $1}'`
@@ -1533,7 +1533,7 @@
if [ "x$DEFAULT_BROWSERNAME" != "x" ]; then
DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME`
else
- DEFAULT_BROWSERNAME="firefox"
+ DEFAULT_BROWSERNAME="lynx"
fi
if [ -z "$LAUNCHER" ]; then

View File

@@ -0,0 +1,12 @@
diff -uNr fluxbox-1.3.7/util/fluxbox-remote.cc fluxbox-1.3.7.mod/util/fluxbox-remote.cc
--- fluxbox-1.3.7/util/fluxbox-remote.cc 2015-02-08 12:44:45.377187009 +0200
+++ fluxbox-1.3.7.mod/util/fluxbox-remote.cc 2018-06-19 20:52:20.808391222 +0300
@@ -73,7 +73,7 @@
if (strcmp(cmd, "result") == 0) {
XTextProperty text_prop;
if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
- && text_prop.value > 0
+ && text_prop.value != NULL
&& text_prop.nitems > 0) {
printf("%s", text_prop.value);

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