# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=lua-cmsgpack pkgver=0.3.0 pkgrel=2 pkgdesc="MessagePack C implementation for Lua" url="https://github.com/antirez/lua-cmsgpack" arch="all" license="Two-clause BSD" depends="" depends_dev="" makedepends="lua-dev" install="" subpackages="" source="lua-cmsgpack-$pkgver.tar.gz::https://github.com/antirez/lua-cmsgpack/archive/$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ${CC:-gcc} $CFLAGS -fPIC $(pkg-config --cflags lua) -o cmsgpack.so -shared $LFDLAGS $(pkg-config --libs lua) lua_cmsgpack.c } package() { cd "$_builddir" local dir=$( pkg-config --variable INSTALL_CMOD lua) install -D cmsgpack.so "$pkgdir"/$dir/cmsgpack.so } md5sums="f96c551f9d8560c227bc20723383c74b lua-cmsgpack-0.3.0.tar.gz" sha256sums="d0e819ddd67c317eae3506ae384b27d179aea1fb531cd06eb369636adfd6167a lua-cmsgpack-0.3.0.tar.gz" sha512sums="0bae955df022d2f3998e6f84470ab9a8605f38c61bbdbe12e07bfe1aebb3e57b4671a960ded52ee642de60bab2e176863a7a92a17d7660c64d50c8a7363866e4 lua-cmsgpack-0.3.0.tar.gz"