disabled packages: add vlang - needs update, repl doesn't work
This commit is contained in:
parent
27bd7f291a
commit
325f7b6061
28
disabled-packages/vlang/Makefile.patch
Normal file
28
disabled-packages/vlang/Makefile.patch
Normal 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
|
19
disabled-packages/vlang/build.sh
Normal file
19
disabled-packages/vlang/build.sh
Normal 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/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user