summaryrefslogtreecommitdiff
path: root/Ports/git/package.sh
blob: 55f7a25acc564d69eacde3a889ed9524e469cf9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env -S bash ../.port_include.sh
port=git
version=2.26.0
useconfigure="true"
files="https://mirrors.edge.kernel.org/pub/software/scm/git/git-${version}.tar.xz git-${version}.tar.xz"
configopts="--target=${SERENITY_ARCH}-pc-serenity CFLAGS=-DNO_IPV6"
depends="zlib"

build() {
    run make $makeopts
    run make strip
}

post_install() {
    run mkdir -p "${SERENITY_BUILD_DIR}/Root/home/anon"
    run cp "../default_gitconfig" "${SERENITY_BUILD_DIR}/Root/home/anon/.gitconfig"
}

export NO_OPENSSL=1
export ac_cv_fread_reads_directories=no
export ac_cv_snprintf_returns_bogus=no