mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 11:14:36 +08:00
39 lines
1004 B
Bash
39 lines
1004 B
Bash
|
# Arch Contributors: https://git.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/double-conversion
|
||
|
|
||
|
pkgname=double-conversion
|
||
|
pkgver=3.0.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)
|
||
|
depends=(gcc-libs)
|
||
|
makedepends=(cmake)
|
||
|
source=(double-conversion-$pkgver.tar.gz::https://github.com/google/double-conversion/archive/v$pkgver.tar.gz)
|
||
|
sha256sums=('152f15355242b6b1fbb4098fcd825bf08527eda0c65e8446939222a13f0b3915')
|
||
|
|
||
|
build() {
|
||
|
cd double-conversion-$pkgver
|
||
|
cmake . \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DCMAKE_BUILD_TYPE=Release \
|
||
|
-DBUILD_SHARED_LIBS=ON \
|
||
|
-DCMAKE_INSTALL_LIBDIR=lib
|
||
|
make
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd double-conversion-$pkgver
|
||
|
cd test
|
||
|
cmake .
|
||
|
# Currently tests fail
|
||
|
# make all
|
||
|
}
|
||
|
|
||
|
package () {
|
||
|
cd double-conversion-$pkgver
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
|
||
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/double-conversion/LICENSE
|
||
|
}
|