aboutsummaryrefslogtreecommitdiffstats
path: root/testing/msgpack-c/APKBUILD
blob: acfc52601dd936bccc8d60eae5bcb8473e3561aa (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
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer:
pkgname=msgpack-c
pkgver=2.0.0
pkgrel=0
pkgdesc="An efficient object serialization library"
url="https://msgpack.org"
arch="all"
license="Boost"
depends=""
depends_dev=""
makedepends="cmake"
install=""
subpackages="$pkgname-dev"
source="msgpack-c-$pkgver.zip::https://github.com/msgpack/$pkgname/archive/cpp-$pkgver.zip"

builddir="$srcdir"/msgpack-c-cpp-$pkgver

build() {
	mkdir -p "$builddir"/build
	cd "$builddir"/build
	cmake .. \
		-DCMAKE_INSTALL_PREFIX=/usr \
		|| return 1
	make || return 1
}

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

md5sums="d8d5bac93df93df10ce06fc2d6801039  msgpack-c-2.0.0.zip"
sha256sums="9f3860bc014355dbdf6519ffb78d54d120bb8d134dcb4eba35eb5103c1ac3cd1  msgpack-c-2.0.0.zip"
sha512sums="ad65a051f392a05a971b0dd1750d7af8b26e07c32e6eb7390a38ecad402f7ce0d3d3205b52c77ae1b82def8e7197f1df5cadbd9aa4d4087fc7f00e35c5a37d2e  msgpack-c-2.0.0.zip"