aboutsummaryrefslogtreecommitdiff
path: root/scripts/tar/build.sh
blob: f17073da8117da52bd3b238196fd346c78c3f6ec (plain) (blame)
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
#!/bin/bash
name=tar
version=1.32
revision=0
sources=(
    "http://mirror.rit.edu/gnu/${name}/${name}-${version}.tar.gz"
)
build_depends=(
    "automake"
    "autoconf"
)
depends=(
    "bzip2"
    "gzip"
    "xz"
    "zlib"
)


function prepare() {
    tar xf ${name}-${version}.tar.gz
    cd ${name}-${version}
}

function build() {
    export FORCE_UNSAFE_CONFIGURE=1
    ./configure --prefix=$prefix
    make -j${maxjobs}
}

function package() {
    make install DESTDIR="${destdir}"
}