new package: outfieldr

This commit is contained in:
Tee KOBAYASHI 2022-01-25 22:13:33 +09:00 committed by xtkoba
parent dafb16e23c
commit 09b2e01070
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,19 @@
TERMUX_PKG_HOMEPAGE=https://gitlab.com/ve-nt/outfieldr
TERMUX_PKG_DESCRIPTION="A TLDR client in Zig"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.0.2
TERMUX_PKG_SRCURL=https://gitlab.com/ve-nt/outfieldr.git
TERMUX_PKG_GIT_BRANCH=$TERMUX_PKG_VERSION
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686"
termux_step_make() {
termux_setup_zig
zig build -Dtarget=$ZIG_TARGET_NAME
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin bin/tldr
}

View File

@ -0,0 +1,11 @@
--- a/build.zig
+++ b/build.zig
@@ -24,6 +24,8 @@
const exe = b.addExecutable("tldr", "src/main.zig");
exe.setTarget(target);
exe.setBuildMode(mode);
+ exe.addLibPath("@TERMUX_PREFIX@/lib");
+ exe.linkSystemLibraryName("c++_shared");
exe.install();
exe.setOutputDir("bin");
exe.addOptions("build_options", options);