Date: Tuesday, May 5, 2015 @ 17:20:28 Author: anatolik Revision: 132802
upgpkg: lua-alt-getopt 0.7.0-7 - add lua52 specific package Modified: lua-alt-getopt/trunk/PKGBUILD ----------+ PKGBUILD | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-05-05 15:17:20 UTC (rev 132801) +++ PKGBUILD 2015-05-05 15:20:28 UTC (rev 132802) @@ -4,14 +4,14 @@ # contributor: Cameron Banta <[email protected]> pkgbase=lua-alt-getopt -pkgname=(lua-alt-getopt lua51-alt-getopt) +pkgname=(lua-alt-getopt lua51-alt-getopt lua52-alt-getopt) pkgver=0.7.0 -pkgrel=6 -pkgdesc="Lua module for processing options similar to getopt_long(3) (5.1)" +pkgrel=7 +pkgdesc="Lua module for processing options similar to getopt_long(3)" license=('MIT') arch=('any') url="http://luaforge.net/projects/alt-getopt/" -makedepends=('bmake' 'lua' 'lua51') +makedepends=('bmake' 'lua' 'lua51' 'lua52') source=("http://mova.org/~cheusov/pub/lua_alt_getopt/lua-alt-getopt-${pkgver}.tar.gz" 'LICENSE') sha1sums=('431b590002f5fdced78e0745a9a283aefdd1dfa0' @@ -20,10 +20,14 @@ build() { cp -r "${pkgname}-${pkgver}" build51 cp -r "${pkgname}-${pkgver}" build52 + cp -r "${pkgname}-${pkgver}" build53 + cd $srcdir/build51 bmake LUAVER=5.1 PREFIX=/usr cd $srcdir/build52 bmake LUAVER=5.2 PREFIX=/usr + cd $srcdir/build53 + bmake LUAVER=5.3 PREFIX=/usr } package_lua51-alt-getopt() { @@ -34,10 +38,18 @@ install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } +package_lua52-alt-getopt() { + depends=('lua52') + cd $srcdir/build52 + install -Dm755 alt_getopt "${pkgdir}/usr/bin/alt_getopt5.2" + install -Dm664 alt_getopt.lua "${pkgdir}/usr/share/lua/5.2/alt_getopt.lua" + install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + package_lua-alt-getopt() { depends=('lua') - cd $srcdir/build52 + cd $srcdir/build53 install -Dm755 alt_getopt "${pkgdir}/usr/bin/alt_getopt" - install -Dm664 alt_getopt.lua "${pkgdir}/usr/share/lua/5.2/alt_getopt.lua" + install -Dm664 alt_getopt.lua "${pkgdir}/usr/share/lua/5.3/alt_getopt.lua" install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
