1 parent
0751b65860
commit
2d0ea87f1d
6 files changed
+56
No files matched your search
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,56 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
upstream_version = "5.9.2"
|
||||
|
||||
version(upstream_version)
|
||||
description("Zsh is a shell designed for interactive use, although it is also a powerful scripting language.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.zsh.org/pub/zsh-5.9.2.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libintl-dev @target")
|
||||
builddep("libncurses-dev @target")
|
||||
|
||||
block_hook("autolink")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('zsh')}",
|
||||
f"--enable-etcdir={get_prefix('zsh')}/share/etc",
|
||||
f"--enable-zshenv={get_prefix('zsh')}/share/etc/zshenv",
|
||||
f"--enable-zshrc={get_prefix('zsh')}/share/etc/zshrc",
|
||||
f"--enable-zprofile={get_prefix('zsh')}/share/etc/zprofile",
|
||||
f"--enable-zlogin={get_prefix('zsh')}/share/etc/zlogin",
|
||||
f"--enable-zlogout={get_prefix('zsh')}/share/etc/zlogout",
|
||||
"--enable-site-fndir=/share/zsh/site-functions",
|
||||
"--enable-site-scriptdir=/share/zsh/scripts",
|
||||
"--enable-multibyte",
|
||||
"--enable-libc-musl",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
etcdir = os.getcwd() + "/etc"
|
||||
|
||||
def pack(composer):
|
||||
composer.add("lib")
|
||||
composer.add("bin")
|
||||
composer.makedirs("share/zsh")
|
||||
composer.add(f"share/zsh/{upstream_version}")
|
||||
composer.add(etcdir, "share/etc")
|
||||
|
||||
package("zsh")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libncurses @same-arch")
|
||||
link("bin/zsh", "/bin/zsh")
|
||||
link(f"bin/zsh-{upstream_version}", f"/bin/zsh-{upstream_version}")
|
||||
on_pack(pack)
|
||||
Reference in new issue
Block a user