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

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

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

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