Merge pull request 'feat: add package git' (#83) from sisungo/semios-packages:git into master
Reviewed-on: #83
This commit was merged in pull request #83.
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
import subprocess
|
||||||
|
|
||||||
|
from lib import 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")
|
||||||
|
|
||||||
|
|
||||||
|
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)
|
||||||
Reference in New Issue
Block a user