aboutsummaryrefslogtreecommitdiffstats
path: root/community/lua-hiredis/APKBUILD
diff options
context:
space:
mode:
authorNathan Angelacos <nangel@alpinelinux.org>2016-04-29 01:50:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-02 17:30:27 +0000
commitb083df45bc139ba58d6d6015ae070040d2934c62 (patch)
treeec6760287afb463816bb5f7bc4b588bb9b76ba68 /community/lua-hiredis/APKBUILD
parent4bf97c41ecf5391ad046883164979e2ff7fee447 (diff)
downloadaports-b083df45bc139ba58d6d6015ae070040d2934c62.tar.bz2
aports-b083df45bc139ba58d6d6015ae070040d2934c62.tar.xz
community/lua-hiredis
Make sure libhiredis is liked to the module Apply various codefixes from github to bring code base to e6355d4 (Mar 24 2014) Apply https://github.com/agladysh/lua-hiredis/pull/6
Diffstat (limited to 'community/lua-hiredis/APKBUILD')
-rw-r--r--community/lua-hiredis/APKBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/community/lua-hiredis/APKBUILD b/community/lua-hiredis/APKBUILD
index 190ce311b7..d399853327 100644
--- a/community/lua-hiredis/APKBUILD
+++ b/community/lua-hiredis/APKBUILD
@@ -4,7 +4,7 @@ _luaversions="5.1 5.2 5.3"
pkgname=lua-hiredis
pkgver=0.2.1
-pkgrel=0
+pkgrel=1
pkgdesc="Binding to libhiredis for Lua"
url="https://github.com/agladysh/lua-hiredis"
arch="all"
@@ -22,9 +22,10 @@ done
install=""
source="lua-hiredis-$pkgver.tar.gz::https://github.com/agladysh/lua-hiredis/archive/v$pkgver.tar.gz
- 0001-lua-5-3-compatibility.patch
+ 0002-lua-hiredis-master.patch
+ 0003-lua-5-2-compatbility.patch
"
-
+# 0001-lua-5-3-compatibility.patch
_builddir="$srcdir"/lua-hiredis-$pkgver
prepare() {
local i
@@ -55,15 +56,18 @@ _split() {
${CC:-gcc} ${CFLAGS} $(pkg-config --cflags hiredis) \
$(pkg-config --cflags lua$_ver) -shared -fPIC \
-I/usr/include/lua$_ver -I/usr/include/hiredis \
- -o hiredis.so src/lua-hiredis.c \
+ -lhiredis -o hiredis.so src/lua-hiredis.c \
|| return 1
install -Dm755 hiredis.so \
"$subpkgdir"/usr/lib/lua/$_ver/hiredis.so || return 1
}
md5sums="edd68a6f0b39ba9cae100de275853696 lua-hiredis-0.2.1.tar.gz
-acf9dc5b26d8ce3fa341099467ae8776 0001-lua-5-3-compatibility.patch"
+ea686bff78a4307d0f7874aa63fc0204 0002-lua-hiredis-master.patch
+44515c8cf4b2c9ece011e7af8e97aa86 0003-lua-5-2-compatbility.patch"
sha256sums="38976799776cc702f4b8cc396babda4152975855d593a17da1343eeb2cebcb34 lua-hiredis-0.2.1.tar.gz
-de2edefec93d90adf2b594e81a284b82f4b5712e9422fd3e4d41f84afdae9a80 0001-lua-5-3-compatibility.patch"
+b333f545078b8a42eee27135ac764ec2c436ef2d89193f8a6ba931de1061a5a9 0002-lua-hiredis-master.patch
+48cdfa61013f4c644c75bb2119224c08ef6e86d76c5e25fb7818c22ba67b3913 0003-lua-5-2-compatbility.patch"
sha512sums="b53eea8b51ddfbfa4592e7a3bb004416edd6240a860656ec809b603349357d3e754a2b5f2a92cb33d0a46259beae86f1c99981e848193f112888982d97cb94b7 lua-hiredis-0.2.1.tar.gz
-78f15aac6088dd37de5d462e9ac26c1c3d0ea3d5e783df155f4be5b5415113eb0954feea499335003e89c40768d8005b0d158101acc197aa80aa57109c32ffca 0001-lua-5-3-compatibility.patch"
+0017a218a126e0b96a5cc4126a0b8dc7600ef6029af24f3ca685e46cabade03d25a3c318b3d80c907785f2f2abc7dfb2c9a047e6a7c53e082ab682a3ac5ca18b 0002-lua-hiredis-master.patch
+9cf63994de040d8818c3db3053d506244e7a4a647ae71609533b5c889517d6addf01dde185f83d7472f4580dea4d26dce69e5e5ad86ca7c70343eaffe0d7e137 0003-lua-5-2-compatbility.patch"