summaryrefslogtreecommitdiff
path: root/pcre/build.sh
blob: 6c1784a256e11af8dbd2157c5cbe268ca9d8bf68 (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
40
#!/bin/bash
name=pcre
version=8.43
revision=0
sources=(
    "https://ftp.pcre.org/pub/${name}/${name}-${version}.tar.gz"
)
build_depends=(
    "automake"
    "autoconf"
    "readline"
    "zlib"
)
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-libreadline
    make -j${_maxjobs}
}

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