pkgname=double-conversion pkgver=3.3.0 pkgrel=1 pkgdesc="Binary-decimal and decimal-binary routines for IEEE doubles" arch=('x86_64') url="https://github.com/google/double-conversion" license=('BSD-3-Clause') depends=('gcc-libs' 'glibc') makedepends=('cmake') source=(https://github.com/google/double-conversion/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(04ec44461850abbf33824da84978043b22554896b552c5fd11a9c5ae4b4d296e) build() { cd ${pkgname}-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build }