### this file is sourced not run
PKGVER=6.1.26
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 7.8 2016-01-12
TARBALL=db-$PKGVER.tar.gz
MD5SUM=9525aa57a282d49e5d1bf5e48ffa8a56
SRC_URL=http://download.oracle.com/berkeley-db/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="libdb: libdb $PKGVER (Berkeley DB library)  
libdb:  
libdb: The Berkeley DB package contains programs and utilities used by many 
libdb: other applications for database related functions.  
libdb: 
libdb: 
libdb: 
libdb: 
libdb: 
libdb: 
libdb: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/db*/build_unix
	../dist/configure $CONFFLAGS      \
                  --enable-compat185 \
                  --enable-dbm       \
                  --disable-static   \
                  --enable-cxx       \
                  --enable-tcl --with-tcl=/usr/$LIBDIR &&
	make $MAKEFLAGS &&
	make docdir=/usr/share/doc/db-6.0.20 install &&
	chown -v -R root:root                        \
      /usr/bin/db_*                          \
      /usr/include/db{,_185,_cxx}.h          \
      /usr/$LIBDIR/libdb*.{so,la}                \
      /usr/share/doc/db-6.0.20 &&
    # remove odd inclusion of libdbus here
    rm -rf /usr/$LIBDIR/libdbus* &&
	pkg_build_slackdesc
}


