diff options
author | Michael Zuo <muh.muhten@gmail.com> | 2016-03-06 18:00:37 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-06 19:57:34 +0000 |
commit | 11949c75677ef1619799f96485a8599eb81415f3 (patch) | |
tree | 8b1ad761b719067de8ca838804ebda766d5e48df /main/lua-socket/APKBUILD | |
parent | 8357d9d4a2a04a45d997d4ec802abace437c2a55 (diff) | |
download | aports-11949c75677ef1619799f96485a8599eb81415f3.tar.bz2 aports-11949c75677ef1619799f96485a8599eb81415f3.tar.xz |
main/lua-socket: cleanup and upgrade to latest git
Fast-forward to pick up fixes since last release, remove patches that no longer
apply, and clean up APKBUILD to closer to the current style.
Diffstat (limited to 'main/lua-socket/APKBUILD')
-rw-r--r-- | main/lua-socket/APKBUILD | 40 |
1 files changed, 13 insertions, 27 deletions
diff --git a/main/lua-socket/APKBUILD b/main/lua-socket/APKBUILD index d2b12515da..86dea01b90 100644 --- a/main/lua-socket/APKBUILD +++ b/main/lua-socket/APKBUILD @@ -3,7 +3,7 @@ _luaversions="5.1 5.2 5.3" pkgname=lua-socket _name=luasocket -pkgver=3.0_rc1_git20150301 +pkgver=3.0_rc1_git20160306 pkgrel=0 _ver=${pkgver%_git*} _ver=${_ver/_rc/-rc} @@ -11,8 +11,8 @@ pkgdesc="Networking library for Lua" url="http://luaforge.net/projects/luasocket/" arch="all" license="MIT" -install= -depends="lua5.1-socket" +install="" +depends="" makedepends="" subpackages="" for _i in $_luaversions; do @@ -22,21 +22,15 @@ done source="luasocket-$_ver.tar.gz::https://github.com/diegonehab/luasocket/archive/v$_ver.tar.gz git.patch lua-cflags.patch - include-luasocket.patch " -_sdir="$srcdir/$_name-$_ver" +# default_prepare assumes $_builddir +_builddir="$srcdir/$_name-$_ver" prepare() { - cd "$_sdir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done - + default_prepare for _i in $_luaversions; do - cp -r "$_sdir" "$srcdir"/build-$_i + cp -r "$_builddir" "$srcdir"/build-$_i # set lua version sed -i -e "/^LUAV?=/s/=.*/=$_i/" \ "$srcdir"/build-$_i/src/makefile || return 1 @@ -44,27 +38,22 @@ prepare() { } build() { - cd "$_builddir" for _i in $_luaversions; do make -C "$srcdir"/build-$_i/src all-unix || return 1 done } package() { - cd "$_builddir" for _i in $_luaversions; do cd "$srcdir"/build-$_i make prefix=/usr DESTDIR="$pkgdir" install-unix || return 1 done - } _split() { local d= _ver=$1 pkgdesc="Networking library for Lua $_ver" install_if="lua$_ver $pkgname=$pkgver-r$pkgrel" - replaces="$pkgname" - depends= for d in usr/lib/lua usr/share/lua; do if [ -d "$pkgdir"/$d/$_ver ]; then mkdir -p "$subpkgdir"/$d @@ -78,14 +67,11 @@ for _i in $_luaversions; do done md5sums="08bd2f265b244eb4bf5c2c36bf89b759 luasocket-3.0-rc1.tar.gz -2e14aba126cec984e1824a4da35d45f8 git.patch -8adb3bb6f4c6f63de8c56412ef623953 lua-cflags.patch -4bcbbc8d3383db94223155fc7a6d454e include-luasocket.patch" +44c07dc3dd311541a50b21aaa40e36d7 git.patch +d4319e4a20d476ea8d77a3421fca1808 lua-cflags.patch" sha256sums="8b67d9b5b545e1b694753dab7bd6cdbc24c290f2b21ba1e14c77b32817ea1249 luasocket-3.0-rc1.tar.gz -d64d35ba14a8b1381c20273d1390ee7c170b4ff566ad503621cac9f4c129bbb8 git.patch -e5d38d3b1484b61ab43627efdc302f78c24733aa2d422e6745fe273b1a56d94b lua-cflags.patch -42b1a439805efaf33110e01a53798b3e8d044101470808fe9478ca3be0ae5165 include-luasocket.patch" +414cfe53e4455fc2b416779d5eaa3ade6d97c01fa62dbffb6c9d4d4ad84bdd76 git.patch +77d77fe688b27ae51bcf9d3ae51d43141ab85d95fd322b3904b55dbc76900418 lua-cflags.patch" sha512sums="f6efce259aaacaa11472911471f8a13b118fe009b8953a82c6aa18b9ec829cd1293180904e56935cb130d36d267e3f27c91db2d78e03f7488f3e100571ed0540 luasocket-3.0-rc1.tar.gz -85a6dc3b8e674200a2928f397fcb7fb9ca0e41870d5628c9c24aabc140d8fa14c12576cfa6e8bef687ab914d378585557b9a2f3bf09173a003d51f7f8e2a0d34 git.patch -9a155e11e117b9f0485899951051a61d21cdc088d3a5e1ec0e2d018cb257b6edaaf342f5f5304cb229160247ced5ff0fe825f880cb695a201295b4399546de84 lua-cflags.patch -34db925f9e9a1a629d01dc26072f4edec77087f7bf89dda8140326447662efbc53ce5e36087fa9127d708d498c129613f7ed82862dd3176df16796418868548d include-luasocket.patch" +45c80e488fedc879f0217bc8a654d80da003039f5d1ff21b0dea0eb769151787dbe793e44a3dfd72cb07ff2697eceaf4fc7b55b4634cd170fa71281f19f025a5 git.patch +fb482ad22b5caa2054b25c86edc01d1a666035930f6b55e7d12704dd78b9c31343c39eab5f13958941180d819aa37470c75fe27f1b206a4b431fb589663e2685 lua-cflags.patch" |