summaryrefslogtreecommitdiff
path: root/repo/system/msgpack-c.xibuild
blob: e0f8b8f88a7bf4d72bcc15c3a4adaa466c681803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

MAKEDEPS="make "
DEPS="musl"

PKG_VER=4.0.0
SOURCE=https://github.com/msgpack/msgpack-c/releases/download/c-$PKG_VER/msgpack-c-$PKG_VER.tar.gz
DESC="An efficient object serialization library for C"

build () {
    cmake -G Ninja -B build . \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_VERBOSE_MAKEFILE=TRUE
	cmake --build build
}

package () {
    DESTDIR="$PKG_DEST" cmake --install build
}