aboutsummaryrefslogtreecommitdiff
path: root/scripts/libexpat/build.sh
blob: 769150d1dc41caaec4140f0a0748dc5b74a01b4c (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
#!/bin/bash
name=libexpat
version=2.2.9
revision=0
sources=(
    "https://github.com/${name}/${name}/archive/R_${version//./_}.tar.gz"
)
build_depends=(
    "automake"
    "libtool"
)
depends=()


function prepare() {
    tar xf R_${version//./_}.tar.gz
    cd ${name}-R_${version//./_}/expat
}

function build() {
    ./buildconf.sh
    ./configure --prefix="${prefix}" \
        --libdir="${prefix}/lib"
    make -j${maxjobs}
}

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