43 lines
983 B
Python
43 lines
983 B
Python
import subprocess
|
|
|
|
from lib import arch, cpp
|
|
from lib.make import *
|
|
|
|
version("2.55.0")
|
|
source_url("https://www.kernel.org/pub/software/scm/git/git-2.55.0.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep(f"libintl-dev @{arch.get_target()}")
|
|
builddep(f"libz-dev @{arch.get_target()}")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
"--prefix=",
|
|
"--with-gitconfig=/var/config/git/config.ini",
|
|
"--with-gitattributes=/var/config/git/attributes.txt",
|
|
]
|
|
)
|
|
cpp.make(["RUNTIME_PREFIX=YesPlease"])
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_git(composer):
|
|
composer.add_dir("bin", "bin")
|
|
composer.add_dir("libexec", "libexec")
|
|
composer.makedir("share")
|
|
composer.add_dir("share/git-core", "share/git-core")
|
|
composer.add_dir("share/gitweb", "share/gitweb")
|
|
composer.add_dir("share/perl5", "share/perl5")
|
|
|
|
|
|
package("git")
|
|
dep("semi-libc @same-arch")
|
|
dep("libz @same-arch")
|
|
on_pack(pack_git)
|