mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:12:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/usr/bin/env -S bash ../.port_include.sh
 | |
| port='git'
 | |
| version='2.40.0'
 | |
| files="https://mirrors.edge.kernel.org/pub/software/scm/git/git-${version}.tar.xz git-${version}.tar.xz b17a598fbf58729ef13b577465eb93b2d484df1201518b708b5044ff623bf46d"
 | |
| auth_type='sha256'
 | |
| useconfigure='true'
 | |
| configopts=("--target=${SERENITY_ARCH}-pc-serenity" "--with-lib=${SERENITY_INSTALL_ROOT}/usr/local" "CFLAGS=-DNO_IPV6" "LDFLAGS=-L${SERENITY_INSTALL_ROOT}/usr/local/lib")
 | |
| depends=("zlib" "curl")
 | |
| 
 | |
| build() {
 | |
|     run make "${makeopts[@]}" CURL_LDFLAGS="-lcurl -lssl -lcrypto -lz"
 | |
|     run make strip
 | |
| }
 | |
| 
 | |
| post_install() {
 | |
|     run mkdir -p "${SERENITY_INSTALL_ROOT}/home/anon"
 | |
|     cat << 'EOF' > "${SERENITY_INSTALL_ROOT}/home/anon/.gitconfig"
 | |
| [core]
 | |
|     editor = TextEditor
 | |
|     pager = less
 | |
| 
 | |
| [user]
 | |
|     email = anon
 | |
|     name = anon
 | |
| EOF
 | |
| }
 | |
| 
 | |
| export NO_PERL=YesPlease
 | |
| export NO_PYTHON=YesPlease
 | |
| export NO_EXPAT=YesPlease
 | |
| export NO_TCLTK=YesPlease
 | |
| export ac_cv_fread_reads_directories=no
 | |
| export ac_cv_snprintf_returns_bogus=no
 | |
| export ac_cv_iconv_omits_bom=no
 | |
| export ac_cv_lib_curl_curl_global_init=yes
 | 
