move some packages from unstable repo
* geth * jbig2dec * myrepos * oleo * samefile * sdcv * yadm
This commit is contained in:
parent
afcd97016a
commit
b45fc730dc
|
@ -0,0 +1,30 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://geth.ethereum.org/
|
||||
TERMUX_PKG_DESCRIPTION="Go implementation of the Ethereum protocol"
|
||||
TERMUX_PKG_LICENSE="LGPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.9.3
|
||||
TERMUX_PKG_SRCURL=https://github.com/ethereum/go-ethereum/archive/v$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=d16e8b42b37a23b448775f27f0d2018425e6a1e6fc215f764aad3665a20bf493
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_golang
|
||||
|
||||
export GOPATH=$TERMUX_PKG_BUILDDIR
|
||||
mkdir -p "$GOPATH"/src/github.com/ethereum
|
||||
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/ethereum/go-ethereum
|
||||
|
||||
cd "$GOPATH"/src/github.com/ethereum/go-ethereum
|
||||
for applet in geth abigen bootnode ethkey evm rlpdump puppeth; do
|
||||
(cd ./cmd/"$applet" && go build -v)
|
||||
done
|
||||
unset applet
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
for applet in geth abigen bootnode ethkey evm rlpdump puppeth; do
|
||||
install -Dm700 \
|
||||
"$TERMUX_PKG_SRCDIR/cmd/$applet/$applet" \
|
||||
"$TERMUX_PREFIX"/bin/
|
||||
done
|
||||
unset applet
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
--- go-ethereum-1.8.23/vendor/github.com/karalabe/usb/hidapi/libusb/hid.c 2019-02-20 10:48:12.000000000 +0200
|
||||
+++ go-ethereum-1.8.23.mod/vendor/github.com/karalabe/usb/hidapi/libusb/hid.c 2019-04-10 12:56:56.087538378 +0300
|
||||
@@ -60,9 +60,9 @@
|
||||
pthread_cond_t cond;
|
||||
int count;
|
||||
int trip_count;
|
||||
-} pthread_barrier_t;
|
||||
+} _pthread_barrier_t;
|
||||
|
||||
-static int pthread_barrier_init(pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count)
|
||||
+static int _pthread_barrier_init(_pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count)
|
||||
{
|
||||
if(count == 0) {
|
||||
errno = EINVAL;
|
||||
@@ -82,14 +82,14 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int pthread_barrier_destroy(pthread_barrier_t *barrier)
|
||||
+static int _pthread_barrier_destroy(_pthread_barrier_t *barrier)
|
||||
{
|
||||
pthread_cond_destroy(&barrier->cond);
|
||||
pthread_mutex_destroy(&barrier->mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
-static int pthread_barrier_wait(pthread_barrier_t *barrier)
|
||||
+static int _pthread_barrier_wait(_pthread_barrier_t *barrier)
|
||||
{
|
||||
pthread_mutex_lock(&barrier->mutex);
|
||||
++(barrier->count);
|
||||
@@ -164,7 +164,7 @@
|
||||
pthread_t thread;
|
||||
pthread_mutex_t mutex; /* Protects input_reports */
|
||||
pthread_cond_t condition;
|
||||
- pthread_barrier_t barrier; /* Ensures correct startup sequence */
|
||||
+ _pthread_barrier_t barrier; /* Ensures correct startup sequence */
|
||||
int shutdown_thread;
|
||||
int cancelled;
|
||||
struct libusb_transfer *transfer;
|
||||
@@ -185,7 +185,7 @@
|
||||
|
||||
pthread_mutex_init(&dev->mutex, NULL);
|
||||
pthread_cond_init(&dev->condition, NULL);
|
||||
- pthread_barrier_init(&dev->barrier, NULL, 2);
|
||||
+ _pthread_barrier_init(&dev->barrier, NULL, 2);
|
||||
|
||||
return dev;
|
||||
}
|
||||
@@ -193,7 +193,7 @@
|
||||
static void free_hid_device(hid_device *dev)
|
||||
{
|
||||
/* Clean up the thread objects */
|
||||
- pthread_barrier_destroy(&dev->barrier);
|
||||
+ _pthread_barrier_destroy(&dev->barrier);
|
||||
pthread_cond_destroy(&dev->condition);
|
||||
pthread_mutex_destroy(&dev->mutex);
|
||||
|
||||
@@ -817,7 +817,7 @@
|
||||
libusb_submit_transfer(dev->transfer);
|
||||
|
||||
/* Notify the main thread that the read thread is up and running. */
|
||||
- pthread_barrier_wait(&dev->barrier);
|
||||
+ _pthread_barrier_wait(&dev->barrier);
|
||||
|
||||
/* Handle all the events. */
|
||||
while (!dev->shutdown_thread) {
|
||||
@@ -973,7 +973,7 @@
|
||||
pthread_create(&dev->thread, NULL, read_thread, dev);
|
||||
|
||||
/* Wait here for the read thread to be initialized. */
|
||||
- pthread_barrier_wait(&dev->barrier);
|
||||
+ _pthread_barrier_wait(&dev->barrier);
|
||||
|
||||
}
|
||||
free(dev_path);
|
|
@ -0,0 +1,10 @@
|
|||
TERMUX_SUBPKG_DESCRIPTION="Additional utilities for Geth (like abigen, bootnode, evm, puppeth)"
|
||||
|
||||
TERMUX_SUBPKG_INCLUDE="
|
||||
bin/abigen
|
||||
bin/bootnode
|
||||
bin/ethkey
|
||||
bin/evm
|
||||
bin/rlpdump
|
||||
bin/swarm
|
||||
bin/puppeth"
|
|
@ -0,0 +1,11 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://jbig2dec.com/
|
||||
TERMUX_PKG_DESCRIPTION="Decoder implementation of the JBIG2 image compression format"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=0.16
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_SRCURL=https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/jbig2dec-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=a4f6bf15d217e7816aa61b92971597c801e81f0a63f9fe1daee60fb88e0f0602
|
||||
TERMUX_PKG_DEPENDS="libpng"
|
||||
TERMUX_PKG_BREAKS="jbig2dec-dev"
|
||||
TERMUX_PKG_REPLACES="jbig2dec-dev"
|
|
@ -0,0 +1,12 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://myrepos.branchable.com/
|
||||
TERMUX_PKG_DESCRIPTION="Tool to manage all your version control repos"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.20180726
|
||||
TERMUX_PKG_REVISION=4
|
||||
TERMUX_PKG_SRCURL=https://deb.debian.org/debian/pool/main/m/myrepos/myrepos_$TERMUX_PKG_VERSION.tar.xz
|
||||
TERMUX_PKG_SHA256=9e9e4c114aae22e0aac51ecbc8d84ae617a5e5dfa979fab0d3bc42945f603f1e
|
||||
TERMUX_PKG_DEPENDS="git, perl"
|
||||
TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
|
@ -0,0 +1,11 @@
|
|||
--- ../tmp-orig/oleo-1.99.16/src/basic.h 2000-08-10 23:02:49.000000000 +0200
|
||||
+++ src/src/basic.h 2005-03-18 20:42:30.963398869 +0100
|
||||
@@ -36,9 +36,6 @@
|
||||
|
||||
extern const int colmagic[9];
|
||||
extern const int rowmagic[9];
|
||||
-extern char * motion_name[9];
|
||||
-extern enum motion_magic complementary_motion[9];
|
||||
-extern enum motion_magic opposite_motion[9];
|
||||
|
||||
extern int run_load_hooks;
|
|
@ -0,0 +1,15 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/oleo/
|
||||
TERMUX_PKG_DESCRIPTION="The GNU Spreadsheet"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.99.16
|
||||
TERMUX_PKG_REVISION=6
|
||||
TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/oleo/oleo-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=6598df85d06ff2534ec08ed0657508f17dbbc58dd02d419160989de7c487bc86
|
||||
TERMUX_PKG_DEPENDS="ncurses"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-x --infodir=$TERMUX_PREFIX/share/info"
|
||||
TERMUX_PKG_KEEP_INFOPAGES=true
|
||||
|
||||
TERMUX_PKG_RM_AFTER_INSTALL="
|
||||
Oleo/*
|
||||
share/oleo/oleo.html"
|
|
@ -0,0 +1,11 @@
|
|||
--- ../tmp-orig/oleo-1.99.16/src/global.h 2005-03-18 20:45:06.300809009 +0100
|
||||
+++ src/src/global.h 2005-03-18 20:42:30.963398869 +0100
|
||||
@@ -231,7 +231,7 @@
|
||||
|
||||
extern unsigned short current_cycle;
|
||||
extern int ioerror;
|
||||
-extern int errno;
|
||||
+#include <errno.h>
|
||||
extern const char oleo_version_string[];
|
||||
|
||||
extern double astof (char **);
|
|
@ -0,0 +1,20 @@
|
|||
--- ../tmp-orig/oleo-1.99.16/src/io-term.c 2001-02-14 00:38:06.000000000 +0100
|
||||
+++ src/src/io-term.c 2005-03-18 20:43:36.991391876 +0100
|
||||
@@ -234,7 +234,7 @@
|
||||
|
||||
if (Preferences[i].copynext) {
|
||||
ptr += strlen(Preferences[i].name) + 1;
|
||||
- ((char *)Preferences[i].var) = strdup(ptr);
|
||||
+ Preferences[i].var = strdup(ptr);
|
||||
} else if (Preferences[i].var)
|
||||
*((int *)Preferences[i].var) = Preferences[i].value;
|
||||
|
||||
@@ -770,6 +770,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
+extern struct cmd_func cmd_funcs[];
|
||||
+
|
||||
static void
|
||||
init_maps (void)
|
||||
{
|
|
@ -0,0 +1,10 @@
|
|||
--- ../tmp-orig/oleo-1.99.16/src/io-term.h 2001-02-10 09:27:04.000000000 +0100
|
||||
+++ src/src/io-term.h 2005-03-18 20:43:06.794338687 +0100
|
||||
@@ -44,8 +44,6 @@
|
||||
extern int default_lock;
|
||||
|
||||
|
||||
-extern struct cmd_func cmd_funcs[];
|
||||
-
|
||||
/* When printing ascii output, this controls page width. */
|
||||
extern int modified;
|
|
@ -0,0 +1,29 @@
|
|||
--- plotter.c 2018-02-22 08:59:06.651246905 +0000
|
||||
+++ src/src/plotter.c 2018-02-22 09:00:15.471539332 +0000
|
||||
@@ -2639,8 +2639,6 @@
|
||||
case SP_PLOT_PIE:
|
||||
sp_pie_plot_point(mg, point);
|
||||
break;
|
||||
- default:
|
||||
- /* ?? */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2770,8 +2768,6 @@
|
||||
case SP_PLOT_PIE:
|
||||
sp_pie_begin_graph(mg, scale, trans_x, trans_y);
|
||||
break;
|
||||
- default:
|
||||
- /* ??? */
|
||||
}
|
||||
|
||||
sp_first_dataset(mg);
|
||||
@@ -2790,8 +2786,6 @@
|
||||
case SP_PLOT_PIE:
|
||||
sp_pie_end_graph(mg);
|
||||
break;
|
||||
- default:
|
||||
- /* ??? */
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
--- src/texi2html.in 2018-02-22 08:34:18.770561548 +0000
|
||||
+++ src/doc/texi2html.in 2018-02-22 08:35:13.413226481 +0000
|
||||
@@ -2752,7 +2752,7 @@
|
||||
s/\@refill\s+//g;
|
||||
# other substitutions
|
||||
&simple_substitutions;
|
||||
- s/\@value{($VARRE)}/$value{$1}/eg;
|
||||
+ s/\@value\{($VARRE)\}/$value{$1}/eg;
|
||||
s/\@footnote\{/\@footnote$docu_doc\{/g; # mark footnotes, cf. pass 4
|
||||
#
|
||||
# analyze the tag again
|
||||
@@ -3174,7 +3174,7 @@
|
||||
#
|
||||
# xref
|
||||
#
|
||||
- while (/\@(x|px|info|)ref{([^{}]+)(}?)/) {
|
||||
+ while (/\@(x|px|info|)ref\{([^{}]+)(\}?)/) {
|
||||
# note: Texinfo may accept other characters
|
||||
($type, $nodes, $full) = ($1, $2, $3);
|
||||
($before, $after) = ($`, $');
|
||||
@@ -3790,9 +3790,9 @@
|
||||
my $ret;
|
||||
|
||||
$level--; # here we start at 0
|
||||
- if ($name =~ /^appendix/ || defined(@appendix_sec_num)) {
|
||||
+ if ($name =~ /^appendix/ || defined()) {
|
||||
# appendix style
|
||||
- if (defined(@appendix_sec_num)) {
|
||||
+ if (defined()) {
|
||||
&incr_sec_num($level, @appendix_sec_num);
|
||||
} else {
|
||||
@appendix_sec_num = ('A', 0, 0, 0);
|
||||
@@ -3800,7 +3800,7 @@
|
||||
$ret = join('.', @appendix_sec_num[0..$level]);
|
||||
} else {
|
||||
# normal style
|
||||
- if (defined(@normal_sec_num))
|
||||
+ if (defined())
|
||||
{
|
||||
&incr_sec_num($level, @normal_sec_num);
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
--- ../tmp-orig/oleo-1.99.16/src/xrdb.c 2000-08-10 23:02:51.000000000 +0200
|
||||
+++ src/src/xrdb.c 2005-03-18 20:42:30.966398277 +0100
|
||||
@@ -450,6 +450,7 @@
|
||||
|
||||
#ifdef TESTRM
|
||||
#include <stdio.h>
|
||||
+#include <errno.h>
|
||||
#include "arg-list.h"
|
||||
|
||||
static void
|
||||
@@ -457,7 +458,6 @@
|
||||
char *msg, *prog;
|
||||
int x1, x2, x3, x4, x5;
|
||||
{
|
||||
- extern int errno;
|
||||
|
||||
if (errno)
|
||||
perror (prog);
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
TERMUX_PKG_HOMEPAGE=http://www.schweikhardt.net/samefile/
|
||||
TERMUX_PKG_DESCRIPTION="Finds files with identical contents, independent of file name"
|
||||
TERMUX_PKG_LICENSE="BSD"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=2.15
|
||||
TERMUX_PKG_REVISION=4
|
||||
TERMUX_PKG_SRCURL=http://www.schweikhardt.net/samefile-$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=26d322e3445ff7273867332311c33a90c8ef037cbd6b19d9468e1742833ea4b6
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
|
@ -0,0 +1,10 @@
|
|||
TERMUX_PKG_HOMEPAGE=http://dushistov.github.io/sdcv/
|
||||
TERMUX_PKG_DESCRIPTION="StarDict Console Version"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=0.5.2
|
||||
TERMUX_PKG_REVISION=10
|
||||
TERMUX_PKG_SRCURL=https://github.com/Dushistov/sdcv/archive/v$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=ec08dc084a0748d5a89df01a20bbf294f09b0366295cd418000f15d2e043c4f7
|
||||
TERMUX_PKG_DEPENDS="glib, libc++, readline, zlib"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DENABLE_NLS=off"
|
|
@ -0,0 +1,11 @@
|
|||
diff -uNr sdcv-0.5.2/src/mapfile.hpp sdcv-0.5.2.mod/src/mapfile.hpp
|
||||
--- sdcv-0.5.2/src/mapfile.hpp 2017-08-16 10:14:23.000000000 +0300
|
||||
+++ sdcv-0.5.2.mod/src/mapfile.hpp 2019-01-20 17:11:14.779052646 +0200
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
#include <fcntl.h>
|
||||
+#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/types.h>
|
||||
#endif
|
|
@ -0,0 +1,21 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://github.com/TheLocehiliosan/yadm
|
||||
TERMUX_PKG_DESCRIPTION="Yet Another Dotfiles Manager"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
||||
TERMUX_PKG_VERSION=1.12.0
|
||||
TERMUX_PKG_REVISION=5
|
||||
TERMUX_PKG_SRCURL=https://github.com/TheLocehiliosan/yadm/archive/$TERMUX_PKG_VERSION.tar.gz
|
||||
TERMUX_PKG_SHA256=c3d612d01e2027d5f457e0f7d120bc67251b716c373d99fe70638bd86edf107f
|
||||
TERMUX_PKG_DEPENDS="git"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_make() {
|
||||
# Do not try to run 'make' as this causes
|
||||
# build failure.
|
||||
return
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm700 "$TERMUX_PKG_SRCDIR"/yadm "$TERMUX_PREFIX"/bin/
|
||||
install -Dm600 "$TERMUX_PKG_SRCDIR"/yadm.1 "$TERMUX_PREFIX"/share/man/man1/
|
||||
}
|
Loading…
Reference in New Issue