summaryrefslogtreecommitdiffstats
path: root/main/lua-cmsgpack/APKBUILD
blob: 783cd380676e57e4c8677c78c6f993d602aca4aa (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
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"