aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdbm/build.sh
blob: 639dcc437888263b1757f306960c7c3d751216b1 (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
#!/bin/bash
name=gdbm
version=1.18.1
revision=0
sources=(
    "http://mirror.rit.edu/gnu/${name}/${name}-${version}.tar.gz"
)
build_depends=(
    "automake"
    "autoconf"
)
depends=(
    "readline"
)


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

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

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