Skip to content

Commit

Permalink
new package: lit
Browse files Browse the repository at this point in the history
  • Loading branch information
mbekkomo committed Jun 8, 2024
1 parent 2b00aa3 commit d66cffe
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/lit/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
TERMUX_PKG_HOMEPAGE=https://luvit.io
TERMUX_PKG_DESCRIPTION="Toolkit for developing, sharing, and running luvit/lua programs and libraries."
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.8.5
TERMUX_PKG_SRCURL=https://github.com/luvit/lit/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=1940ca56474d5eebd15a2b2aecd961675f1e5b074ae506aeba03f4c4374101cf
TERMUX_PKG_BUILD_DEPENDS="luvi"
TERMUX_PKG_SUGGESTS="luvi, luvit"
TERMUX_PKG_BUILD_IN_SRC=true

termux_step_configure() {
curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh
mv lit "${TERMUX_PKG_SRCDIR}/_lit"
}

termux_step_make() {
mkdir bin
./_lit make . ./bin/lit "${TERMUX_PREFIX}/bin/luvi"
}

termux_step_make_install() {
install -Dm700 ./bin/lit "${TERMUX_PREFIX}/bin/lit"
}

0 comments on commit d66cffe

Please sign in to comment.