aboutsummaryrefslogtreecommitdiff
path: root/scripts/xz/build.sh
blob: 99c06de3864f211f4effb2303e652902b4ae1405 (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=xz
version=5.2.4
revision=0
sources=(
    "https://tukaani.org/xz/${name}-${version}.tar.gz"
)
depends=()


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}"
}