NAME=centericq
VERSION=4.21.0

SOURCE=http://thekonst.net/download/centericq-$VERSION.tar.gz
SOURCE_MD5=3dbf6237a19cb41029f3abd90251edc3
SOURCE_SHA1=8b5fbd8b945a5a6f0fd57e831ccfaef520a96315

# Maybe too paranoid to use -O1, but at least GCC 3.4 & -Os doesn't give
# very stable binary for everyone.
OPTIMIZE=${OPTIMIZE:-"-O1"}

BUILD=${BUILD:-1}
ROOT_REQUIRED=0

build() {
	_explode 0
	cd "$NAME-$VERSION"
	# Buggy configure when using both CFLAGS and CXXFLAGS, fix it:
	autoreconf -fi
	$CONFIGURE
	make
	make DESTDIR=$PKG install
	_doc 0 centericq-$VERSION  AUTHORS COPYING ChangeLog FAQ NEWS \
			POLICY README THANKS TODO
	_chfix
	_chgrp_bin
}
