#Packager: George Vlahavas pkgname=double-conversion pkgver=3.2.0 pkgrel=1gv source=("https://github.com/google/double-conversion/archive/v$pkgver.tar.gz") docs=("AUTHORS" "BUILD" "COPYING" "Changelog" "LICENSE" "README.md" "WORKSPACE") url='https://github.com/google/double-conversion' slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "double-conversion (decimal conversion routines for IEEE doubles)" "This project provides binary-decimal and decimal-binary routines for" "IEEE doubles. The library consists of efficient conversion routines" "that have been extracted from the V8 JavaScript engine. The code has" "been refactored and improved so that it can be used more easily in" "other projects." ) build() { cd $startdir/src/$pkgname-$pkgver mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib${LIBDIRSUFFIX} \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_BUILD_TYPE=Release .. make -j $numjobs|| return 1 make install DESTDIR=$startdir/pkg cd .. }