blob: bb252022f7034c32c54a745a04065e6d6f46db5c (
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=gdbm
version=1.18.1
revision=0
sources=(
"http://mirror.rit.edu/gnu/${name}/${name}-${version}.tar.gz"
)
build_depends=(
)
depends=(
"readline"
)
function prepare() {
tar xf ${name}-${version}.tar.gz
cd ${name}-${version}
if [[ $(uname -s) == Darwin ]]; then
# two -rpaths don't make a working build -- for whatever reason
LDFLAGS="-L${_runtime}/lib"
fi
}
function build() {
./configure --prefix=${_prefix} --enable-libgdbm-compat
make -j${_maxjobs}
}
function package() {
make install DESTDIR="${_pkgdir}"
}
|