void-packages/srcpkgs/lua51-mpack/template

23 lines
623 B
Bash

# Template file for 'lua51-mpack'
pkgname=lua51-mpack
version=1.0.2
revision=1
wrksrc="libmpack-${version}"
hostmakedepends="libtool"
makedepends="lua51-devel"
short_desc="Simple implementation of MessagePack for Lua 5.1"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="MIT"
homepage="https://github.com/tarruda/libmpack"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=9c570b2aab81b0c56d97cbd8fc483dc431b69510fd9becb4a1845291563e8bc9
do_build() {
${CC} ${CFLAGS} -shared -o mpack.so binding/lua/lmpack.c ${LDFLAGS}
}
do_install() {
vinstall mpack.so 755 usr/lib/lua/5.1
vlicense LICENSE-MIT
}