summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-02-18 12:56:22 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-02-18 12:56:22 -0500
commit13984f725db156cbc952d0afe90f27da15a0b85d (patch)
treeb3a39b75ecaecca11ee1525a99153a7606e460cb /git
downloadspm_packages-13984f725db156cbc952d0afe90f27da15a0b85d.tar.gz
Initial commit
Diffstat (limited to 'git')
-rw-r--r--git/build.sh48
1 files changed, 48 insertions, 0 deletions
diff --git a/git/build.sh b/git/build.sh
new file mode 100644
index 0000000..e056352
--- /dev/null
+++ b/git/build.sh
@@ -0,0 +1,48 @@
+#!/bin/bash
+name=git
+version=2.24.0
+revision=0
+sources=(
+ "https://github.com/${name}/${name}/archive/v${version}.tar.gz"
+)
+build_depends=(
+ "autoconf"
+ "automake"
+ "curl"
+ "gettext"
+ "libtool"
+ "openssl"
+ "pcre"
+ "tk"
+ "zlib"
+)
+depends=(
+ "curl"
+ "openssl"
+ "pcre"
+ "tk"
+ "zlib"
+)
+
+
+function prepare() {
+ tar xf v${version}.tar.gz
+ cd ${name}-${version}
+}
+
+function build() {
+ export LDFLAGS="${LDFLAGS} -Wl,-rpath=${_prefix}/lib"
+ make configure
+ ./configure --prefix=${_prefix} \
+ --libdir=${_prefix}/lib \
+ --with-curl \
+ --with-expat \
+ --with-tcltk
+ make -j${_maxjobs}
+}
+
+function package() {
+ make install DESTDIR="${_pkgdir}"
+}
+
+