disabled packages: add vlang - needs update, repl doesn't work

This commit is contained in:
Leonid Pliushch 2021-10-08 18:51:03 +03:00
parent 27bd7f291a
commit 325f7b6061
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,28 @@
diff -uNr v-0.2.2/Makefile v-0.2.2.mod/Makefile
--- v-0.2.2/Makefile 2021-01-22 09:39:44.000000000 +0000
+++ v-0.2.2.mod/Makefile 2021-05-06 11:58:25.054252805 +0000
@@ -82,23 +82,16 @@
$(V) self
endif
else
- $(CC) $(CFLAGS) -g -std=gnu99 -w -o $(V) $(VC)/$(VCFILE) -lm -lpthread $(LDFLAGS)
+ $(CC) $(CFLAGS) -g -std=gnu99 -w -o $(V) $(VC)/$(VCFILE) -lm $(LDFLAGS)
ifdef ANDROID
chmod 755 v
endif
-ifdef prod
- $(V) -prod self
-else
- $(V) self
-endif
-
ifndef ANDROID
$(MAKE) modules
endif
endif
@echo "V has been successfully built"
- @$(V) -version
#clean: clean_tmp
#git clean -xf

View File

@ -0,0 +1,19 @@
TERMUX_PKG_HOMEPAGE=https://github.com/vlang/v
TERMUX_PKG_DESCRIPTION="Simple, fast, safe, compiled language for developing maintainable software"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=0.2.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/vlang/v/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=9152eec96d2eeb575782cf138cb837f315e48c173878857441d98ba679e3a9bf
TERMUX_PKG_DEPENDS="clang"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="ANDROID=1"
termux_step_make_install() {
install -Dm700 v "$TERMUX_PREFIX"/libexec/vlang/v
ln -sfr "$TERMUX_PREFIX"/libexec/vlang/v "$TERMUX_PREFIX"/bin/v
rm -rf "$TERMUX_PREFIX"/libexec/vlang/vlib
cp -a cmd vlib "$TERMUX_PREFIX"/libexec/vlang/
}