Name double-conversion
Description Binary-decimal and decimal-binary routines for IEEE doubles
Version 3.4.0-1
Package Base double-conversion
Homepage https://github.com/google/double-conversion
Maintainers ['Antonio Rojas <arojas@archlinux.org>']
Contributors ['Anatol Pomozov <anatol.pomozov@gmail.com>', 'Joel Teichroeb <joel@teichroeb.net>', 'Jonas Heinrich <onny@project-insanity.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/double-conversion
Sources ['git+https://github.com/google/double-conversion#tag=v3.4.0']
Dependencies ['gcc-libs', 'glibc']
Optional-Dependencies []
Build-Dependencies ['cmake', 'git']
Provides []
Builddate 08-12-2025 13:05:51
Architecture x86_64
Distro-Version
Licenses ['BSD-3-Clause']
Hash 37a22e79d8725fff6a2ca36342bec4c5b64027944cfaba8bfea448c426fe98e8
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: Jonas Heinrich <onny@project-insanity.org>

pkgname=double-conversion
pkgver=3.4.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
             git)
source=(git+https://github.com/google/double-conversion#tag=v$pkgver)
sha256sums=('9963201818e6ef262b99e68b2ec2500b2b49270d0205dc7487d16ec5e8f467f3')

build() {
  cmake -B build -S $pkgname \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DBUILD_SHARED_LIBS=ON
  cmake --build build
}

package () {
  DESTDIR="$pkgdir" cmake --install build

  install -Dm644 $pkgname/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}