aboutsummaryrefslogtreecommitdiff
path: root/scripts/m4/build.sh
blob: c5a5388785cea7c4bca2f9f7faff4ddf85eb1300 (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
#!/bin/bash
name=m4
version=1.4.18
revision=0
sources=(
    "http://mirror.rit.edu/gnu/${name}/${name}-${version}.tar.xz"
)
depends=(
)

function prepare() {
    tar xf ${name}-${version}.tar.xz
    cd ${name}-${version}
    patch -p1 -i ${build_script_root}/"m4-1.4.18-glibc-change-work-around.patch"
}

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

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