aboutsummaryrefslogtreecommitdiff
path: root/scripts/xz/build.sh
blob: ea31bdc31fcb13de54459026dbd344477de2a453 (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
#!/bin/bash
name=xz
version=5.2.4
revision=0
sources=(
    "https://tukaani.org/xz/${name}-${version}.tar.gz"
)
depends=(
    "sed-4.7-0.tar.gz"
    "grep-3.3-0.tar.gz"
)


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

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

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