aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-cqueues/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-01 19:50:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-01 19:50:31 +0000
commitcbf8bb0112708de510a6192820035fe1e2f04405 (patch)
treedf94406a5585c4e27102921180db3b36382609cf /main/lua-cqueues/APKBUILD
parentd71982f4c6e0cd9c311300f80f3551cd24cf3cd5 (diff)
downloadaports-cbf8bb0112708de510a6192820035fe1e2f04405.tar.bz2
aports-cbf8bb0112708de510a6192820035fe1e2f04405.tar.xz
main/lua-cqueues: upgrade to 20150119
Diffstat (limited to 'main/lua-cqueues/APKBUILD')
-rw-r--r--main/lua-cqueues/APKBUILD25
1 files changed, 15 insertions, 10 deletions
diff --git a/main/lua-cqueues/APKBUILD b/main/lua-cqueues/APKBUILD
index ff792e91c0..070eec6593 100644
--- a/main/lua-cqueues/APKBUILD
+++ b/main/lua-cqueues/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
-_luaversions="5.1 5.2"
+_luaversions="5.1 5.2 5.3"
pkgname=lua-cqueues
-pkgver=20140729
+pkgver=20150119
pkgrel=0
pkgdesc="Lua event loop using coroutines"
url="http://25thandclement.com/~william/projects/cqueues.html"
@@ -10,14 +10,13 @@ license="MIT"
depends=""
depends_dev=""
subpackages=""
-makedepends="$depends_dev openssl-dev m4"
+makedepends="$depends_dev openssl-dev m4 bsd-compat-headers"
install=""
source="http://25thandclement.com/~william/projects/releases/cqueues-$pkgver.tgz"
for _i in $_luaversions; do
makedepends="$makedepends lua${_i}-dev"
subpackages="$subpackages lua${_i}-cqueues:_split_${_i/./}"
- depends="$depends lua${_i}-cqueues"
done
_builddir="$srcdir"/cqueues-$pkgver
@@ -33,20 +32,26 @@ prepare() {
build() {
cd "$_builddir"
- make prefix=/usr || return 1
+ for _i in $_luaversions; do
+ msg "Build for Lua $_i"
+ make all${_i} || return 1
+ done
}
package() {
cd "$_builddir"
- make DESTDIR="$pkgdir" prefix=/usr install || return 1
+ for _i in $_luaversions; do
+ msg "Install for Lua $_i"
+ make DESTDIR="$pkgdir" prefix=/usr install${_i} || return 1
+ done
rm -f "$pkgdir"/usr/lib/*.la
}
_split() {
local d= _ver=$1
pkgdesc="$pkgdesc - for Lua $_ver"
- replaces="$pkgname"
depends=
+ install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
for d in usr/lib/lua usr/share/lua; do
if [ -d "$pkgdir"/$d/$_ver ]; then
mkdir -p "$subpkgdir"/$d
@@ -60,6 +65,6 @@ for _i in $_luaversions; do
done
-md5sums="4dae243ba57cbb79628d1c0ff6156635 cqueues-20140729.tgz"
-sha256sums="9b21bdc315b95d2b84aa93bbb296a969753400c44deeb2db47abe930359b27c9 cqueues-20140729.tgz"
-sha512sums="7a44c5f6eba59e1336096fbf9970c6b0d527abab1a39ede059507c2c65e64a74722d3cb6bca3dc9cce02e7554f5da7d6c06cdf06833b32eca195714fef076b03 cqueues-20140729.tgz"
+md5sums="9d4a566f86265a8270186f587789aadf cqueues-20150119.tgz"
+sha256sums="70a7072c36fb9663f04825cc7a5773a928ad3101849f5f7754698982e41c2142 cqueues-20150119.tgz"
+sha512sums="603b5d93f5db05d09cfcc2be72cf01bd89830134e1a163ad9023b93cf484a7f5c84cbe3a734ec336cb0cc34a91eb51b29bea1b3d46d415d5668a507a98dbb46e cqueues-20150119.tgz"