diff options
Diffstat (limited to 'scripts/git/build.sh')
-rw-r--r-- | scripts/git/build.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/scripts/git/build.sh b/scripts/git/build.sh new file mode 100644 index 0000000..62a058c --- /dev/null +++ b/scripts/git/build.sh @@ -0,0 +1,34 @@ +#!/bin/bash +name=git +version=2.24.0 +revision=0 +sources=( + "https://github.com/${name}/${name}/archive/v${version}.tar.gz" +) +build_depends=( + "automake" + "gettext" + "libtool" +) +depends=( + "curl" + "zlib" +) + + +function prepare() { + tar xf v${version}.tar.gz + cd ${name}-${version} +} + +function build() { + make configure + ./configure --prefix=$prefix + make -j${maxjobs} +} + +function package() { + make install DESTDIR="${destdir}" +} + + |