Browse Source
New packages that will be added: * antiword * beanshell * cabextract * deutex * direnv * exiv2 * git-lfs * gitea * hoedown * httrack * iverilog * links * loksh * mksh * mktorrent * pdfgrep * shellharden * swig * tidy * tweego * wordgrinderemacs-27
43 changed files with 934 additions and 0 deletions
@ -0,0 +1,40 @@ |
|||
diff -uNr antiword-0.37/Makefile.Linux antiword-0.37.mod/Makefile.Linux
|
|||
--- antiword-0.37/Makefile.Linux 2005-10-29 20:13:15.000000000 +0300
|
|||
+++ antiword-0.37.mod/Makefile.Linux 2019-02-25 22:05:02.764208927 +0200
|
|||
@@ -2,8 +2,8 @@
|
|||
# Makefile for antiword (Linux version) |
|||
# |
|||
|
|||
-CC = gcc
|
|||
-LD = gcc
|
|||
+CC ?= gcc
|
|||
+LD = $(CC)
|
|||
|
|||
INSTALL = cp -f |
|||
INSTALL_PROGRAM = $(INSTALL) |
|||
@@ -12,12 +12,11 @@
|
|||
# must be equal to DEBUG or NDEBUG |
|||
DB = NDEBUG |
|||
# Optimization: -O<n> or debugging: -g |
|||
-OPT = -O2
|
|||
+OPT =
|
|||
|
|||
LDLIBS = |
|||
|
|||
-CFLAGS = -Wall -pedantic $(OPT) -D$(DB)
|
|||
-LDFLAGS =
|
|||
+CFLAGS += -Wall -pedantic $(OPT) -D$(DB)
|
|||
|
|||
OBJS =\ |
|||
main_u.o asc85enc.o blocklist.o chartrans.o datalist.o depot.o\ |
|||
@@ -36,8 +36,8 @@
|
|||
LOCAL_INSTALL_DIR = $(HOME)/bin |
|||
LOCAL_RESOURCES_DIR = $(HOME)/.antiword |
|||
|
|||
-GLOBAL_INSTALL_DIR = /usr/local/bin
|
|||
-GLOBAL_RESOURCES_DIR = /usr/share/antiword
|
|||
+GLOBAL_INSTALL_DIR = @TERMUX_PREFIX@/bin
|
|||
+GLOBAL_RESOURCES_DIR = @TERMUX_PREFIX@/share/antiword
|
|||
|
|||
all: $(PROGS) |
|||
|
@ -0,0 +1,21 @@ |
|||
diff -uNr antiword-0.37/antiword.h antiword-0.37.mod/antiword.h
|
|||
--- antiword-0.37/antiword.h 2005-07-06 20:46:22.000000000 +0300
|
|||
+++ antiword-0.37.mod/antiword.h 2019-03-05 19:51:12.173846939 +0200
|
|||
@@ -204,7 +204,7 @@
|
|||
#define ANTIWORD_DIR "antiword" |
|||
#define FONTNAMES_FILE "fontname.txt" |
|||
#elif defined(__vms) |
|||
-#define GLOBAL_ANTIWORD_DIR "/usr/share/antiword"
|
|||
+#define GLOBAL_ANTIWORD_DIR "@TERMUX_PREFIX@/share/antiword"
|
|||
#define ANTIWORD_DIR "antiword" |
|||
#define FONTNAMES_FILE "fontnames" |
|||
#elif defined(__BEOS__) |
|||
@@ -224,7 +224,7 @@
|
|||
#define ANTIWORD_DIR ".antiword" |
|||
#define FONTNAMES_FILE "fontnames" |
|||
#else /* All others */ |
|||
-#define GLOBAL_ANTIWORD_DIR "/usr/share/antiword"
|
|||
+#define GLOBAL_ANTIWORD_DIR "@TERMUX_PREFIX@/share/antiword"
|
|||
#define ANTIWORD_DIR ".antiword" |
|||
#define FONTNAMES_FILE "fontnames" |
|||
#endif /* __dos */ |
@ -0,0 +1,11 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://www.winfield.demon.nl/ |
|||
TERMUX_PKG_DESCRIPTION="A free MS Word reader" |
|||
TERMUX_PKG_LICENSE="GPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=0.37 |
|||
TERMUX_PKG_REVISION=2 |
|||
TERMUX_PKG_SRCURL=http://www.winfield.demon.nl/linux/antiword-$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac |
|||
TERMUX_PKG_BUILD_IN_SRC=true |
|||
TERMUX_PKG_MAKE_INSTALL_TARGET="global_install" |
|||
TERMUX_PKG_RM_AFTER_INSTALL="bin/kantiword" |
@ -0,0 +1,42 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://github.com/beanshell/beanshell |
|||
TERMUX_PKG_DESCRIPTION="Small, free, embeddable, source level Java interpreter with object based scripting language features written in Java" |
|||
TERMUX_PKG_LICENSE="Apache-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=2.0b6 |
|||
TERMUX_PKG_REVISION=3 |
|||
TERMUX_PKG_SRCURL=https://github.com/beanshell/beanshell/releases/download/$TERMUX_PKG_VERSION/bsh-$TERMUX_PKG_VERSION.jar |
|||
TERMUX_PKG_SHA256=a17955976070c0573235ee662f2794a78082758b61accffce8d3f8aedcd91047 |
|||
TERMUX_PKG_DEPENDS="dash, termux-tools" |
|||
TERMUX_PKG_SKIP_SRC_EXTRACT=true |
|||
TERMUX_PKG_PLATFORM_INDEPENDENT=true |
|||
TERMUX_PKG_BUILD_IN_SRC=true |
|||
|
|||
termux_step_pre_configure() { |
|||
termux_download \ |
|||
"$TERMUX_PKG_SRCURL" \ |
|||
"$TERMUX_PKG_CACHEDIR/bsh-$TERMUX_PKG_VERSION.jar" \ |
|||
"$TERMUX_PKG_SHA256" |
|||
} |
|||
|
|||
termux_step_make() { |
|||
"$TERMUX_D8" \ |
|||
--classpath "$ANDROID_HOME/platforms/android-$TERMUX_PKG_API_LEVEL/android.jar" \ |
|||
--release \ |
|||
--min-api "$TERMUX_PKG_API_LEVEL" \ |
|||
--output "$TERMUX_PKG_SRCDIR" \ |
|||
"$TERMUX_PKG_CACHEDIR/bsh-$TERMUX_PKG_VERSION.jar" |
|||
|
|||
jar cf beanshell.jar classes.dex |
|||
} |
|||
|
|||
termux_step_make_install() { |
|||
install -Dm600 beanshell.jar "$TERMUX_PREFIX/share/dex/beanshell.jar" |
|||
|
|||
{ |
|||
echo "#!$TERMUX_PREFIX/bin/sh" |
|||
echo "dalvikvm -cp $TERMUX_PREFIX/share/dex/beanshell.jar bsh.Interpreter \"\$@\"" |
|||
} > "$TERMUX_PREFIX"/bin/beanshell |
|||
|
|||
chmod 700 "$TERMUX_PREFIX"/bin/beanshell |
|||
ln -sfr "$TERMUX_PREFIX"/bin/beanshell "$TERMUX_PREFIX"/bin/bsh |
|||
} |
@ -0,0 +1,8 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://www.cabextract.org.uk/ |
|||
TERMUX_PKG_DESCRIPTION="A program to extract Microsoft cabinet (.CAB) files" |
|||
TERMUX_PKG_LICENSE="GPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=1.9.1 |
|||
TERMUX_PKG_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://cabextract.org.uk/cabextract-$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=afc253673c8ef316b4d5c29cc4aa8445844bee14afffbe092ee9469405851ca7 |
@ -0,0 +1,9 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://github.com/Doom-Utils/deutex/ |
|||
TERMUX_PKG_DESCRIPTION="WAD composer for Doom, Heretic, Hexen, and Strife" |
|||
TERMUX_PKG_LICENSE="GPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=5.1.2 |
|||
TERMUX_PKG_REVISION=4 |
|||
TERMUX_PKG_SRCURL=https://github.com/Doom-Utils/deutex/releases/download/v$TERMUX_PKG_VERSION/deutex-$TERMUX_PKG_VERSION.tar.xz |
|||
TERMUX_PKG_SHA256=e42edb738a11e7e6a7ed274adbe0ee6f514fd97ae61e497c8f9258a03ae143e6 |
|||
TERMUX_PKG_DEPENDS="libpng, zlib" |
@ -0,0 +1,18 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://github.com/direnv/direnv |
|||
TERMUX_PKG_DESCRIPTION="Environment switcher for shell" |
|||
TERMUX_PKG_LICENSE="MIT" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=2.20.1 |
|||
TERMUX_PKG_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://github.com/direnv/direnv/archive/v$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=dd54393661602bb989ee880f14c41f7a7b47a153777999509127459edae52e47 |
|||
TERMUX_PKG_BUILD_IN_SRC=true |
|||
|
|||
termux_step_make() { |
|||
termux_setup_golang |
|||
make |
|||
} |
|||
|
|||
termux_step_make_install() { |
|||
make install DESTDIR=$TERMUX_PREFIX |
|||
} |
@ -0,0 +1,13 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://exiv2.org |
|||
TERMUX_PKG_DESCRIPTION="Exif, Iptc and XMP metadata manipulation library and tools" |
|||
TERMUX_PKG_LICENSE="GPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=0.26 |
|||
TERMUX_PKG_REVISION=6 |
|||
TERMUX_PKG_SRCURL=https://github.com/Exiv2/exiv2/archive/v$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=51cffa8d19d67e1da6c1d0f570a75b8f6c814113367318c2c0407691888c5f01 |
|||
TERMUX_PKG_DEPENDS="libandroid-support, libc++, libexpat, zlib" |
|||
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
|||
-DEXIV2_ENABLE_VIDEO=ON |
|||
-DEXIV2_ENABLE_BUILD_SAMPLES=OFF" |
@ -0,0 +1,22 @@ |
|||
From 5405d61623e82896e498c5c8342dd6f42e689115 Mon Sep 17 00:00:00 2001 |
|||
From: clanmills <robin@clanmills.com> |
|||
Date: Tue, 12 Sep 2017 09:14:42 +0100 |
|||
Subject: [PATCH] Fix http://dev.exiv2.org/issues/1305 |
|||
|
|||
---
|
|||
src/pentaxmn.cpp | 2 ++ |
|||
1 file changed, 2 insertions(+) |
|||
|
|||
diff --git a/src/pentaxmn.cpp b/src/pentaxmn.cpp
|
|||
index 4fc38be0a..b22cb43b6 100644
|
|||
--- a/src/pentaxmn.cpp
|
|||
+++ b/src/pentaxmn.cpp
|
|||
@@ -1167,6 +1167,8 @@ namespace Exiv2 {
|
|||
|
|||
std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata) |
|||
{ |
|||
+ if ( ! metadata ) return os << "undefined" ;
|
|||
+
|
|||
ExifData::const_iterator dateIt = metadata->findKey( |
|||
ExifKey("Exif.PentaxDng.Date")); |
|||
if (dateIt == metadata->end()) { |
@ -0,0 +1,32 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://git-lfs.github.com/ |
|||
TERMUX_PKG_DESCRIPTION="Git extension for versioning large files" |
|||
TERMUX_PKG_LICENSE="MIT" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=2.7.2 |
|||
TERMUX_PKG_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://github.com/git-lfs/git-lfs/archive/v$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=e65659f12ec557ae8c778c01ca62d921413221864b68bd93cfa41399028ae67f |
|||
|
|||
termux_step_make() { |
|||
termux_setup_golang |
|||
export GOPATH=$TERMUX_PKG_BUILDDIR |
|||
|
|||
mkdir -p "$GOPATH"/github.com/git-lfs |
|||
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/github.com/git-lfs/git-lfs |
|||
|
|||
cd "$GOPATH"/github.com/git-lfs/git-lfs |
|||
GOOS=linux GOARCH=amd64 CC=gcc LD=gcc go generate github.com/git-lfs/git-lfs/commands |
|||
go build git-lfs.go |
|||
} |
|||
|
|||
termux_step_make_install() { |
|||
install -Dm700 \ |
|||
"$GOPATH"/github.com/git-lfs/git-lfs/git-lfs \ |
|||
"$TERMUX_PREFIX"/bin/git-lfs |
|||
} |
|||
|
|||
termux_step_post_make_install() { |
|||
## Remove read-only files generated in build process. |
|||
chmod -R 700 "$TERMUX_PKG_BUILDDIR"/pkg |
|||
rm -rf "$TERMUX_PKG_BUILDDIR"/pkg |
|||
} |
@ -0,0 +1,18 @@ |
|||
; Either "dev", "prod" or "test", default is "dev" |
|||
RUN_MODE = prod |
|||
|
|||
[repository] |
|||
ROOT = @TERMUX_PREFIX@/var/gitea |
|||
|
|||
[database] |
|||
DB_TYPE=sqlite3 |
|||
PATH=@TERMUX_PREFIX@/var/gitea/gitea.db |
|||
|
|||
[log] |
|||
ROOT_PATH=@TERMUX_PREFIX@/var/log/gitea |
|||
MODE=file |
|||
LEVEL=Info |
|||
|
|||
; Update mirrors |
|||
[cron.update_mirrors] |
|||
SCHEDULE = @every 120m |
@ -0,0 +1,43 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://gitea.io |
|||
TERMUX_PKG_DESCRIPTION="Git with a cup of tea, painless self-hosted git service" |
|||
TERMUX_PKG_LICENSE="MIT" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=1.8.1 |
|||
TERMUX_PKG_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://github.com/go-gitea/gitea/archive/v$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=91f1094f1aa833c8e2cb11cf4c2e1301c53317a49c9f6818c4a7a1ef926850cd |
|||
TERMUX_PKG_DEPENDS="dash, git" |
|||
|
|||
termux_step_make() { |
|||
termux_setup_golang |
|||
export GOPATH=$TERMUX_PKG_BUILDDIR |
|||
|
|||
mkdir -p "$GOPATH"/src/code.gitea.io |
|||
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/code.gitea.io/gitea |
|||
cd "$GOPATH"/src/code.gitea.io/gitea |
|||
|
|||
# go-bindata shoudn't be cross-compiled |
|||
GOOS=linux GOARCH=amd64 go get -u github.com/jteeuwen/go-bindata/... |
|||
export PATH="$PATH:$GOPATH/bin" |
|||
|
|||
TAGS="bindata sqlite" make generate all |
|||
} |
|||
|
|||
termux_step_make_install() { |
|||
install -Dm700 \ |
|||
"$GOPATH"/src/code.gitea.io/gitea/gitea \ |
|||
"$TERMUX_PREFIX"/bin/gitea |
|||
|
|||
mkdir -p "$TERMUX_PREFIX"/etc/gitea |
|||
sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" \ |
|||
"$TERMUX_PKG_BUILDER_DIR"/app.ini > "$TERMUX_PREFIX"/etc/gitea/app.ini |
|||
|
|||
sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" \ |
|||
"$TERMUX_PKG_BUILDER_DIR"/gitea-service.sh > "$TERMUX_PREFIX"/bin/gitea-service.sh |
|||
chmod 700 ${TERMUX_PREFIX}/bin/gitea-service.sh |
|||
} |
|||
|
|||
termux_step_post_massage() { |
|||
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"/var/gitea |
|||
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"/var/log/gitea |
|||
} |
@ -0,0 +1,3 @@ |
|||
#!/bin/sh |
|||
export GITEA_WORK_DIR=@TERMUX_PREFIX@/var/gitea |
|||
exec @TERMUX_PREFIX@/bin/gitea web -c @TERMUX_PREFIX@/etc/gitea/app.ini |
@ -0,0 +1,11 @@ |
|||
diff --git a/Makefile b/Makefile
|
|||
index ebfab0b..1b60b1e 100644
|
|||
--- a/Makefile
|
|||
+++ b/Makefile
|
|||
@@ -1,5 +1,5 @@
|
|||
CFLAGS = -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter |
|||
-PREFIX = /usr/local
|
|||
+PREFIX = @TERMUX_PREFIX@
|
|||
BINDIR = $(PREFIX)/bin |
|||
LIBDIR = $(PREFIX)/lib |
|||
INCLUDEDIR = $(PREFIX)/include |
@ -0,0 +1,9 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://github.com/hoedown/hoedown |
|||
TERMUX_PKG_DESCRIPTION="Hoedown is a revived fork of Sundown, the Markdown parser based on the original code of the Upskirt library" |
|||
TERMUX_PKG_LICENSE="ISC" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=3.0.7 |
|||
TERMUX_PKG_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://github.com/hoedown/hoedown/archive/$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=01b6021b1ec329b70687c0d240b12edcaf09c4aa28423ddf344d2bd9056ba920 |
|||
TERMUX_PKG_BUILD_IN_SRC=yes |
@ -0,0 +1,11 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://www.httrack.com |
|||
TERMUX_PKG_DESCRIPTION="It allows you to download a World Wide Web site from the Internet" |
|||
TERMUX_PKG_LICENSE="GPL-3.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=3.49.2 |
|||
TERMUX_PKG_REVISION=5 |
|||
TERMUX_PKG_SRCURL=http://mirror.httrack.com/historical/httrack-$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=3477a0e5568e241c63c9899accbfcdb6aadef2812fcce0173688567b4c7d4025 |
|||
TERMUX_PKG_DEPENDS="libandroid-support, openssl, zlib" |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-zlib=$TERMUX_PREFIX" |
|||
TERMUX_PKG_BUILD_IN_SRC="yes" |
@ -0,0 +1,32 @@ |
|||
--- httrack-3.49.2/src/htsglobal.h 2017-05-20 14:03:03.000000000 +0530
|
|||
+++ htsglobal.h 2018-04-10 11:16:00.468000020 +0530
|
|||
@@ -178,16 +178,16 @@
|
|||
#else |
|||
|
|||
#ifndef HTS_ETCPATH |
|||
-#define HTS_ETCPATH "/etc"
|
|||
+#define HTS_ETCPATH "@TERMUX_PREFIX@/etc"
|
|||
#endif |
|||
#ifndef HTS_BINPATH |
|||
-#define HTS_BINPATH "/usr/bin"
|
|||
+#define HTS_BINPATH "@TERMUX_PREFIX@/bin"
|
|||
#endif |
|||
#ifndef HTS_LIBPATH |
|||
-#define HTS_LIBPATH "/usr/lib"
|
|||
+#define HTS_LIBPATH "@TERMUX_PREFIX@/lib"
|
|||
#endif |
|||
#ifndef HTS_PREFIX |
|||
-#define HTS_PREFIX "/usr"
|
|||
+#define HTS_PREFIX "@TERMUX_PREFIX@"
|
|||
#endif |
|||
|
|||
#define HTS_HTTRACKRC ".httrackrc" |
|||
@@ -196,7 +196,7 @@
|
|||
#ifdef DATADIR |
|||
#define HTS_HTTRACKDIR DATADIR"/httrack/" |
|||
#else |
|||
-#define HTS_HTTRACKDIR HTS_PREFIX"/share/httrack/"
|
|||
+#define HTS_HTTRACKDIR HTS_PREFIX"@TERMUX_PREFIX@/share/httrack/"
|
|||
#endif |
|||
|
|||
#endif |
@ -0,0 +1,23 @@ |
|||
--- httrack-3.49.2/src/proxy/store.c 2017-04-02 01:08:17.000000000 +0530
|
|||
+++ store.c 2018-04-10 12:10:59.385000003 +0530
|
|||
@@ -30,9 +30,9 @@
|
|||
#include <stdlib.h> |
|||
#include <string.h> |
|||
#include <time.h> |
|||
-#ifdef __ANDROID__
|
|||
+/* #ifdef __ANDROID__
|
|||
static long int timezone = 0; |
|||
-#endif
|
|||
+#endif */
|
|||
|
|||
/* Locking */ |
|||
#ifdef _WIN32 |
|||
@@ -1941,7 +1941,7 @@
|
|||
|
|||
if (t != (time_t) - 1 && t != (time_t) 0) { |
|||
/* BSD does not have static "timezone" declared */ |
|||
-#if (defined(BSD) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__))
|
|||
+#if (defined(BSD) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)) || defined(__ANDROID__)
|
|||
time_t now = time(NULL); |
|||
time_t timezone = -localtime(&now)->tm_gmtoff; |
|||
#endif |
@ -0,0 +1,14 @@ |
|||
diff -uNr iverilog-10_2/Makefile.in iverilog-10_2.mod/Makefile.in
|
|||
--- iverilog-10_2/Makefile.in 2017-08-24 18:22:49.000000000 +0300
|
|||
+++ iverilog-10_2.mod/Makefile.in 2019-02-25 20:18:55.327140615 +0200
|
|||
@@ -67,8 +67,8 @@
|
|||
dllib=@DLLIB@ |
|||
|
|||
# For a cross compile these defines will need to be set accordingly. |
|||
-HOSTCC = @CC@
|
|||
-HOSTCFLAGS = @WARNING_FLAGS@ @WARNING_FLAGS_CC@ @CFLAGS@
|
|||
+HOSTCC = gcc
|
|||
+HOSTCFLAGS = @WARNING_FLAGS@ @WARNING_FLAGS_CC@
|
|||
|
|||
CC = @CC@ |
|||
CXX = @CXX@ |
@ -0,0 +1,15 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://iverilog.icarus.com/ |
|||
TERMUX_PKG_DESCRIPTION="Icarus Verilog compiler and simulation tool" |
|||
TERMUX_PKG_LICENSE="GPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=10.2 |
|||
TERMUX_PKG_REVISION=5 |
|||
TERMUX_PKG_SRCURL=https://github.com/steveicarus/iverilog/archive/v${TERMUX_PKG_VERSION/./_}.tar.gz |
|||
TERMUX_PKG_SHA256=f54d91821223c71c70f4735a1fb2af39c62efbccdeb9b0060ea1cf9c67647ee3 |
|||
TERMUX_PKG_DEPENDS="libbz2, libc++, readline, zlib" |
|||
|
|||
termux_step_pre_configure() { |
|||
LDFLAGS+=" -lm" |
|||
aclocal |
|||
autoconf |
|||
} |
@ -0,0 +1,12 @@ |
|||
diff -uNr iverilog-10_2/driver/main.c iverilog-10_2.mod/driver/main.c
|
|||
--- iverilog-10_2/driver/main.c 2017-08-24 18:22:49.000000000 +0300
|
|||
+++ iverilog-10_2.mod/driver/main.c 2019-02-25 20:10:43.322593058 +0200
|
|||
@@ -282,7 +282,7 @@
|
|||
tmpdir = "C:\\TEMP"; |
|||
#else |
|||
if (tmpdir == 0) |
|||
- tmpdir = "/tmp";
|
|||
+ tmpdir = "@TERMUX_PREFIX@/tmp";
|
|||
#endif |
|||
|
|||
assert(tmpdir); |
@ -0,0 +1,14 @@ |
|||
diff -uNr iverilog-10_2/vvp/Makefile.in iverilog-10_2.mod/vvp/Makefile.in
|
|||
--- iverilog-10_2/vvp/Makefile.in 2017-08-24 18:22:49.000000000 +0300
|
|||
+++ iverilog-10_2.mod/vvp/Makefile.in 2019-02-25 20:18:31.607079821 +0200
|
|||
@@ -32,8 +32,8 @@
|
|||
includedir = @includedir@ |
|||
|
|||
# For a cross compile these defines will need to be set accordingly. |
|||
-HOSTCC = @CC@
|
|||
-HOSTCFLAGS = @WARNING_FLAGS@ @WARNING_FLAGS_CC@ @CFLAGS@
|
|||
+HOSTCC = gcc
|
|||
+HOSTCFLAGS = @WARNING_FLAGS@ @WARNING_FLAGS_CC@
|
|||
|
|||
CC = @CC@ |
|||
CXX = @CXX@ |
@ -0,0 +1,10 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://links.twibright.com |
|||
TERMUX_PKG_DESCRIPTION="Links is a text and graphics mode WWW browser" |
|||
TERMUX_PKG_LICENSE="GPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=2.19 |
|||
TERMUX_PKG_REVISION=3 |
|||
TERMUX_PKG_SRCURL=http://links.twibright.com/download/links-$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=37299f804f22c945bf63e22a7bc4418bbb8144b410c0ced70b82ebe6f9e3c82b |
|||
TERMUX_PKG_DEPENDS="libbz2, libevent, liblzma, openssl, zlib" |
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --mandir=$TERMUX_PREFIX/share/man" |
@ -0,0 +1,60 @@ |
|||
diff -uNr links-2.18/dns.c links-2.18.mod/dns.c
|
|||
--- links-2.18/dns.c 2018-09-01 00:37:34.000000000 +0300
|
|||
+++ links-2.18.mod/dns.c 2019-01-30 17:35:36.615018534 +0200
|
|||
@@ -203,7 +203,7 @@
|
|||
if (rs == -1) _exit(1); |
|||
EINTRLOOP(rs, close(pi[1])); |
|||
EINTRLOOP(rs, execlp("host", "host", cast_const_char name, (char *)NULL)); |
|||
- EINTRLOOP(rs, execl("/usr/sbin/host", "host", cast_const_char name, (char *)NULL));
|
|||
+ EINTRLOOP(rs, execl("@TERMUX_PREFIX@/bin/host", "host", cast_const_char name, (char *)NULL));
|
|||
_exit(1); |
|||
} |
|||
EINTRLOOP(rs, close(pi[1])); |
|||
diff -uNr links-2.18/fn_impl.c links-2.18.mod/fn_impl.c
|
|||
--- links-2.18/fn_impl.c 2018-08-25 13:53:57.000000000 +0300
|
|||
+++ links-2.18.mod/fn_impl.c 2019-01-30 17:34:22.214761816 +0200
|
|||
@@ -95,7 +95,7 @@
|
|||
#ifdef P_tmpdir |
|||
d = cast_uchar(P_tmpdir); |
|||
#else |
|||
- d = cast_uchar "/tmp";
|
|||
+ d = cast_uchar "@TERMUX_PREFIX@/tmp";
|
|||
#endif |
|||
} |
|||
} |
|||
diff -uNr links-2.18/os_dep.c links-2.18.mod/os_dep.c
|
|||
--- links-2.18/os_dep.c 2019-01-11 20:24:12.000000000 +0200
|
|||
+++ links-2.18.mod/os_dep.c 2019-01-30 17:36:13.688483362 +0200
|
|||
@@ -1505,7 +1505,7 @@
|
|||
} |
|||
/* UWin corrupts heap if we use threads and fork */ |
|||
fd_lock(); |
|||
- pid = spawnl("/bin/sh", "/bin/sh", "-c", arg, (char *)NULL);
|
|||
+ pid = spawnl("@TERMUX_PREFIX@/bin/sh", "@TERMUX_PREFIX@/bin/sh", "-c", arg, (char *)NULL);
|
|||
fd_unlock(); |
|||
#else |
|||
#if 1 /* spawn breaks mouse, do this only in graphics mode */ |
|||
@@ -3004,7 +3004,7 @@
|
|||
{ |
|||
unsigned char *param_x = stracpy(param); |
|||
add_to_strn(¶m_x, cast_uchar "'"); |
|||
- exec_new_links(term, cast_uchar(INTERIX_START_COMMAND " '\"Links\"' posix /u /c /bin/sh -c '"), exe, param_x);
|
|||
+ exec_new_links(term, cast_uchar(INTERIX_START_COMMAND " '\"Links\"' posix /u /c @TERMUX_PREFIX@/bin/sh -c '"), exe, param_x);
|
|||
mem_free(param_x); |
|||
return 0; |
|||
} |
|||
diff -uNr links-2.18/os_dep.h links-2.18.mod/os_dep.h
|
|||
--- links-2.18/os_dep.h 2018-09-23 01:22:10.000000000 +0300
|
|||
+++ links-2.18.mod/os_dep.h 2019-01-30 17:34:54.501538658 +0200
|
|||
@@ -55,9 +55,9 @@
|
|||
#define FS_UNIX_USERS |
|||
#define SYSTEM_ID SYS_UNIX |
|||
#define SYSTEM_NAME "Unix" |
|||
-#define DEFAULT_SHELL "/bin/sh"
|
|||
+#define DEFAULT_SHELL "@TERMUX_PREFIX@/bin/sh"
|
|||
#define GETSHELL getenv("SHELL") |
|||
-#define SHARED_CONFIG_DIR "/etc/"
|
|||
+#define SHARED_CONFIG_DIR "@TERMUX_PREFIX@/etc/"
|
|||
#ifdef HAVE_SYS_UN_H |
|||
#define USE_AF_UNIX |
|||
#endif |
@ -0,0 +1,11 @@ |
|||
diff -uNr loksh-6.3/Makefile loksh-6.3.mod/Makefile
|
|||
--- loksh-6.3/Makefile 2018-04-14 12:35:14.000000000 +0300
|
|||
+++ loksh-6.3.mod/Makefile 2019-01-29 15:27:35.211561095 +0200
|
|||
@@ -30,7 +30,6 @@
|
|||
install: all |
|||
install -v -D -m 755 ksh $(DESTDIR)/$(BIN_DIR)/$(BIN_NAME) |
|||
install -v -D -m 644 ksh.1 $(DESTDIR)/$(MAN_DIR)/man1/$(BIN_NAME).1 |
|||
- install -v -m 644 sh.1 $(DESTDIR)/$(MAN_DIR)/man1/sh.1
|
|||
install -v -D -m 644 README $(DESTDIR)/$(DOC_DIR)/README |
|||
install -v -m 644 README.upstream $(DESTDIR)/$(DOC_DIR)/README.upstream |
|||
install -v -m 644 CONTRIBUTORS $(DESTDIR)/$(DOC_DIR)/CONTRIBUTORS |
@ -0,0 +1,10 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://github.com/dimkr/loksh |
|||
TERMUX_PKG_DESCRIPTION="A Linux port of OpenBSD's ksh" |
|||
TERMUX_PKG_LICENSE="Public Domain" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=6.5 |
|||
TERMUX_PKG_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://github.com/dimkr/loksh/archive/$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=afa6dddfe914a3cb4c2f5c6b9da03d30fb549c8cfb4daeff0472fc103696f7a4 |
|||
TERMUX_PKG_DEPENDS="ncurses" |
|||
TERMUX_PKG_BUILD_IN_SRC=true |
@ -0,0 +1,33 @@ |
|||
diff -uNr loksh-6.4/c_sh.c loksh-6.4.mod/c_sh.c
|
|||
--- loksh-6.4/c_sh.c 2018-10-18 19:25:07.000000000 +0300
|
|||
+++ loksh-6.4.mod/c_sh.c 2019-02-20 21:08:11.282582629 +0200
|
|||
@@ -8,6 +8,7 @@
|
|||
#include <sys/resource.h> |
|||
#include <sys/stat.h> |
|||
#include <sys/time.h> |
|||
+#include <linux/time.h>
|
|||
|
|||
#include <ctype.h> |
|||
#include <errno.h> |
|||
diff -uNr loksh-6.4/mail.c loksh-6.4.mod/mail.c
|
|||
--- loksh-6.4/mail.c 2018-10-18 19:25:07.000000000 +0300
|
|||
+++ loksh-6.4.mod/mail.c 2019-02-20 21:08:16.325940697 +0200
|
|||
@@ -7,6 +7,7 @@
|
|||
|
|||
#include <sys/stat.h> |
|||
#include <sys/time.h> |
|||
+#include <linux/time.h>
|
|||
|
|||
#include <string.h> |
|||
#include <time.h> |
|||
diff -uNr loksh-6.4/var.c loksh-6.4.mod/var.c
|
|||
--- loksh-6.4/var.c 2018-10-18 19:25:07.000000000 +0300
|
|||
+++ loksh-6.4.mod/var.c 2019-02-20 21:08:21.149297670 +0200
|
|||
@@ -2,6 +2,7 @@
|
|||
|
|||
#include <sys/stat.h> |
|||
#include <sys/time.h> |
|||
+#include <linux/time.h>
|
|||
|
|||
#include <ctype.h> |
|||
#include <errno.h> |
@ -0,0 +1,33 @@ |
|||
diff -uNr loksh-6.3/io.c loksh-6.3.mod/io.c
|
|||
--- loksh-6.3/io.c 2018-04-14 12:35:14.000000000 +0300
|
|||
+++ loksh-6.3.mod/io.c 2019-01-29 15:27:54.298336806 +0200
|
|||
@@ -170,7 +170,7 @@
|
|||
{ |
|||
if (kshdebug_shf) |
|||
shf_close(kshdebug_shf); |
|||
- kshdebug_shf = shf_open("/tmp/ksh-debug.log",
|
|||
+ kshdebug_shf = shf_open("@TERMUX_PREFIX@/tmp/ksh-debug.log",
|
|||
O_WRONLY|O_APPEND|O_CREAT, 0600, SHF_WR|SHF_MAPHI); |
|||
if (kshdebug_shf) { |
|||
shf_fprintf(kshdebug_shf, "\nNew shell[pid %d]\n", getpid()); |
|||
@@ -442,7 +442,7 @@
|
|||
char *path; |
|||
const char *dir; |
|||
|
|||
- dir = tmpdir ? tmpdir : "/tmp";
|
|||
+ dir = tmpdir ? tmpdir : "@TERMUX_PREFIX@/tmp";
|
|||
/* The 20 + 20 is a paranoid worst case for pid/inc */ |
|||
len = strlen(dir) + 3 + 20 + 20 + 1; |
|||
tp = alloc(sizeof(struct temp) + len, ap); |
|||
diff -uNr loksh-6.3/sh.h loksh-6.3.mod/sh.h
|
|||
--- loksh-6.3/sh.h 2018-04-14 12:35:14.000000000 +0300
|
|||
+++ loksh-6.3.mod/sh.h 2019-01-29 15:28:14.971788093 +0200
|
|||
@@ -358,7 +358,7 @@
|
|||
#define CBRACE '}' |
|||
|
|||
/* Determine the location of the system (common) profile */ |
|||
-#define KSH_SYSTEM_PROFILE "/etc/profile"
|
|||
+#define KSH_SYSTEM_PROFILE "@TERMUX_PREFIX@/etc/profile"
|
|||
|
|||
/* Used by v_evaluate() and setstr() to control action when error occurs */ |
|||
#define KSH_UNWIND_ERROR 0x0 /* unwind the stack (longjmp) */ |
@ -0,0 +1,29 @@ |
|||
diff -uNr loksh-6.3/main.c loksh-6.3.mod/main.c
|
|||
--- loksh-6.3/main.c 2018-04-14 12:35:14.000000000 +0300
|
|||
+++ loksh-6.3.mod/main.c 2019-01-29 15:29:47.035733470 +0200
|
|||
@@ -188,16 +188,6 @@
|
|||
init_histvec(); |
|||
|
|||
def_path = _PATH_DEFPATH; |
|||
- {
|
|||
- size_t len = confstr(_CS_PATH, NULL, 0);
|
|||
- char *new;
|
|||
-
|
|||
- if (len > 0) {
|
|||
- confstr(_CS_PATH, new = alloc(len + 1, APERM), len + 1);
|
|||
- def_path = new;
|
|||
- }
|
|||
- }
|
|||
-
|
|||
/* Set PATH to def_path (will set the path global variable). |
|||
* (import of environment below will probably change this setting). |
|||
*/ |
|||
@@ -389,7 +379,7 @@
|
|||
} |
|||
|
|||
if (Flag(FPRIVILEGED)) |
|||
- include("/etc/suid_profile", 0, NULL, 1);
|
|||
+ include("@TERMUX_PREFIX@/etc/suid_profile", 0, NULL, 1);
|
|||
else if (Flag(FTALKING)) { |
|||
char *env_file; |
|||
|
@ -0,0 +1,18 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://www.mirbsd.org/mksh.htm |
|||
TERMUX_PKG_DESCRIPTION="The MirBSD Korn Shell - an enhanced version of the public domain ksh" |
|||
TERMUX_PKG_LICENSE="Public Domain" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=57 |
|||
TERMUX_PKG_REVISION=1 |
|||
TERMUX_PKG_SRCURL=https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R${TERMUX_PKG_VERSION/./}.tgz |
|||
TERMUX_PKG_SHA256=3d101154182d52ae54ef26e1360c95bc89c929d28859d378cc1c84f3439dbe75 |
|||
TERMUX_PKG_BUILD_IN_SRC=true |
|||
|
|||
termux_step_make() { |
|||
sh Build.sh -r |
|||
} |
|||
|
|||
termux_step_make_install() { |
|||
install -Dm700 mksh "$TERMUX_PREFIX"/bin/mksh |
|||
install -Dm600 mksh.1 "$TERMUX_PREFIX"/share/man/man1/mksh.1 |
|||
} |
@ -0,0 +1,12 @@ |
|||
diff -uNr mksh/sh.h mksh.mod/sh.h
|
|||
--- mksh/sh.h 2018-01-14 03:48:03.000000000 +0200
|
|||
+++ mksh.mod/sh.h 2019-02-26 00:23:47.223523334 +0200
|
|||
@@ -420,7 +420,7 @@
|
|||
#ifdef __OS2__ |
|||
#define MKSH_UNIXROOT "/@unixroot" |
|||
#else |
|||
-#define MKSH_UNIXROOT ""
|
|||
+#define MKSH_UNIXROOT "@TERMUX_PREFIX@"
|
|||
#endif |
|||
|
|||
#ifdef MKSH_DOSPATH |
@ -0,0 +1,9 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://mktorrent.sourceforge.net |
|||
TERMUX_PKG_DESCRIPTION="command line utility to create BitTorrent metainfo files" |
|||
TERMUX_PKG_LICENSE="GPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=1.1 |
|||
TERMUX_PKG_REVISION=2 |
|||
TERMUX_PKG_SRCURL=https://github.com/Rudde/mktorrent/archive/v$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=d0f47500192605d01b5a2569c605e51ed319f557d24cfcbcb23a26d51d6138c9 |
|||
TERMUX_PKG_BUILD_IN_SRC=yes |
@ -0,0 +1,41 @@ |
|||
diff -uNr mktorrent-1.1/ftw.c mktorrent-1.1.mod/ftw.c
|
|||
--- mktorrent-1.1/ftw.c 2017-01-11 23:13:16.000000000 +0200
|
|||
+++ mktorrent-1.1.mod/ftw.c 2019-01-30 16:51:09.927683504 +0200
|
|||
@@ -45,6 +45,20 @@
|
|||
off_t offset; |
|||
}; |
|||
|
|||
+struct DIR {
|
|||
+ int fd_;
|
|||
+};
|
|||
+
|
|||
+static long telldir_custom(struct DIR *dirp)
|
|||
+{
|
|||
+ return (long) lseek(dirp->fd_, 0, SEEK_CUR);
|
|||
+}
|
|||
+
|
|||
+static void seekdir_custom(DIR *dirp, long loc)
|
|||
+{
|
|||
+ (void) lseek(dirp->fd_, loc, SEEK_SET);
|
|||
+}
|
|||
+
|
|||
static struct dir_state *dir_state_new(struct dir_state *prev, |
|||
struct dir_state *next) |
|||
{ |
|||
@@ -88,14 +102,14 @@
|
|||
|
|||
name[ds->length] = DIRSEP_CHAR; |
|||
|
|||
- seekdir(ds->dir, ds->offset);
|
|||
+ seekdir_custom(ds->dir, ds->offset);
|
|||
|
|||
return 0; |
|||
} |
|||
|
|||
static unsigned int dir_state_close(struct dir_state *ds) |
|||
{ |
|||
- ds->offset = telldir(ds->dir);
|
|||
+ ds->offset = telldir_custom(ds->dir);
|
|||
if (ds->offset < 0) { |
|||
fprintf(stderr, "Error getting dir offset: %s\n", |
|||
strerror(errno)); |
@ -0,0 +1,9 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://pdfgrep.org/ |
|||
TERMUX_PKG_DESCRIPTION="Command line utility to search text in PDF files" |
|||
TERMUX_PKG_LICENSE="GPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=2.1.2 |
|||
TERMUX_PKG_REVISION=3 |
|||
TERMUX_PKG_SRCURL=https://pdfgrep.org/download/pdfgrep-$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=0ef3dca1d749323f08112ffe68e6f4eb7bc25f56f90a2e933db477261b082aba |
|||
TERMUX_PKG_DEPENDS="libc++, libgcrypt, libgpg-error, pcre, poppler" |
@ -0,0 +1,15 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://github.com/anordal/shellharden |
|||
TERMUX_PKG_DESCRIPTION="The corrective bash syntax highlighter" |
|||
TERMUX_PKG_LICENSE="MPL-2.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=4.1 |
|||
TERMUX_PKG_REVISION=2 |
|||
TERMUX_PKG_SRCURL=https://github.com/anordal/shellharden/archive/v$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=2714b827f72c336b7abf87f5a291ec182443a5479ec3eee516d6e04c81d56414 |
|||
TERMUX_PKG_BUILD_IN_SRC=yes |
|||
|
|||
termux_step_post_make_install() { |
|||
install -Dm700 \ |
|||
"$TERMUX_PKG_SRCDIR/target/$CARGO_TARGET_NAME"/release/shellharden \ |
|||
"$TERMUX_PREFIX"/bin/ |
|||
} |
@ -0,0 +1,10 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://swig.org |
|||
TERMUX_PKG_DESCRIPTION="Generate scripting interfaces to C/C++ code" |
|||
TERMUX_PKG_LICENSE="GPL-3.0" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=3.0.12 |
|||
TERMUX_PKG_REVISION=6 |
|||
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/swig/swig-$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d |
|||
TERMUX_PKG_DEPENDS="libc++, pcre, zlib" |
|||
TERMUX_PKG_BUILD_IN_SRC=yes |
@ -0,0 +1,23 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://www.html-tidy.org/ |
|||
TERMUX_PKG_DESCRIPTION="A tool to tidy down your HTML code to a clean style" |
|||
TERMUX_PKG_LICENSE="MIT" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=5.7.16 |
|||
TERMUX_PKG_REVISION=2 |
|||
_COMMIT=5f7e367cb54563dabda4bf4e3c11c6ecc68a0fa3 |
|||
TERMUX_PKG_SRCURL=https://github.com/htacg/tidy-html5/archive/${_COMMIT}.tar.gz |
|||
TERMUX_PKG_SHA256=7ff3ef0a774f44e780df9b94e48c2ea070a6cfc791b5bd907359fd718a7f1004 |
|||
TERMUX_PKG_DEPENDS="libxslt" |
|||
TERMUX_PKG_HOSTBUILD=true |
|||
|
|||
termux_step_host_build() { |
|||
## Host build required to generate man pages. |
|||
termux_setup_cmake |
|||
cmake "$TERMUX_PKG_SRCDIR" && make |
|||
} |
|||
|
|||
termux_step_post_make_install() { |
|||
install -Dm600 \ |
|||
"$TERMUX_PKG_HOSTBUILD_DIR"/tidy.1 \ |
|||
"$TERMUX_PREFIX"/share/man/man1/ |
|||
} |
@ -0,0 +1,66 @@ |
|||
diff -uNr tidy-html5/CMakeLists.txt tidy-html5.mod/CMakeLists.txt
|
|||
--- tidy-html5/CMakeLists.txt 2018-04-27 16:33:51.000000000 +0300
|
|||
+++ tidy-html5.mod/CMakeLists.txt 2019-01-20 18:53:15.625486585 +0200
|
|||
@@ -472,62 +472,6 @@
|
|||
|
|||
|
|||
################################################# |
|||
-# Create man pages
|
|||
-#################################################
|
|||
-
|
|||
-if (UNIX AND SUPPORT_CONSOLE_APP)
|
|||
- find_program( XSLTPROC_FOUND xsltproc )
|
|||
- if (XSLTPROC_FOUND)
|
|||
- ## NOTE: man name must match exe ie currently `${LIB_NAME}.1` not `tidy.1`
|
|||
- ## also could use `manpath` command output to determine target install path
|
|||
- set(TIDY_MANFILE ${LIB_NAME}.1)
|
|||
- message(STATUS "*** Generating man ${TIDY_MANFILE} custom commands...")
|
|||
- set(TIDY1XSL ${CMAKE_CURRENT_BINARY_DIR}/tidy1.xsl)
|
|||
- set(TIDYHELP ${CMAKE_CURRENT_BINARY_DIR}/tidy-help.xml)
|
|||
- set(TIDYCONFIG ${CMAKE_CURRENT_BINARY_DIR}/tidy-config.xml)
|
|||
- add_custom_target(man ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME}")
|
|||
-
|
|||
- ## Populate the @VARIABLES@ in the input file.
|
|||
- configure_file(
|
|||
- ${CMAKE_CURRENT_SOURCE_DIR}/man/tidy1.xsl.in
|
|||
- ${TIDY1XSL}
|
|||
- )
|
|||
-
|
|||
- # Run the built EXE to generate xml output .
|
|||
- add_custom_command(
|
|||
- TARGET man
|
|||
- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME} -xml-help > ${TIDYHELP}
|
|||
- COMMENT "Generate ${TIDYHELP}"
|
|||
- VERBATIM
|
|||
- )
|
|||
-
|
|||
- # Run the built EXE to generate more xml output.
|
|||
- add_custom_command(
|
|||
- TARGET man
|
|||
- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${LIB_NAME} -xml-config > ${TIDYCONFIG}
|
|||
- COMMENT "Generate ${TIDYCONFIG}"
|
|||
- VERBATIM
|
|||
- )
|
|||
-
|
|||
- # Run xsltproc to generate the install files.
|
|||
- add_custom_command(
|
|||
- TARGET man
|
|||
- DEPENDS ${TIDYHELP}
|
|||
- COMMAND xsltproc ARGS ${TIDY1XSL} ${TIDYHELP} > ${CMAKE_CURRENT_BINARY_DIR}/${TIDY_MANFILE}
|
|||
- COMMENT "Generate ${TIDY_MANFILE}"
|
|||
- VERBATIM
|
|||
- )
|
|||
-
|
|||
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${TIDY_MANFILE} DESTINATION ${MAN_INSTALL_DIR})
|
|||
-
|
|||
- else ()
|
|||
- message(STATUS "*** NOTE: xsltproc NOT FOUND! Can NOT generate man page.")
|
|||
- message(STATUS "*** You need to install xsltproc in your system.")
|
|||
- endif ()
|
|||
-endif ()
|
|||
-
|
|||
-
|
|||
-#################################################
|
|||
# Create MSI,EXE, DMG, DEB/RPM |
|||
# TODO: Check each of these builds |
|||
################################################# |
@ -0,0 +1,12 @@ |
|||
diff -uNr tidy-html5/include/tidyplatform.h tidy-html5.mod/include/tidyplatform.h
|
|||
--- tidy-html5/include/tidyplatform.h 2018-04-27 16:33:51.000000000 +0300
|
|||
+++ tidy-html5.mod/include/tidyplatform.h 2019-01-20 18:47:23.209564431 +0200
|
|||
@@ -569,7 +569,7 @@
|
|||
typedef unsigned int uint; |
|||
#endif |
|||
|
|||
-#if defined(HPUX_OS) || defined(CYGWIN_OS) || defined(MAC_OS) || defined(BSD_BASED_OS) || defined(_WIN32)
|
|||
+#if defined(HPUX_OS) || defined(CYGWIN_OS) || defined(MAC_OS) || defined(BSD_BASED_OS) || defined(_WIN32) || defined(__ANDROID__)
|
|||
# undef ulong |
|||
typedef unsigned long ulong; |
|||
#endif |
@ -0,0 +1,26 @@ |
|||
TERMUX_PKG_HOMEPAGE=https://bitbucket.org/tmedwards/tweego |
|||
TERMUX_PKG_DESCRIPTION="A free command line compiler for Twine/Twee story formats" |
|||
TERMUX_PKG_LICENSE="BSD" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=1.3.0 |
|||
TERMUX_PKG_REVISION=2 |
|||
TERMUX_PKG_SRCURL=https://bitbucket.org/tmedwards/tweego/get/v$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=1c62e3d91d7f3b208695896a51b19771e6f94af7b42d99aa00022b405473d895 |
|||
|
|||
termux_step_make() { |
|||
termux_setup_golang |
|||
|
|||
export GOPATH=$TERMUX_PKG_BUILDDIR |
|||
mkdir -p "$GOPATH"/src/bitbucket.org/tmedwards |
|||
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/bitbucket.org/tmedwards/tweego |
|||
|
|||
cd "$GOPATH"/src/bitbucket.org/tmedwards/tweego |
|||
go get -d -v bitbucket.org/tmedwards/tweego |
|||
go build |
|||
} |
|||
|
|||
termux_step_make_install() { |
|||
install -Dm700 \ |
|||
"$GOPATH"/src/bitbucket.org/tmedwards/tweego/tweego \ |
|||
"$TERMUX_PREFIX"/bin/ |
|||
} |
@ -0,0 +1,12 @@ |
|||
diff -uNr wordgrinder-0.7.2/Makefile wordgrinder-0.7.2.mod/Makefile
|
|||
--- wordgrinder-0.7.2/Makefile 2018-11-29 21:12:27.000000000 +0200
|
|||
+++ wordgrinder-0.7.2.mod/Makefile 2019-01-28 20:03:20.720358428 +0200
|
|||
@@ -86,7 +86,7 @@
|
|||
|
|||
# Do you want your binaries stripped on installation? |
|||
|
|||
-WANT_STRIPPED_BINARIES ?= yes
|
|||
+WANT_STRIPPED_BINARIES ?= no
|
|||
|
|||
# =========================================================================== |
|||
# END OF CONFIGURATION OPTIONS |
@ -0,0 +1,49 @@ |
|||
diff -uNr wordgrinder-0.7.2/build.lua wordgrinder-0.7.2.mod/build.lua
|
|||
--- wordgrinder-0.7.2/build.lua 2018-11-29 21:12:27.000000000 +0200
|
|||
+++ wordgrinder-0.7.2.mod/build.lua 2019-01-28 20:10:29.090884934 +0200
|
|||
@@ -496,11 +496,9 @@
|
|||
if has_package(luapackage) then |
|||
if want_frontend("x11") then |
|||
build_wordgrinder_binary("bin/xwordgrinder", luapackage, "x11", buildstyle) |
|||
- run_wordgrinder_tests("bin/xwordgrinder", luapackage, "x11", buildstyle)
|
|||
end |
|||
if want_frontend("curses") then |
|||
build_wordgrinder_binary("bin/wordgrinder", luapackage, "curses", buildstyle) |
|||
- run_wordgrinder_tests("bin/wordgrinder", luapackage, "curses", buildstyle)
|
|||
end |
|||
end |
|||
end |
|||
@@ -526,23 +524,14 @@
|
|||
return binary |
|||
end |
|||
|
|||
- local preferred_test
|
|||
local preferred_curses |
|||
local preferred_x11 |
|||
if want_frontend("curses") then |
|||
preferred_curses = "bin/wordgrinder-"..package_name(LUA_PACKAGE).."-curses-release" |
|||
- preferred_test = "test-"..package_name(LUA_PACKAGE).."-curses-debug"
|
|||
-
|
|||
- preferred_curses = strip_binary(preferred_curses)
|
|||
install_file("755", preferred_curses, DESTDIR..BINDIR.."/wordgrinder") |
|||
end |
|||
if want_frontend("x11") then |
|||
preferred_x11 = "bin/xwordgrinder-"..package_name(LUA_PACKAGE).."-x11-release" |
|||
- if not preferred_test then
|
|||
- preferred_test = "test-"..package_name(LUA_PACKAGE).."-x11-debug"
|
|||
- end
|
|||
-
|
|||
- preferred_x11 = strip_binary(preferred_x11)
|
|||
install_file("755", preferred_x11, DESTDIR..BINDIR.."/xwordgrinder") |
|||
end |
|||
install_file("644", "bin/wordgrinder.1", DESTDIR..MANDIR.."/man1/wordgrinder.1") |
|||
@@ -553,8 +542,7 @@
|
|||
emit(" version = ", VERSION) |
|||
|
|||
emit("build binaries: phony bin/wordgrinder.1 ", preferred_curses or "", " ", preferred_x11 or "", " ") |
|||
- emit("build tests: phony ", preferred_test)
|
|||
- emit("build all: phony binaries tests")
|
|||
+ emit("build all: phony binaries")
|
|||
emit("build install: phony all ", table.concat(installables, " ")) |
|||
emit("build install-notests: phony binaries ", table.concat(installables, " ")) |
|||
end |
@ -0,0 +1,25 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://cowlark.com/wordgrinder/ |
|||
TERMUX_PKG_DESCRIPTION="A Unicode-aware character cell word processor" |
|||
TERMUX_PKG_LICENSE="MIT" |
|||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr" |
|||
TERMUX_PKG_VERSION=0.7.2 |
|||
TERMUX_PKG_REVISION=5 |
|||
TERMUX_PKG_SRCURL=https://github.com/davidgiven/wordgrinder/archive/$TERMUX_PKG_VERSION.tar.gz |
|||
TERMUX_PKG_SHA256=4e1bc659403f98479fe8619655f901c8c03eb87743374548b4d20a41d31d1dff |
|||
TERMUX_PKG_DEPENDS="liblua, ncurses, zlib" |
|||
TERMUX_PKG_BUILD_IN_SRC=yes |
|||
|
|||
termux_step_make() { |
|||
termux_setup_ninja |
|||
make CC=gcc OBJDIR="$PWD/build" "$PWD"/build/lua |
|||
make OBJDIR="$PWD/build" LUA_PACKAGE=lua |
|||
} |
|||
|
|||
termux_step_make_install() { |
|||
install -Dm700 \ |
|||
"$TERMUX_PKG_SRCDIR"/bin/wordgrinder-lua-curses-release \ |
|||
"$TERMUX_PREFIX"/bin/wordgrinder |
|||
install -Dm600 \ |
|||
"$TERMUX_PKG_SRCDIR"/bin/wordgrinder.1 \ |
|||
"$TERMUX_PREFIX"/share/man/man1/ |
|||
} |
Loading…
Reference in new issue