aboutsummaryrefslogtreecommitdiff
path: root/scripts/pcre/build.sh
blob: 92f2a371bd73c9ce73a63fe259f16e8f919e66a5 (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
#!/bin/bash
name=pcre
version=8.43
revision=0
sources=(
    "https://ftp.pcre.org/pub/${name}/${name}-${version}.tar.gz"
)
depends=(
    "bzip2"
    "readline"
    "zlib"
)

function prepare() {
    tar xf ${name}-${version}.tar.gz
    cd ${name}-${version}
}

function build() {
    ./configure \
        --prefix=${prefix} \
        --enable-unicode-properties \
        --enable-pcre16 \
        --enable-pcre32 \
        --enable-jit \
        --enable-pcregrep-libz \
        --enable-pcregrep-libbz2 \
        --enable-pcretest-readline
    make -j${maxjobs}
}

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