aboutsummaryrefslogtreecommitdiff
path: root/scripts/gzip/build.sh
blob: 686ac5f6011c14896566605627511c84e6035b36 (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
#!/bin/bash
name=gzip
version=1.10
revision=0
sources=(
    "http://mirror.rit.edu/gnu/${name}/${name}-${version}.tar.xz"
)
depends=(
    "grep-3.3-0.tar.gz"
    "sed-4.7-0.tar.gz"
)

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

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

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