blob: 9d35b253ceb7291a966349d7bfbc22561751f789 (
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 <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lua-cmsgpack
pkgver=0.4.0
pkgrel=0
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="3eac32013acdaeb36e61efed72ffe81b lua-cmsgpack-0.4.0.tar.gz"
sha256sums="ed00bbcce9c6589aad71b96d5bc88b7581186b3abd38ae887cb1f265a19fa3e5 lua-cmsgpack-0.4.0.tar.gz"
sha512sums="cf4829ab618d63edd1e630147047b5fe03a276de396c3a8b4ea58d99e9ee980143976f411e42aff63baea31c2315dbf0cdf56c64814074c5333a2243fed0d3cd lua-cmsgpack-0.4.0.tar.gz"
|