Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addpkg(main/gleamfonts): CLI tool to install nerdfonts on Termux #21121

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions packages/gleamfonts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
TERMUX_PKG_HOMEPAGE=https://github.com/massix/gleamfonts
TERMUX_PKG_DESCRIPTION="Command-line tool to fetch and install fonts from NerdFonts repository"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="massix"
TERMUX_PKG_VERSION="1.1.0"
TERMUX_PKG_SRCURL=https://github.com/massix/gleamfonts/archive/refs/tags/v${TERMUX_PKG_VERSION}.zip
TERMUX_PKG_SHA256=5b9fa88bd9048c1c14ccb479081bbb5792f3bd77954405fc4b5611bc58af794b
TERMUX_PKG_LICENSE_FILE=LICENSE
TERMUX_PKG_DEPENDS="erlang, libsqlite"
TERMUX_PKG_BUILD_DEPENDS="gleam"
TERMUX_PKG_PLATFORM_INDEPENDENT=false
TERMUX_QUIET_BUILD=false
TERMUX_PKG_BUILD_IN_SRC=true

termux_step_make() {
gleam deps download
ESQLITE_USE_SYSTEM=1 gleam build -t erlang
}


termux_step_make_install() {
ESQLITE_USE_SYSTEM=1 gleam export erlang-shipment
}

termux_step_extract_into_massagedir() {
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"/{bin,opt/gleamfonts}
install -m 0775 "$TERMUX_PKG_SRCDIR/scripts/gleamfonts" "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/bin"
cp -r "$TERMUX_PKG_SRCDIR"/build/erlang-shipment/* "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/opt/gleamfonts/"
}
Loading