@@ -0,0 +1,47 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.55.0")
|
||||
description("a free and open source distributed version control system")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://www.kernel.org/pub/software/scm/git/git-2.55.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/rust")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libintl-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("libcurl-dev @target")
|
||||
builddep("libexpat-dev @target")
|
||||
builddep("gettext")
|
||||
builddep("libarchive-tools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('git')}",
|
||||
"--with-gitconfig=/var/config/git/config.ini",
|
||||
"--with-gitattributes=/var/config/git/attributes.txt",
|
||||
])
|
||||
cpp.make()
|
||||
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")
|
||||
composer.add_dir("share/gitweb")
|
||||
composer.add_dir("share/perl5")
|
||||
|
||||
|
||||
package("git")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libz @same-arch")
|
||||
on_pack(pack_git)
|
||||
Reference in New Issue
Block a user