#!/bin/bash # db # # Douglas Thrift # # $Id$ name=db version=4.5.20.2 revision=0 categories=(base databases) description='Berkeley DB embedded database system' url='http://www.oracle.com/database/berkeley-db/index.html' depends=('base/gcc') sources=(http://download.oracle.com/berkeley-db/$name-${version%.*}.tar.gz `for ((index = 1; index <= ${version##*.}; ++index)); do echo http://www.oracle.com/technology/products/berkeley-db/db/update/${version%.*}/patch.${version%.*}.$index; done`) subdir=db sourcedir=$name-${version%.*} function build() { gnu_patch ${source_files[*]%%*.gz} || return $? cd build_unix ../dist/configure --prefix=/usr --enable-compat185 --enable-cxx || return $? gmake || return $? gmake install DESTDIR=$package || return $? rm -frv $package/usr/docs }