* update double-conversion to 3.3.0-2

This commit is contained in:
Alexander Baldeck 2024-07-25 14:37:55 +02:00
parent f9029baea9
commit c9ea61cdcd
3 changed files with 30 additions and 8 deletions

View File

@ -0,0 +1,15 @@
pkgbase = double-conversion
pkgdesc = Binary-decimal and decimal-binary routines for IEEE doubles
pkgver = 3.3.0
pkgrel = 2
url = https://github.com/google/double-conversion
arch = x86_64
license = BSD-3-Clause
makedepends = cmake
makedepends = git
depends = gcc-libs
depends = glibc
source = git+https://github.com/google/double-conversion#tag=v3.3.0
sha256sums = 51285c0fb05d70a26f067110bec37e47d4b7705730b5c679d536baf95d5bb175
pkgname = double-conversion

View File

@ -0,0 +1,5 @@
[double-conversion]
source = 'github'
github = 'google/double-conversion'
use_max_tag = true
prefix = 'v'

View File

@ -6,18 +6,20 @@
pkgname=double-conversion
pkgver=3.3.0
pkgrel=1
pkgrel=2
pkgdesc='Binary-decimal and decimal-binary routines for IEEE doubles'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/google/double-conversion'
license=(BSD)
depends=(gcc-libs)
makedepends=(cmake)
source=(https://github.com/google/double-conversion/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('04ec44461850abbf33824da84978043b22554896b552c5fd11a9c5ae4b4d296e')
license=(BSD-3-Clause)
depends=(gcc-libs
glibc)
makedepends=(cmake
git)
source=(git+https://github.com/google/double-conversion#tag=v$pkgver)
sha256sums=('51285c0fb05d70a26f067110bec37e47d4b7705730b5c679d536baf95d5bb175')
build() {
cmake -B build -S $pkgname-$pkgver \
cmake -B build -S $pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON
cmake --build build
@ -26,5 +28,5 @@ build() {
package () {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
install -Dm644 $pkgname/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}