aboutsummaryrefslogblamecommitdiffstats
path: root/community/msgpack-c/APKBUILD
blob: 3ec30c8abb74fa1387a86670027b0832109252e2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    
                                              
                 
                      
            
        


                                                   
                 
          
                   
                          


                                                                                               



                                  
 

                                             


                                                        





                            
                                       

 





                                                                                                                                                                    
# 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="BSL-1.0"
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"