[arch-commits] Commit in lpeg/repos (6 files)
Anatol Pomozov
anatolik at archlinux.org
Mon Sep 28 18:27:31 UTC 2015
Date: Monday, September 28, 2015 @ 20:27:31
Author: anatolik
Revision: 247676
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
lpeg/repos/testing-i686/
lpeg/repos/testing-i686/LICENSE
(from rev 247675, lpeg/trunk/LICENSE)
lpeg/repos/testing-i686/PKGBUILD
(from rev 247675, lpeg/trunk/PKGBUILD)
lpeg/repos/testing-x86_64/
lpeg/repos/testing-x86_64/LICENSE
(from rev 247675, lpeg/trunk/LICENSE)
lpeg/repos/testing-x86_64/PKGBUILD
(from rev 247675, lpeg/trunk/PKGBUILD)
-------------------------+
testing-i686/LICENSE | 7 ++++
testing-i686/PKGBUILD | 79 ++++++++++++++++++++++++++++++++++++++++++++++
testing-x86_64/LICENSE | 7 ++++
testing-x86_64/PKGBUILD | 79 ++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 172 insertions(+)
Copied: lpeg/repos/testing-i686/LICENSE (from rev 247675, lpeg/trunk/LICENSE)
===================================================================
--- testing-i686/LICENSE (rev 0)
+++ testing-i686/LICENSE 2015-09-28 18:27:31 UTC (rev 247676)
@@ -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.
Copied: lpeg/repos/testing-i686/PKGBUILD (from rev 247675, lpeg/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2015-09-28 18:27:31 UTC (rev 247676)
@@ -0,0 +1,79 @@
+# $Id$
+# Maintainer:
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+
+pkgbase=lpeg
+pkgname=(lua-lpeg lua51-lpeg lua52-lpeg)
+pkgver=1.0.0
+pkgrel=1
+arch=('i686' 'x86_64')
+url='http://www.inf.puc-rio.br/~roberto/lpeg'
+license=('MIT')
+makedepends=('lua' 'lua51' 'lua52')
+source=(http://www.inf.puc-rio.br/~roberto/$pkgbase/$pkgbase-$pkgver.tar.gz
+ LICENSE)
+sha1sums=('64a0920c9243b624a277c987d2219b6c50c43971'
+ 'e471a511997528dd080d2997580499c37d06111a')
+
+prepare() {
+ sed 's/^CFLAGS =/CFLAGS +=/' -i $pkgbase-$pkgver/makefile
+ sed 's/^COPT =/# COPT =/' -i $pkgbase-$pkgver/makefile
+
+ cp -r $pkgbase-$pkgver $pkgbase-$pkgver-51
+ cp -r $pkgbase-$pkgver $pkgbase-$pkgver-52
+}
+
+build() {
+ cd $pkgbase-$pkgver
+ make LUADIR=/usr/include
+
+ cd "$srcdir"/$pkgbase-$pkgver-51
+ make LUADIR=/usr/include/lua5.1
+
+ cd "$srcdir"/$pkgbase-$pkgver-52
+ make LUADIR=/usr/include/lua5.2
+}
+
+check() {
+ msg2 "Testing with Lua 5.3"
+ cd $srcdir/$pkgbase-$pkgver
+ lua test.lua
+
+ msg2 "Testing with Lua 5.1"
+ cd $srcdir/$pkgbase-$pkgver-51
+ lua5.1 test.lua
+
+ msg2 "Testing with Lua 5.2"
+ cd $srcdir/$pkgbase-$pkgver-52
+ lua5.2 test.lua
+}
+
+package_lua-lpeg() {
+ pkgdesc='Pattern-matching library for Lua 5.3'
+ depends=('lua')
+
+ cd $pkgbase-$pkgver
+ install -Dm755 $pkgbase.so "$pkgdir"/usr/lib/lua/5.3/$pkgbase.so
+ install -Dm644 re.lua "$pkgdir"/usr/share/lua/5.3/re.lua
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_lua51-lpeg() {
+ pkgdesc='Pattern-matching library for Lua 5.1'
+ depends=('lua51')
+
+ cd $pkgbase-$pkgver-51
+ install -Dm755 $pkgbase.so "$pkgdir"/usr/lib/lua/5.1/$pkgbase.so
+ install -Dm644 re.lua "$pkgdir"/usr/share/lua/5.1/re.lua
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_lua52-lpeg() {
+ pkgdesc='Pattern-matching library for Lua 5.2'
+ depends=('lua52')
+
+ cd $pkgbase-$pkgver-52
+ install -Dm755 $pkgbase.so "$pkgdir"/usr/lib/lua/5.2/$pkgbase.so
+ install -Dm644 re.lua "$pkgdir"/usr/share/lua/5.2/re.lua
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: lpeg/repos/testing-x86_64/LICENSE (from rev 247675, lpeg/trunk/LICENSE)
===================================================================
--- testing-x86_64/LICENSE (rev 0)
+++ testing-x86_64/LICENSE 2015-09-28 18:27:31 UTC (rev 247676)
@@ -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.
Copied: lpeg/repos/testing-x86_64/PKGBUILD (from rev 247675, lpeg/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2015-09-28 18:27:31 UTC (rev 247676)
@@ -0,0 +1,79 @@
+# $Id$
+# Maintainer:
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+
+pkgbase=lpeg
+pkgname=(lua-lpeg lua51-lpeg lua52-lpeg)
+pkgver=1.0.0
+pkgrel=1
+arch=('i686' 'x86_64')
+url='http://www.inf.puc-rio.br/~roberto/lpeg'
+license=('MIT')
+makedepends=('lua' 'lua51' 'lua52')
+source=(http://www.inf.puc-rio.br/~roberto/$pkgbase/$pkgbase-$pkgver.tar.gz
+ LICENSE)
+sha1sums=('64a0920c9243b624a277c987d2219b6c50c43971'
+ 'e471a511997528dd080d2997580499c37d06111a')
+
+prepare() {
+ sed 's/^CFLAGS =/CFLAGS +=/' -i $pkgbase-$pkgver/makefile
+ sed 's/^COPT =/# COPT =/' -i $pkgbase-$pkgver/makefile
+
+ cp -r $pkgbase-$pkgver $pkgbase-$pkgver-51
+ cp -r $pkgbase-$pkgver $pkgbase-$pkgver-52
+}
+
+build() {
+ cd $pkgbase-$pkgver
+ make LUADIR=/usr/include
+
+ cd "$srcdir"/$pkgbase-$pkgver-51
+ make LUADIR=/usr/include/lua5.1
+
+ cd "$srcdir"/$pkgbase-$pkgver-52
+ make LUADIR=/usr/include/lua5.2
+}
+
+check() {
+ msg2 "Testing with Lua 5.3"
+ cd $srcdir/$pkgbase-$pkgver
+ lua test.lua
+
+ msg2 "Testing with Lua 5.1"
+ cd $srcdir/$pkgbase-$pkgver-51
+ lua5.1 test.lua
+
+ msg2 "Testing with Lua 5.2"
+ cd $srcdir/$pkgbase-$pkgver-52
+ lua5.2 test.lua
+}
+
+package_lua-lpeg() {
+ pkgdesc='Pattern-matching library for Lua 5.3'
+ depends=('lua')
+
+ cd $pkgbase-$pkgver
+ install -Dm755 $pkgbase.so "$pkgdir"/usr/lib/lua/5.3/$pkgbase.so
+ install -Dm644 re.lua "$pkgdir"/usr/share/lua/5.3/re.lua
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_lua51-lpeg() {
+ pkgdesc='Pattern-matching library for Lua 5.1'
+ depends=('lua51')
+
+ cd $pkgbase-$pkgver-51
+ install -Dm755 $pkgbase.so "$pkgdir"/usr/lib/lua/5.1/$pkgbase.so
+ install -Dm644 re.lua "$pkgdir"/usr/share/lua/5.1/re.lua
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_lua52-lpeg() {
+ pkgdesc='Pattern-matching library for Lua 5.2'
+ depends=('lua52')
+
+ cd $pkgbase-$pkgver-52
+ install -Dm755 $pkgbase.so "$pkgdir"/usr/lib/lua/5.2/$pkgbase.so
+ install -Dm644 re.lua "$pkgdir"/usr/share/lua/5.2/re.lua
+ install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list