diff --git a/packages/tmux/pkgbuild.py b/packages/tmux/pkgbuild.py new file mode 100644 index 0000000..91510aa --- /dev/null +++ b/packages/tmux/pkgbuild.py @@ -0,0 +1,37 @@ +import os + +from lib import arch, cpp +from lib.make import * + + +version("3.8") +description("the terminal multiplexer that keeps your work running") +maintainer("sisungo ") +source_managed("github://tmux/tmux#3.8", "autotools") + +builddep("shortcut/c") +builddep("shortcut/autotools") +builddep("libevent-dev @target") +builddep("libncurses-dev @target") +builddep("byacc") + + +def build(): + os.environ["ac_cv_search_forkpty"] = "none required" + os.environ["ac_cv_func_forkpty"] = "yes" + cpp.configure([ + f"--prefix={get_prefix('tmux')}", + "--enable-optimizations", + "--enable-sixel", + ]) + cpp.make() + cpp.make_install() + +on_build(build) + + +package("tmux") +dep("semi-libc @same-arch") +dep("libevent @same-arch") +dep("libncurses @same-arch") +cpp.use_auto_pack(["bin"])