pkgname=double-conversion pkgver=3.3.0 pkgrel=1 pkgdesc='Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles.' arch=('x86_64') url='https://github.com/google/double-conversion' license=('BSD') depends=('gcc-libs') makedepends=('cmake') source=("https://github.com/google/double-conversion/archive/v${pkgver}.tar.gz") md5sums=('b344abb64084a4a1d98a43e67752989b') build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=ON cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build install -Dm644 ${pkgname}-${pkgver}/LICENSE -t ${pkgdir}/usr/share/licenses/double-conversion }