123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- set -e
- program=db
- version=6.2.38
- release=1
- pkgcategory=db
- pkgname=berkeley-db
- tarname=${program}-${version}.tar.gz
- fetch="
- https://dragora.mirror.garr.it/current/sources/$tarname
- rsync://rsync.dragora.org/current/sources/$tarname
- https://download.oracle.com/berkeley-db/$tarname
- "
- description="
- Berkeley database library.
- Berkeley DB is a programmatic toolkit that provides embedded database
- support for client/server applications.
- "
- homepage=https://www.oracle.com/database/berkeley-db/index.html
- license=Custom
- docs="README LICENSE"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- cd build_unix
- ../dist/configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" CXXFLAGS="$QICXXFLAGS" \
- LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --enable-compat185 \
- --enable-dbm \
- --enable-cxx \
- --enable-stl \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
-
- rm -rf "${destdir}/usr/docs"
-
- find "$destdir" -type f | xargs file | \
- awk '/ELF/ && /executable/ || /shared object/' | \
- cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find "$destdir" -type f | xargs file | awk '/current ar archive/' | \
- cut -f 1 -d : | xargs strip --strip-debug 2> /dev/null || true
- cd ..
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|