aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flatbuffers/APKBUILD
blob: 9497fbd4c2c19f9987f6d997591d7162223a1c59 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flatbuffers
pkgver=1.8.0
pkgrel=1
pkgdesc="Memory Efficient Serialization Library"
url="http://google.github.io/flatbuffers/"
arch="all !s390x"
license="Apache-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev cmake"
install=""
subpackages="$pkgname-dev"
source="flatbuffers-$pkgver.tar.gz::https://github.com/google/flatbuffers/archive/v$pkgver.tar.gz"
builddir="$srcdir/flatbuffers-$pkgver"

build() {
	mkdir -p "$builddir"/build
	cd "$builddir"/build
	cmake .. \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DFLATBUFFERS_BUILD_SHAREDLIB=on \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

package() {
	cd "$builddir"/build
	make install DESTDIR="$pkgdir"
}

sha512sums="8f6c84caa6456418fc751ea9de456dd37378b3239d1a41d2205140e7b19a5b8b2e342a22dc8d7fdd0c36878455e9d7401cc6438d3b771f7875e8fcfe7bbd52f1  flatbuffers-1.8.0.tar.gz"