aboutsummaryrefslogtreecommitdiff
path: root/scripts/util-linux/build.sh
blob: 8a9b65ca9513debdfe9bc8643971bf148615892e (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
#!/bin/bash
name=util-linux
version=2.34
revision=0
sources=(
    "https://mirrors.edge.kernel.org/pub/linux/utils/${name}/v${version}/${name}-${version}.tar.gz"
)
depends=(
    "autoconf"
    "automake"
    "libtool"
)


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