38 lines
814 B
Python
38 lines
814 B
Python
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 <[email protected]>")
|
|
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"])
|