new package: outfieldr
This commit is contained in:
parent
dafb16e23c
commit
09b2e01070
19
packages/outfieldr/build.sh
Normal file
19
packages/outfieldr/build.sh
Normal 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
|
||||||
|
}
|
11
packages/outfieldr/build.zig.patch
Normal file
11
packages/outfieldr/build.zig.patch
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user