mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-06 11:02:53 +00:00
49 lines
1.6 KiB
Bash
49 lines
1.6 KiB
Bash
#! /bin/bash
|
|
|
|
# lmdb
|
|
# Source: https://git.openldap.org/openldap/openldap/-/archive/LMDB_0.9.33.tar.bz2
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: NONE
|
|
# Recommended: NONE
|
|
# Optional: NONE
|
|
|
|
# NOTE: This package extracts to
|
|
# openldap-LMDB_0.9.33-3a29a24777c82a0165de813ae696a5068b5add30
|
|
|
|
export PVER="0.9.33"
|
|
|
|
cd libraries/liblmdb
|
|
|
|
# set CC as clang if GCC not installed
|
|
read -p "Compile?" && make CC=clang -j2 &&
|
|
|
|
sudo -S make prefix=/usr DESTDIR=$BUILD install &&
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
lmdb: lmdb
|
|
lmdb:
|
|
lmdb: A fast, compact, key-value embedded data store. It uses memory-mapped
|
|
lmdb: files, so it has the read performance of a pure in-memory database
|
|
lmdb: while still offering the persistence of standard disk-based databases,
|
|
lmdb: and is only limited to the size of the virtual address space.
|
|
lmdb:
|
|
lmdb: https://github.com/LMDB/lmdb
|
|
lmdb:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/lmdb-$PVER-$PSUFFIX &&
|
|
sudo -S rm -rf ${BUILD}/*
|