aboutsummaryrefslogtreecommitdiffstats
path: root/community/msgpack-c/APKBUILD
blob: 5a5fa4d874894ac931e7221ffa4a10d11b5cd191 (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
41
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=msgpack-c
_pkgname=msgpack-c-cpp
pkgver=2.0.0
pkgrel=1
pkgdesc="An efficient object serialization library"
url="https://msgpack.org"
arch="all"
license="Boost"
depends=""
makedepends="cmake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/msgpack/$pkgname/archive/cpp-$pkgver.tar.gz
	cflags.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	mkdir -p "$builddir"/build
	cd "$builddir"/build

	cmake .. \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_C_FLAGS="$CFLAGS -DNDEBUG" \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
		-DCMAKE_VERBOSE_MAKEFILE=TRUE \
		|| return 1
	make || return 1
}

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

md5sums="3b88515a48275e2301c5feaccebd8afb  msgpack-c-2.0.0.tar.gz
f9068b1906767a23bd78421a83a45134  cflags.patch"
sha256sums="eb20b4bf15f20bad149ec82fffac74f16de2a8a797e321a3f8189d63263a511e  msgpack-c-2.0.0.tar.gz
2305f5133bb7d3551f443f50f02cd5cc6ba74932365610f04e42d6137a6481de  cflags.patch"
sha512sums="5611f3ac1831dde8c1dc90b09d98f1466fac88659a20014b26a64137c6dfc5d6204c1cb5435f4a93ca00f614aa6d3cf538e815966309b7de195d3e70d44e236f  msgpack-c-2.0.0.tar.gz
987e1c50cd9006c080101c5cd0f03ac4c29c990bbf65530325ea5b02f3dd9376f7ba422f90f0c1dfb6d06ab79e6e78cc80be917ec2598b558a2a87d6eba0a1ca  cflags.patch"