@ -4,12 +4,12 @@ TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION = 0.19.0
TERMUX_PKG_VERSION = 0.19.0
TERMUX_PKG_SRCURL = https://nim-lang.org/download/nim-$TERMUX_PKG_VERSION .tar.xz
TERMUX_PKG_SRCURL = https://nim-lang.org/download/nim-$TERMUX_PKG_VERSION .tar.xz
TERMUX_PKG_SHA256 = a1996347253c590de42f6e36e33bd1d5ec7479c0aa013769b92deef802df3c2e
TERMUX_PKG_SHA256 = a1996347253c590de42f6e36e33bd1d5ec7479c0aa013769b92deef802df3c2e
TERMUX_PKG_DEPENDS = "clang, git, libandroid-glob"
TERMUX_PKG_HOSTBUILD = yes
TERMUX_PKG_HOSTBUILD = yes
TERMUX_PKG_BUILD_IN_SRC = yes
TERMUX_PKG_BUILD_IN_SRC = yes
TERMUX_PKG_DEPENDS = "git, clang, libandroid-glob"
termux_step_host_build( ) {
termux_step_host_build( ) {
cp ../src/* -r ./
cp -r ../src/* ./
make -j $TERMUX_MAKE_PROCESSES CC = gcc LD = gcc
make -j $TERMUX_MAKE_PROCESSES CC = gcc LD = gcc
}
}
@ -45,11 +45,12 @@ termux_step_make() {
cd dist/nimble/src
cd dist/nimble/src
nim --define:termux -d:release --os:android --cpu:$NIM_ARCH -t:-I/data/data/com.termux/files/usr/include -l:"-L/data/data/com.termux/files/usr/lib -landroid-glob" c nimble.nim
nim --define:termux -d:release --os:android --cpu:$NIM_ARCH -t:-I/data/data/com.termux/files/usr/include -l:"-L/data/data/com.termux/files/usr/lib -landroid-glob" c nimble.nim
}
}
termux_step_make_install( ) {
termux_step_make_install( ) {
./install.sh $TERMUX_PREFIX /lib
./install.sh $TERMUX_PREFIX /lib
cp koch $TERMUX_PREFIX /lib/nim/bin
cp koch $TERMUX_PREFIX /lib/nim/bin/
cp dist/nimble/src/nimble $TERMUX_PREFIX /lib/nim/bin
cp dist/nimble/src/nimble $TERMUX_PREFIX /lib/nim/bin/
ln -sf $TERMUX_PREFIX /lib/nim/bin/nim $TERMUX_PREFIX /bin/
ln -sfr $TERMUX_PREFIX /lib/nim/bin/nim $TERMUX_PREFIX /bin/
ln -sf $TERMUX_PREFIX /lib/nim/bin/koch $TERMUX_PREFIX /bin/
ln -sfr $TERMUX_PREFIX /lib/nim/bin/koch $TERMUX_PREFIX /bin/
ln -sf $TERMUX_PREFIX /lib/nim/bin/nimble $TERMUX_PREFIX /bin/
ln -sfr $TERMUX_PREFIX /lib/nim/bin/nimble $TERMUX_PREFIX /bin/
}
}