aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-cqueues/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-06-23 06:52:02 +0000
committerTimo Teräs <timo.teras@iki.fi>2015-06-23 06:58:13 +0000
commit9846bffe486d0fad6e3780519805f200618c5ca4 (patch)
tree4aabe37b62bc0f03468209428af3a4d6349a0a34 /main/lua-cqueues/APKBUILD
parentc279138c9b0c6a2142c76a02d6757bd8a95f43a2 (diff)
downloadaports-9846bffe486d0fad6e3780519805f200618c5ca4.tar.bz2
aports-9846bffe486d0fad6e3780519805f200618c5ca4.tar.xz
main/lua-cqueues: upgrade to 20150610
using snapshot instead of release, as new releases are not tagged too often.
Diffstat (limited to 'main/lua-cqueues/APKBUILD')
-rw-r--r--main/lua-cqueues/APKBUILD16
1 files changed, 10 insertions, 6 deletions
diff --git a/main/lua-cqueues/APKBUILD b/main/lua-cqueues/APKBUILD
index 070eec6593..9bbae9d380 100644
--- a/main/lua-cqueues/APKBUILD
+++ b/main/lua-cqueues/APKBUILD
@@ -1,7 +1,8 @@
# 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"