summaryrefslogtreecommitdiff
path: root/etc/pkgs/006-git.sh
blob: 11e27c57eed7ec69fc4784ef38912724825ce9f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -xe

name=git
version=2.20.1
url=https://mirrors.edge.kernel.org/pub/software/scm/git/${name}-${version}.tar.xz

curl -LO ${url}
tar xf ${name}-${version}.tar.xz

pushd ${name}-${version}
    make configure
    ./configure --prefix=${TOOLCHAIN} \
        --with-curl \
        --with-openssl=${TOOLCHAIN}
    make -j${_maxjobs}
    make install-strip
popd