blob: 7c1059be22b299a113191a39fe40b29b0750e63a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: Jonas Heinrich <onny@project-insanity.org>
pkgname=double-conversion
pkgver=2.0.1
pkgrel=3
pkgdesc='Binary-decimal and decimal-binary routines for IEEE doubles'
arch=(i686 x86_64)
url='https://github.com/google/double-conversion'
license=(BSD3)
makedepends=(cmake)
source=(double-conversion-$pkgver.tar.gz::https://github.com/google/double-conversion/archive/v$pkgver.tar.gz
shared_lib.patch)
sha1sums=('a590b4e9e1509bcf48da79a9c0571cfe218920f4'
'54abeec2090908c7ed229986826e8cce400edd1b')
prepare() {
cd double-conversion-$pkgver
patch -p1 < ../shared_lib.patch
}
build() {
cd double-conversion-$pkgver
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
make
}
check() {
cd double-conversion-$pkgver
cd test
cmake .
# Currently tests fail
# make all
}
package () {
cd double-conversion-$pkgver
make DESTDIR="$pkgdir" install
}
|