new package: tilde
This commit is contained in:
parent
fab75b88cd
commit
1c7d9cd656
37
packages/tilde/build.sh
Normal file
37
packages/tilde/build.sh
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
TERMUX_PKG_HOMEPAGE=https://os.ghalkes.nl/tilde/
|
||||||
|
TERMUX_PKG_DESCRIPTION="A text editor for the console/terminal"
|
||||||
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||||
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
|
TERMUX_PKG_VERSION=1.1.3
|
||||||
|
TERMUX_PKG_SRCURL=https://os.ghalkes.nl/dist/tilde-${TERMUX_PKG_VERSION}.tar.bz2
|
||||||
|
TERMUX_PKG_SHA256=6b86ffaa5c632c9055f74fca713c5bf8420ee60718850dc16a95abe49fa2641a
|
||||||
|
TERMUX_PKG_DEPENDS="libc++, libt3config, libt3highlight, libt3widget, libtranscript, libunistring"
|
||||||
|
TERMUX_PKG_BUILD_IN_SRC=true
|
||||||
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-gettext"
|
||||||
|
|
||||||
|
termux_step_post_get_source() {
|
||||||
|
sed -i 's/ -s / /g' Makefile.in
|
||||||
|
rm -f src/tilde
|
||||||
|
find src -type f | xargs -n 1 sed -i 's:tilde/::g'
|
||||||
|
}
|
||||||
|
|
||||||
|
termux_step_pre_configure() {
|
||||||
|
local libtooldir=$TERMUX_PKG_TMPDIR/_libtool
|
||||||
|
mkdir -p $libtooldir
|
||||||
|
pushd $libtooldir
|
||||||
|
cat > configure.ac <<-EOF
|
||||||
|
AC_INIT
|
||||||
|
LT_INIT
|
||||||
|
AC_PROG_CXX
|
||||||
|
AC_OUTPUT
|
||||||
|
EOF
|
||||||
|
touch install-sh
|
||||||
|
cp "$TERMUX_SCRIPTDIR/scripts/config.sub" ./
|
||||||
|
cp "$TERMUX_SCRIPTDIR/scripts/config.guess" ./
|
||||||
|
autoreconf -fi
|
||||||
|
./configure --host=$TERMUX_HOST_PLATFORM
|
||||||
|
popd
|
||||||
|
export LIBTOOL=$libtooldir/libtool
|
||||||
|
|
||||||
|
CXXFLAGS+=" $CPPFLAGS"
|
||||||
|
}
|
11
packages/tilde/src-main.cc.patch
Normal file
11
packages/tilde/src-main.cc.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/src/main.cc
|
||||||
|
+++ b/src/main.cc
|
||||||
|
@@ -678,7 +678,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
static std::string get_run_file_name() {
|
||||||
|
- static const char *TMP_DIR_BASE = "/tmp/tilde-";
|
||||||
|
+ static const char *TMP_DIR_BASE = "@TERMUX_PREFIX@/tmp/tilde-";
|
||||||
|
char hostname[128];
|
||||||
|
std::string linkname;
|
||||||
|
std::unique_ptr<char, free_deleter> path;
|
Loading…
Reference in New Issue
Block a user