summaryrefslogtreecommitdiff
path: root/e2fsprogs/build.sh
blob: 1e008ed1015cb31780a2efab8ce5631e9459979f (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
36
37
38
39
#!/bin/bash
name=e2fsprogs
version=1.45.4
revision=0
sources=(
    "https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/${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} \
        --enable-relative-symlinks \
        --enable-elf-shlibs \
        --enable-libuuid \
        --enable-libblkid
    make -j${_maxjobs}
}

function package() {
    pushd lib/uuid &>/dev/null
        make install DESTDIR="${_pkgdir}"
    popd
    pushd lib/blkid &>/dev/null
        make install DESTDIR="${_pkgdir}"
    popd
}