mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-28 21:02:25 +01:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
# 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"
|