-
Notifications
You must be signed in to change notification settings - Fork 7
/
build-git.sh
executable file
·51 lines (48 loc) · 1.37 KB
/
build-git.sh
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
#!/bin/bash -e
#
# Copyright 2015-2019 (c) Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# Extra features support
#
# yum -y groupinstall "Development Tools"
# yum-builddep git-email
#
# # Manuals
# sudo yum install -y asciidoc xmlto
#
# Sometimes we need to install several perl modules for the git-send-email to work
#
# sudo yum install -y perl-CPAN
# sudo cpan Net::SMTP::SSL MIME::Base64 Authen::SASL
#
# Manpages and perl bindings are installed with readonly permissions 0444. To overwrite previous install, clean them
#
# rm -rfv /home/yousong/.usr/share/man/man3/Git*
# rm -rfv /home/yousong/.usr/share/perl/5.14.2/Git*
#
# Install from .rpm compiled by third-party
#
# - https://ius.io/GettingStarted/
# - https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/repoview/letter_g.group.html
#
PKG_NAME=git
PKG_VERSION=2.24.1
PKG_SOURCE="$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_SOURCE_URL="https://www.kernel.org/pub/software/scm/git/$PKG_SOURCE"
PKG_SOURCE_MD5SUM=166bde96adbbc11c8843d4f8f4f9811b
PKG_DEPENDS='curl expat libiconv openssl zlib'
. "$PWD/env.sh"
# Git's handwritten Makefile does not detect build-dep then build/install
# manpages by default.
compile() {
cd "$PKG_BUILD_DIR"
build_compile_make all
build_compile_make man
}
staging() {
build_staging install
build_staging install-man
}