This repository has been archived by the owner on Aug 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplan.sh
60 lines (54 loc) · 1.66 KB
/
plan.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
pkg_name=gdbm
pkg_origin=core
pkg_version=1.22
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="\
GNU dbm is a set of database routines that use extensible hashing. It works \
similar to the standard UNIX dbm routines.\
"
pkg_upstream_url="http://www.gnu.org/software/gdbm/gdbm.html"
pkg_license=('gplv3+')
pkg_source="http://ftp.gnu.org/gnu/$pkg_name/${pkg_name}-${pkg_version}.tar.gz"
pkg_shasum="f366c823a6724af313b6bbe975b2809f9a157e5f6a43612a72949138d161d762"
pkg_build_deps=(
core/coreutils
core/dejagnu
core/diffutils
core/gcc
core/make
core/patch
)
pkg_deps=(core/glibc)
pkg_bin_dirs=(bin)
pkg_include_dirs=(include)
pkg_lib_dirs=(lib)
do_build() {
./configure \
--prefix="$pkg_prefix" \
--enable-libgdbm-compat
make
}
do_check() {
make check
}
do_install() {
do_default_install
# create symlinks for compatibility
install -dm755 "$pkg_prefix/include/gdbm"
ln -sf ../gdbm.h "$pkg_prefix/include/gdbm/gdbm.h"
ln -sf ../ndbm.h "$pkg_prefix/include/gdbm/ndbm.h"
ln -sf ../dbm.h "$pkg_prefix/include/gdbm/dbm.h"
}
# ----------------------------------------------------------------------------
# **NOTICE:** What follows are implementation details required for building a
# first-pass, "stage1" toolchain and environment. It is only used when running
# in a "stage1" Studio and can be safely ignored by almost everyone. Having
# said that, it performs a vital bootstrapping process and cannot be removed or
# significantly altered. Thank you!
# ----------------------------------------------------------------------------
if [[ "$STUDIO_TYPE" = "stage1" ]]; then
pkg_build_deps=(
core/gcc
core/coreutils
)
fi