Commit 138eac97 authored by Timo Teräs's avatar Timo Teräs

main/lua-cqueues: upgrade to 20150610

using snapshot instead of release, as new releases are not tagged
too often.
parent 45f2d6e1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaversions="5.1 5.2 5.3"
pkgname=lua-cqueues
pkgver=20150119
pkgver=20150610
_commitid=f3139446d79374ecb0e89c61df97efc983df5a1f
pkgrel=0
pkgdesc="Lua event loop using coroutines"
url="http://25thandclement.com/~william/projects/cqueues.html"
......@@ -12,14 +13,15 @@ depends_dev=""
subpackages=""
makedepends="$depends_dev openssl-dev m4 bsd-compat-headers"
install=""
source="http://25thandclement.com/~william/projects/releases/cqueues-$pkgver.tgz"
source="cqueues-$pkgver.tar.gz::https://github.com/wahern/cqueues/archive/$_commitid.tar.gz
"
for _i in $_luaversions; do
makedepends="$makedepends lua${_i}-dev"
subpackages="$subpackages lua${_i}-cqueues:_split_${_i/./}"
done
_builddir="$srcdir"/cqueues-$pkgver
_builddir="$srcdir"/cqueues-$_commitid
prepare() {
local i
cd "$_builddir"
......@@ -32,6 +34,8 @@ prepare() {
build() {
cd "$_builddir"
# Override the HAVE_* tests that depend on GLIBC. grep for "#define HAVE_" on new releases.
export CFLAGS="$CFLAGS -DHAVE_EVENTFD=1 -DHAVE_EPOLL_CREATE1=1 -DHAVE_PIPE2=1"
for _i in $_luaversions; do
msg "Build for Lua $_i"
make all${_i} || return 1
......@@ -65,6 +69,6 @@ for _i in $_luaversions; do
done
md5sums="9d4a566f86265a8270186f587789aadf cqueues-20150119.tgz"
sha256sums="70a7072c36fb9663f04825cc7a5773a928ad3101849f5f7754698982e41c2142 cqueues-20150119.tgz"
sha512sums="603b5d93f5db05d09cfcc2be72cf01bd89830134e1a163ad9023b93cf484a7f5c84cbe3a734ec336cb0cc34a91eb51b29bea1b3d46d415d5668a507a98dbb46e cqueues-20150119.tgz"
md5sums="dd2c3ad39f5dffa0d4e9860169193cf5 cqueues-20150610.tar.gz"
sha256sums="ec3bf74e82b13231169735a4a5dacaf1c14c7411f3c3e91a4431a476d4eb9b6c cqueues-20150610.tar.gz"
sha512sums="f7ebdd7dfae3855cb242e9d58517cc0a6a75e4d9dd161b4e860d18843ad9927ade7c80efe327c956323cfa04fdea7c39bdccb74c28138088777bc01b85966201 cqueues-20150610.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment