#!/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 " 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