|
root / base / git
git Plain Text 59 lines 1.6 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# Build script for git

set -e
cd "$SRCDIR"

# Git uses its own Makefile (not autotools). `uname -s` on Hammerhead is
# 'Hammerhead', which config.mak.uname does not match — so it falls through
# to Linux-like defaults that miss illumos-isms (strings.h declarations,
# NEEDS_SOCKET, NEEDS_NSL, HAVE_ALLOCA_H, etc.). Force uname_S=SunOS to
# activate the existing Solaris block, then override the two assumptions
# Hammerhead doesn't satisfy: /usr/ucb/install and /usr/xpg6/bin.
gmake_common() {
    gmake \
        uname_S=SunOS \
        INSTALL=install \
        SANE_TOOL_PATH=/usr/xpg4/bin \
        prefix=$PREFIX \
        CFLAGS=-O2 \
        NO_TCLTK=1 \
        NO_GETTEXT=1 \
        NO_PERL=1 \
        NO_PYTHON=1 \
        NEEDS_SSL_WITH_CURL=1 \
        NEEDS_CRYPTO_WITH_SSL=1 \
        CURL_LDFLAGS="-lcurl -lssl -lcrypto -lz" \
        "$@"
}

gmake_common -j${JOBS:-1} all
gmake_common DESTDIR="$PKGDIR" install
# Git - Distributed version control system
# https://git-scm.com/

[package]
name = "git"
version = "2.48.1"
release = 1
description = "Distributed version control system"
url = "https://git-scm.com/"
license = "GPL-2.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["curl", "zlib"]
build = ["curl", "zlib"]

[[source]]
file = "git-2.48.1.tar.xz"
urls = [
    "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.48.1.tar.xz",
    "https://www.kernel.org/pub/software/scm/git/git-2.48.1.tar.xz"
]
checksum = "1c5d545f5dc1eb51e95d2c50d98fdf88b1a36ba1fa30e9ae5d5385c6024f82ad"

[build]
parallel = true