[arch-commits] Commit in (5 files)

Sergej Pupykin spupykin at nymeria.archlinux.org
Thu Apr 24 14:25:05 UTC 2014


    Date: Thursday, April 24, 2014 @ 16:25:05
  Author: spupykin
Revision: 110126

Added:
  lua-alt-getopt/
  lua-alt-getopt/repos/
  lua-alt-getopt/trunk/
  lua-alt-getopt/trunk/LICENSE
  lua-alt-getopt/trunk/PKGBUILD

----------+
 LICENSE  |    7 +++++++
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

Added: lua-alt-getopt/trunk/LICENSE
===================================================================
--- lua-alt-getopt/trunk/LICENSE	                        (rev 0)
+++ lua-alt-getopt/trunk/LICENSE	2014-04-24 14:25:05 UTC (rev 110126)
@@ -0,0 +1,7 @@
+Copyright © 2008 Lua.org, PUC-Rio.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 

Added: lua-alt-getopt/trunk/PKGBUILD
===================================================================
--- lua-alt-getopt/trunk/PKGBUILD	                        (rev 0)
+++ lua-alt-getopt/trunk/PKGBUILD	2014-04-24 14:25:05 UTC (rev 110126)
@@ -0,0 +1,40 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07 at gmail.com>
+# contributor: Cameron Banta <cbanta at gmail.com>
+
+pkgbase=lua-alt-getopt
+pkgname=(lua-alt-getopt lua51-alt-getopt)
+pkgver=0.7.0
+pkgrel=5
+pkgdesc="Lua module for processing options similar to getopt_long(3) (5.1)"
+license=('MIT')
+arch=('any')
+url="http://luaforge.net/projects/alt-getopt/"
+depends=('lua' 'lua51')
+makedepends=('bmake')
+source=("http://mova.org/~cheusov/pub/lua_alt_getopt/lua-alt-getopt-${pkgver}.tar.gz"
+        'LICENSE')
+sha1sums=('431b590002f5fdced78e0745a9a283aefdd1dfa0'
+          'e471a511997528dd080d2997580499c37d06111a')
+
+build() {
+  cp -r "${pkgname}-${pkgver}" build51
+  cp -r "${pkgname}-${pkgver}" build52
+  cd $srcdir/build51
+  bmake LUAVER=5.1 PREFIX=/usr
+  cd $srcdir/build52
+  bmake LUAVER=5.2 PREFIX=/usr
+}
+
+package_lua51-alt-getopt() {
+  cd $srcdir/build51
+  install -Dm755 alt_getopt "${pkgdir}/usr/bin/alt_getopt5.1"
+  install -Dm664 alt_getopt.lua "${pkgdir}/usr/share/lua/5.1/alt_getopt.lua"
+  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_lua-alt-getopt() {
+  cd $srcdir/build52
+  install -Dm755 alt_getopt "${pkgdir}/usr/bin/alt_getopt"
+  install -Dm664 alt_getopt.lua "${pkgdir}/usr/share/lua/5.2/alt_getopt.lua"
+  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}




More information about the arch-commits mailing list