diff --git a/desktop/kde/plasma/baloo-widgets/actions.py b/desktop/kde/plasma/baloo-widgets/actions.py
new file mode 100644
index 0000000000..f7a603df3f
--- /dev/null
+++ b/desktop/kde/plasma/baloo-widgets/actions.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#
+# Licensed under the GNU General Public License, version 3.
+# See the file http://www.gnu.org/licenses/gpl.txt
+
+from pisi.actionsapi import kde5
+from pisi.actionsapi import shelltools
+from pisi.actionsapi import get
+from pisi.actionsapi import pisitools
+
+#WorkDir = "src"
+def setup():
+ #shelltools.makedirs("build")
+ #shelltools.cd("build")
+ kde5.configure()
+
+def build():
+ #shelltools.cd("..")
+ kde5.make()
+
+def install():
+ kde5.install()
+
+ pisitools.dodoc("COPYING", "COPYING.LIB", "COPYING.README")
diff --git a/desktop/kde/plasma/baloo-widgets/pspec.xml b/desktop/kde/plasma/baloo-widgets/pspec.xml
new file mode 100755
index 0000000000..8df3b332f7
--- /dev/null
+++ b/desktop/kde/plasma/baloo-widgets/pspec.xml
@@ -0,0 +1,94 @@
+
+
+
+
+ baloo-widgets
+ http://www.kde.org
+
+ Pisi Linux Admins
+ admin@pisilinux.org
+
+ LGPLv2
+ library
+ app:console
+ Framework for searching and managing metadata
+ Baloo is a framework for searching and managing metada
+ http://download1476.mediafire.com/x4t6a1q9uq3g/l14l283v1qb1p20/baloo-widgets.tar.xz
+
+ qt5-base-devel
+ kf5-baloo-devel
+ kdoctools-devel
+ extra-cmake-modules
+
+
+
+
+ baloo-widgets
+
+ qt5-base
+ libgcc
+ kcoreaddons
+ kwidgetsaddons
+ qt5-base
+ baloo
+ attr
+ xapian-core
+ kauth
+ kcmutils
+ kconfig
+ kcrash
+ kdelibs4-support
+ ki18n
+ kidletime
+ kio
+ krunner
+ solid
+ kfilemetadata
+
+
+ /etc
+ /usr/share
+ /usr/share/locale
+ /usr/bin
+ /usr/lib/qt5
+ /usr/lib
+ /usr/share/doc
+
+
+ baloo
+
+
+ baloo
+
+
+
+
+ baloo-widgets-devel
+ Development files for baloo-widgets
+
+ qt5-base-devel
+ baloo-widgets
+
+
+ /usr/include
+ /usr/lib/cmake
+ /usr/lib/pkgconfig
+
+
+ baloo-devel
+
+
+ baloo-devel
+
+
+
+
+
+ 2015-07-23
+ 5.3.2
+ First Release
+ Stefan Gronewold (groni)
+ groni@pisilinux.org
+
+
+
diff --git a/multimedia/video/gst-plugins-bad-next/actions.py b/multimedia/video/gst-plugins-bad-next/actions.py
new file mode 100644
index 0000000000..71cdeecef3
--- /dev/null
+++ b/multimedia/video/gst-plugins-bad-next/actions.py
@@ -0,0 +1,45 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#
+# Licensed under the GNU General Public License, version 3.
+# See the file http://www.gnu.org/licenses/gpl.txt
+
+from pisi.actionsapi import autotools
+from pisi.actionsapi import pisitools
+from pisi.actionsapi import shelltools
+from pisi.actionsapi import get
+
+def setup():
+ shelltools.export("AUTOPOINT", "true")
+ #pisitools.dosed("autogen.sh", "tool_run.*autopoint --force.*")
+ shelltools.export("NOCONFIGURE", "1")
+ shelltools.system("./autogen.sh")
+
+ """The following is a list of disabled plugins:
+ celt -> (celtdec, celtenc) -> Not available in Pardus repos,
+ qtwrapper, checks for QuickTime/Movies.h -> Not available in Pardus repos,
+ divx -> divx4linux,
+ dirac -> needs dirac-research package, http://dirac.sourceforge.net
+ """
+
+ autotools.configure("--disable-static \
+ --disable-experimental \
+ --with-package-name='PisiLinux gstreamer-plugins-bad package' \
+ --with-package-origin='http://www.pisilinux.org' \
+ --with-gtk=3.0")
+
+ pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
+
+def build():
+ autotools.make()
+
+#FIXME: tests now tries to
+#def check():
+# # for sandbox violations
+# autotools.make("-C tests/check check")
+
+def install():
+ autotools.rawInstall("DESTDIR=%s" % get.installDIR())
+
+ pisitools.dodoc("ABOUT-NLS", "AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README", "RELEASE", "REQUIREMENTS")
+
diff --git a/multimedia/video/gst-plugins-bad-next/files/02_no-Werror.patch b/multimedia/video/gst-plugins-bad-next/files/02_no-Werror.patch
new file mode 100644
index 0000000000..9189a1aa8b
--- /dev/null
+++ b/multimedia/video/gst-plugins-bad-next/files/02_no-Werror.patch
@@ -0,0 +1,38 @@
+--- configure.old 2010-08-21 16:54:00.918473667 +0300
++++ configure 2010-08-21 17:05:44.390473644 +0300
+@@ -23994,7 +23994,7 @@
+ $as_echo_n "checking to see if compiler understands -Werror... " >&6; }
+
+ save_CFLAGS="$CFLAGS"
+- CFLAGS="$CFLAGS -Werror"
++ CFLAGS="$CFLAGS"
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+@@ -24016,7 +24016,7 @@
+ CFLAGS="$save_CFLAGS"
+
+ if test "X$flag_ok" = Xyes ; then
+- ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
++ ERROR_CFLAGS="$ERROR_CFLAGS"
+ true
+ else
+
+@@ -24348,7 +24348,7 @@
+ $as_echo_n "checking to see if c++ compiler understands -Werror... " >&6; }
+
+ save_CPPFLAGS="$CPPFLAGS"
+- CPPFLAGS="$CPPFLAGS -Werror"
++ CPPFLAGS="$CPPFLAGS"
+
+ ac_ext=cpp
+ ac_cpp='$CXXCPP $CPPFLAGS'
+@@ -24377,7 +24377,7 @@
+ CPPFLAGS="$save_CPPFLAGS"
+
+ if test "X$flag_ok" = Xyes ; then
+- ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror"
++ ERROR_CXXFLAGS="$ERROR_CXXFLAGS"
+ true
+ else
+
diff --git a/multimedia/video/gst-plugins-bad-next/files/gst-plugins-bad-0.10.7-wildmidi-timidity.cfg.patch b/multimedia/video/gst-plugins-bad-next/files/gst-plugins-bad-0.10.7-wildmidi-timidity.cfg.patch
new file mode 100644
index 0000000000..c0817fb41e
--- /dev/null
+++ b/multimedia/video/gst-plugins-bad-next/files/gst-plugins-bad-0.10.7-wildmidi-timidity.cfg.patch
@@ -0,0 +1,12 @@
+diff -p -up gst-plugins-bad-0.10.7/ext/timidity/gstwildmidi.c~ gst-plugins-bad-0.10.7/ext/timidity/gstwildmidi.c
+--- gst-plugins-bad-0.10.7/ext/timidity/gstwildmidi.c~ 2008-03-13 15:25:20.000000000 +0100
++++ gst-plugins-bad-0.10.7/ext/timidity/gstwildmidi.c 2008-05-16 16:31:45.000000000 +0200
+@@ -59,7 +59,7 @@
+ #include "gstwildmidi.h"
+
+ #ifndef WILDMIDI_CFG
+-#define WILDMIDI_CFG "/etc/timidity.cfg"
++#define WILDMIDI_CFG "/etc/timidity/timidity.cfg"
+ #endif
+
+ GST_DEBUG_CATEGORY_STATIC (gst_wildmidi_debug);
diff --git a/multimedia/video/gst-plugins-bad-next/files/remove_external_symbols.patch b/multimedia/video/gst-plugins-bad-next/files/remove_external_symbols.patch
new file mode 100644
index 0000000000..1894f04bff
--- /dev/null
+++ b/multimedia/video/gst-plugins-bad-next/files/remove_external_symbols.patch
@@ -0,0 +1,13 @@
+--- ext/faad/gstfaad.c~ 2009-05-11 01:24:19.701465766 +0300
++++ ext/faad/gstfaad.c 2009-05-11 01:24:19.701465766 +0300
+@@ -63,10 +63,6 @@
+ #undef faacDecInit2
+ #endif
+
+-extern long faacDecInit (faacDecHandle, guint8 *, guint32, guint32 *, guint8 *);
+-extern gint8 faacDecInit2 (faacDecHandle, guint8 *, guint32,
+- guint32 *, guint8 *);
+-
+ #endif /* FAAD2_MINOR_VERSION < 7 */
+
+ GST_DEBUG_CATEGORY_STATIC (faad_debug);
diff --git a/multimedia/video/gst-plugins-bad-next/pspec.xml b/multimedia/video/gst-plugins-bad-next/pspec.xml
new file mode 100644
index 0000000000..9442e2cdd0
--- /dev/null
+++ b/multimedia/video/gst-plugins-bad-next/pspec.xml
@@ -0,0 +1,190 @@
+
+
+
+
+ gst-plugins-bad-next
+ http://gstreamer.freedesktop.org/modules/gst-plugins-bad.html
+
+ Osman Erkan
+ osman.erkan@pisilinux.org
+
+ GPLv2
+ library
+ A set of GStreamer plug-ins that aren't up to par compared to the rest
+ GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared to the rest. They might be close to being good quality, but they're missing something - be it a good code review, some documentation, a set of tests, a real live maintainer, or some actual wide use.
+ http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.4.5.tar.xz
+
+ gstreamermm-devel
+ gst-plugins-base-devel
+ libdvdread-devel
+ libdvdnav-devel
+ soundtouch-devel
+ faac-devel
+ valgrind
+ jasper-devel
+ libdca-devel-->
+ gsm-devel-->
+ mjpegtools-devel-->
+ libdvdnav-devel -->
+ libsndfile-devel-->
+ DirectFB-devel
+ libSM-devel
+ libICE-devel
+ celt-devel
+ libdc1394-devel
+ alsa-lib-devel
+ libsdl-devel
+ soundtouch-devel
+ libtheora-devel
+ libmodplug-devel
+ xvid-devel
+ libdvdread-devel
+ libvdpau-devel
+ rtmpdump-devel
+ schroedinger-devel
+ gdk-pixbuf-devel
+ libvo-aacenc-devel
+ libvo-amrwbenc-devel
+
+
+
+ 02_no-Werror.patch
+ remove_external_symbols.patch
+ gst-plugins-bad-0.10.7-wildmidi-timidity.cfg.patch
+
+
+
+
+ gst-plugins-bad-next
+
+ DirectFB
+ libdca
+ libgcc
+ libxml2
+ faac
+ bzip2
+ glib2
+ libX11
+ gsm
+ libmodplug
+ mjpegtools
+ soundtouch
+ libdvdnav
+ libsndfile
+
+ libdvdread
+ libvdpau
+ schroedinger
+ gstreamer-next
+ orc
+ libvo-aacenc
+ libvo-amrwbenc
+ wayland-client
+ gst-plugins-base-next
+
+
+ /usr/bin
+ /usr/lib
+ /usr/share/locale
+ /usr/share/gstreamer-1.0
+ /usr/share/gst-plugins-bad/1.0/
+ /usr/share/gtk-doc
+ /usr/share/gir-1.0/
+ /usr/share/doc
+
+
+
+
+ gst-plugins-bad-next-devel
+ Development files for gst-plugins-bad
+
+ gst-plugins-bad-next
+ gstreamer-next-devel
+
+
+ /usr/lib/pkgconfig
+ /usr/include
+
+
+
+
+
+ 2015-04-18
+ 1.4.5
+ Version bump.
+ Yusuf Aydemir
+ yusuf.aydemir@pisilinux.org
+
+
+ 2014-08-23
+ 1.4.0
+ Version bump.
+ Yusuf Aydemir
+ yusuf.aydemir@pisilinux.org
+
+
+ 2014-05-28
+ 1.2.4
+ Version bump.
+ Alihan Öztürk
+ alihan@pisilinux.org
+
+
+ 2014-04-23
+ 1.2.3
+ Rebuild for webp.
+ Kamil Atlı
+ suvarice@gmail.com
+
+
+ 2014-02-14
+ 1.2.3
+ Version bump.
+ Yusuf Aydemir
+ yusuf.aydemir@pisilinux.org
+
+
+ 2013-11-20
+ 1.2.1
+ Version bump
+ Richard de Bruin
+ richdb@pisilinux.org
+
+
+ 2013-10-14
+ 1.2.0
+ bump
+ Osman Erkan
+ erdincgultekin@pisilinux.org
+
+
+ 2013-08-30
+ 1.1.4
+ First release
+ Osman Erkan
+ osman.erkan@pisilinux.org
+
+
+
diff --git a/multimedia/video/gst-plugins-bad-next/translations.xml b/multimedia/video/gst-plugins-bad-next/translations.xml
new file mode 100644
index 0000000000..9489ea72f0
--- /dev/null
+++ b/multimedia/video/gst-plugins-bad-next/translations.xml
@@ -0,0 +1,13 @@
+
+
+
+ gst-plugins-bad
+ Diğer eklentilerle karşılaştırıldığında çok iyi durumda olmayan gstreamer eklentileri
+ gst-plugins-bad, iyiye yakın kalitede olan ancak gerçek bir geliştirici, belgelendirme, test seti gibi eksikleri bulunan eklentilerdir.
+
+
+
+ gst-plugins-bad-devel
+ gst-plugins-bad için geliştirme dosyaları
+
+
diff --git a/multimedia/video/gst-plugins-base-next/pspec.xml b/multimedia/video/gst-plugins-base-next/pspec.xml
index 35f9946e0d..17203048c9 100644
--- a/multimedia/video/gst-plugins-base-next/pspec.xml
+++ b/multimedia/video/gst-plugins-base-next/pspec.xml
@@ -19,7 +19,6 @@
pango-devel
cairo-devel
libXv-devel
- liboil-devel
libogg-devel
libXext-devel
alsa-lib-devel
@@ -29,21 +28,19 @@
gobject-introspection-devel
orc-devel
-
gst-plugins-base-next
+ zlib
+ glib2
+ libX11
gstreamer-next
cdparanoia
pango
cairo
libXv
- liboil
libogg
libXext
alsa-lib
@@ -51,8 +48,6 @@
libvisual
libtheora
orc
- libSM
- libICE
/usr/bin
@@ -72,6 +67,7 @@
gst-plugins-base-next
gstreamer-next-devel
+ glib2-devel
/usr/include
diff --git a/programming/language/lua/actions.py b/programming/language/lua/actions.py
new file mode 100644
index 0000000000..30670d6d90
--- /dev/null
+++ b/programming/language/lua/actions.py
@@ -0,0 +1,34 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#
+# Licensed under the GNU General Public License, version 3.
+# See the file http://www.gnu.org/licenses/gpl.txt
+
+from pisi.actionsapi import shelltools
+from pisi.actionsapi import autotools
+from pisi.actionsapi import pisitools
+from pisi.actionsapi import get
+
+major = ".".join(get.srcVERSION().split(".")[:2])
+
+def setup():
+ pisitools.dosed("src/Makefile", "^CFLAGS.*$", "CFLAGS=%s -fPIC -DLUA_USE_LINUX" % get.CFLAGS())
+ pisitools.dosed("src/Makefile", "^MYLDFLAGS.*$", "MYLDFLAGS=%s" % get.LDFLAGS())
+ pisitools.dosed("lua.pc", "%VER%", "%s" % major)
+ pisitools.dosed("lua.pc", "%REL%", "%s" % get.srcVERSION())
+
+def build():
+ autotools.make("linux")
+
+def install():
+ autotools.rawInstall("INSTALL_TOP=%s/usr INSTALL_MAN=%s/usr/share/man/ TO_LIB='liblua.so liblua.so.5.2 liblua.so.5.2.4'" % (get.installDIR(),get.installDIR()))
+
+ pisitools.insinto("/usr/lib/pkgconfig", "lua.pc")
+ pisitools.insinto("/usr/lib/pkgconfig", "lua.pc", "lua5.2.pc")
+
+ #free directory
+ pisitools.removeDir("usr/lib/lua/")
+ pisitools.removeDir("usr/share/lua/")
+
+ pisitools.dohtml("doc")
+ pisitools.dodoc("README")
\ No newline at end of file
diff --git a/programming/language/lua/files/fix-linking.patch b/programming/language/lua/files/fix-linking.patch
new file mode 100644
index 0000000000..a7fd03514a
--- /dev/null
+++ b/programming/language/lua/files/fix-linking.patch
@@ -0,0 +1,22 @@
+Index: lua-5.1.4/src/Makefile
+===================================================================
+--- lua-5.1.4.orig/src/Makefile
++++ lua-5.1.4/src/Makefile
+@@ -53,7 +53,7 @@ $(LUA_A): $(CORE_O) $(LIB_O)
+ $(RANLIB) $@
+
+ $(LUA_SO): $(CORE_O) $(LIB_O)
+- $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LIBS) $(LUA_O)
++ $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LUA_O) $(LIBS)
+ rm -f liblua.so
+ ln -fs $@ liblua.so
+
+@@ -102,7 +102,7 @@ generic:
+ $(MAKE) all MYCFLAGS=
+
+ linux:
+- $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
++ $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-ldl -lreadline -lhistory -lncurses"
+
+ macosx:
+ $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
diff --git a/programming/language/lua/files/install.patch b/programming/language/lua/files/install.patch
new file mode 100644
index 0000000000..dd422ceba0
--- /dev/null
+++ b/programming/language/lua/files/install.patch
@@ -0,0 +1,47 @@
+--- Makefile~ 2008-08-12 03:40:48.000000000 +0300
++++ Makefile 2009-01-02 17:16:41.000000000 +0200
+@@ -9,16 +9,16 @@
+
+ # Where to install. The installation starts in the src and doc directories,
+ # so take care if INSTALL_TOP is not an absolute path.
+-INSTALL_TOP= /usr/local
++INSTALL_TOP= /usr
+ INSTALL_BIN= $(INSTALL_TOP)/bin
+ INSTALL_INC= $(INSTALL_TOP)/include
+ INSTALL_LIB= $(INSTALL_TOP)/lib
+-INSTALL_MAN= $(INSTALL_TOP)/man/man1
++INSTALL_MAN= $(INSTALL_TOP)/share/man/man1
+ #
+ # You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
+ # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
+ INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
+-INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
++INSTALL_CMOD= $(INSTALL_TOP)/lib
+
+ # How to install. If your install program does not support "-p", then you
+ # may have to run ranlib on the installed liblua.a (do "make ranlib").
+@@ -43,7 +43,7 @@
+ # What to install.
+ TO_BIN= lua luac
+ TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
+-TO_LIB= liblua.a
++TO_LIB= liblua.so.$V
+ TO_MAN= lua.1 luac.1
+
+ # Lua version and release.
+--- etc/lua.pc~ 2008-08-08 15:46:11.000000000 +0300
++++ etc/lua.pc 2009-01-02 17:17:32.000000000 +0200
+@@ -8,11 +8,11 @@
+ R= 5.1.4
+
+ # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
+-prefix= /usr/local
++prefix= /usr
+ INSTALL_BIN= ${prefix}/bin
+ INSTALL_INC= ${prefix}/include
+ INSTALL_LIB= ${prefix}/lib
+-INSTALL_MAN= ${prefix}/man/man1
++INSTALL_MAN= ${prefix}/share/man/man1
+ INSTALL_LMOD= ${prefix}/share/lua/${V}
+ INSTALL_CMOD= ${prefix}/lib/lua/${V}
+
diff --git a/programming/language/lua/files/liblua.so.patch b/programming/language/lua/files/liblua.so.patch
new file mode 100644
index 0000000000..92c1f3ac48
--- /dev/null
+++ b/programming/language/lua/files/liblua.so.patch
@@ -0,0 +1,57 @@
+diff -ru lua-5.2.1/Makefile lua-5.2.1.new/Makefile
+--- lua-5.2.1/Makefile 2012-05-17 16:05:54.000000000 +0200
++++ lua-5.2.1.new/Makefile 2012-09-12 22:39:07.162748096 +0200
+@@ -52,7 +52,7 @@
+ all: $(PLAT)
+
+ $(PLATS) clean:
+- cd src && $(MAKE) $@
++ cd src && $(MAKE) $@ V=$(V) R=$(R)
+
+ test: dummy
+ src/lua -v
+diff -ru lua-5.2.1/src/luaconf.h lua-5.2.1.new/src/luaconf.h
+--- lua-5.2.1/src/luaconf.h 2012-05-11 16:14:42.000000000 +0200
++++ lua-5.2.1.new/src/luaconf.h 2012-09-12 22:40:27.986622772 +0200
+@@ -100,7 +100,7 @@
+ #else /* }{ */
+
+ #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
+-#define LUA_ROOT "/usr/local/"
++#define LUA_ROOT "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR
+ #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR
+ #define LUA_PATH_DEFAULT \
+diff -ru lua-5.2.1/src/Makefile lua-5.2.1.new/src/Makefile
+--- lua-5.2.1/src/Makefile 2012-03-09 17:32:16.000000000 +0100
++++ lua-5.2.1.new/src/Makefile 2012-09-12 22:38:08.591386896 +0200
+@@ -29,6 +29,7 @@
+ PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+
+ LUA_A= liblua.a
++LUA_SO= liblua.so
+ CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
+ lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \
+ ltm.o lundump.o lvm.o lzio.o
+@@ -43,7 +44,7 @@
+ LUAC_O= luac.o
+
+ ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
+ ALL_A= $(LUA_A)
+
+ # Targets start here.
+@@ -59,6 +60,12 @@
+ $(AR) $@ $(BASE_O)
+ $(RANLIB) $@
+
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS)
++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V)
++ ln -sf $(LUA_SO).$(R) $(LUA_SO)
++
++
+ $(LUA_T): $(LUA_O) $(LUA_A)
+ $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
+
diff --git a/programming/language/lua/files/lua-5.1-dynlib.patch b/programming/language/lua/files/lua-5.1-dynlib.patch
new file mode 100644
index 0000000000..f8b95c757d
--- /dev/null
+++ b/programming/language/lua/files/lua-5.1-dynlib.patch
@@ -0,0 +1,42 @@
+--- ./src/Makefile.dynlib 2006-03-22 01:41:49.000000000 +0100
++++ ./src/Makefile 2006-08-17 10:49:36.000000000 +0200
+@@ -22,6 +22,7 @@
+
+ PLATS= aix ansi bsd generic linux macosx mingw posix solaris
+
++LUA_SO= liblua.so.$(V)
+ LUA_A= liblua.a
+ CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
+ lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
+@@ -36,7 +37,7 @@
+ LUAC_O= luac.o print.o
+
+ ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
+ ALL_A= $(LUA_A)
+
+ default: $(PLAT)
+@@ -51,6 +52,11 @@
+ $(AR) $@ $?
+ $(RANLIB) $@
+
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LIBS) $(LUA_O)
++ rm -f liblua.so
++ ln -fs $@ liblua.so
++
+ $(LUA_T): $(LUA_O) $(LUA_A)
+ $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
+
+--- ./Makefile.dynlib 2006-06-02 12:53:38.000000000 +0200
++++ ./Makefile 2006-08-17 10:47:54.000000000 +0200
+@@ -52,7 +52,7 @@
+ all: $(PLAT)
+
+ $(PLATS) clean:
+- cd src && $(MAKE) $@
++ cd src && $(MAKE) V=$(V) $@
+
+ test: dummy
+ src/lua test/hello.lua
diff --git a/programming/language/lua/files/lua-5.1-module_paths.patch b/programming/language/lua/files/lua-5.1-module_paths.patch
new file mode 100644
index 0000000000..29ac4c3bf4
--- /dev/null
+++ b/programming/language/lua/files/lua-5.1-module_paths.patch
@@ -0,0 +1,30 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## src_luaconf.h.dpatch by John V. Belmonte
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Set Lua's default PATH and CPATH.
+
+@DPATCH@
+diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h
+--- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500
++++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500
+@@ -83,13 +83,17 @@
+
+ #else
+ #define LUA_ROOT "/usr/local/"
++#define LUA_ROOT2 "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
++#define LUA_LDIR2 LUA_ROOT2 "share/lua/5.1/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
++#define LUA_CDIR2 LUA_ROOT2 "lib/lua/5.1/"
+ #define LUA_PATH_DEFAULT \
+ "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
+- LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
++ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
++ LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua"
+ #define LUA_CPATH_DEFAULT \
+- "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
++ "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so"
+ #endif
+
+
diff --git a/programming/language/lua/files/lua-5.1-pkgconfig-libdir.patch b/programming/language/lua/files/lua-5.1-pkgconfig-libdir.patch
new file mode 100644
index 0000000000..abf7ad3e40
--- /dev/null
+++ b/programming/language/lua/files/lua-5.1-pkgconfig-libdir.patch
@@ -0,0 +1,20 @@
+Index: lua-5.1.4/etc/lua.pc
+===================================================================
+--- lua-5.1.4.orig/etc/lua.pc
++++ lua-5.1.4/etc/lua.pc
+@@ -18,14 +18,13 @@ INSTALL_CMOD= ${prefix}/lib/lua/${V}
+
+ # canonical vars
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
+ includedir=${prefix}/include
+
+ Name: Lua
+ Description: An Extensible Extension Language
+ Version: ${R}
+ Requires:
+-Libs: -L${libdir} -llua -lm
++Libs: -llua -lm
+ Cflags: -I${includedir}
+
+ # (end of lua.pc)
diff --git a/programming/language/lua/files/lua.pc b/programming/language/lua/files/lua.pc
new file mode 100644
index 0000000000..bf7977bcd7
--- /dev/null
+++ b/programming/language/lua/files/lua.pc
@@ -0,0 +1,20 @@
+V=%VER%
+R=%REL%
+
+prefix=/usr
+INSTALL_BIN=${prefix}/bin
+INSTALL_INC=${prefix}/include
+INSTALL_LIB=${prefix}/lib
+INSTALL_MAN=${prefix}/man/man1
+INSTALL_LMOD=${prefix}/share/lua/${V}
+INSTALL_CMOD=${prefix}/lib/lua/${V}
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: Lua
+Description: An Extensible Extension Language
+Version: ${R}
+Requires:
+Libs: -L${libdir} -llua -lm
+Cflags: -I${includedir}
diff --git a/programming/language/lua/files/lua.png b/programming/language/lua/files/lua.png
new file mode 100644
index 0000000000..bd644676b7
Binary files /dev/null and b/programming/language/lua/files/lua.png differ
diff --git a/programming/language/lua/pspec.xml b/programming/language/lua/pspec.xml
new file mode 100644
index 0000000000..981a9303cc
--- /dev/null
+++ b/programming/language/lua/pspec.xml
@@ -0,0 +1,86 @@
+
+
+
+
+ lua
+ http://www.lua.org
+
+ PisiLinux Community
+ admins@pisilinux.org
+
+ LGPLv2
+ library
+ A light-weight programming language
+ lua is a powerful light-weight programming language designed for extending applications.
+ http://www.lua.org/ftp/lua-5.2.4.tar.gz
+
+ lua.pc
+
+
+ readline-devel
+
+
+ liblua.so.patch
+
+
+
+
+ lua
+
+ readline
+
+
+ /usr/lib
+ /usr/share/man
+ /usr/share/doc
+ /usr/bin
+ /usr/share/pixmaps
+
+
+ lua.png
+
+
+
+
+ lua-devel
+ Development files for lua
+
+ lua
+
+
+ /usr/include
+ /usr/lib/pkgconfig
+
+
+
+
+
+ 2015-06-03
+ 5.2.4
+ Version bump.
+ Vedat Demir
+ vedat@pisilinux.org
+
+
+ 2015-02-01
+ 5.2.3
+ Version bump.
+ Kamil Atlı
+ suvari@pisilinux.org
+
+
+ 2014-05-30
+ 5.1.5
+ Version bump.
+ Alihan Öztürk
+ alihan@pisilinux.org
+
+
+ 2010-10-13
+ 5.1.4
+ First release
+ Pisi Linux Admins
+ admins@pisilinux.org
+
+
+
diff --git a/programming/language/lua/translations.xml b/programming/language/lua/translations.xml
new file mode 100644
index 0000000000..7b1a023b10
--- /dev/null
+++ b/programming/language/lua/translations.xml
@@ -0,0 +1,14 @@
+
+
+
+ lua
+ Hafif bir programlama dili
+ lua, uygulamaları genişletmek için tasarlanmış hafif ve güçlü bir programlama dilidir.
+ Lua es un lenguaje de programación liviano y potente con todas las herramientas imaginables
+
+
+
+ lua-devel
+ lua için geliştirme dosyaları
+
+
diff --git a/programming/language/lua51/actions.py b/programming/language/lua51/actions.py
new file mode 100644
index 0000000000..d5a0bb65eb
--- /dev/null
+++ b/programming/language/lua51/actions.py
@@ -0,0 +1,37 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#
+# Licensed under the GNU General Public License, version 3.
+# See the file http://www.gnu.org/licenses/gpl.txt
+
+from pisi.actionsapi import shelltools
+from pisi.actionsapi import autotools
+from pisi.actionsapi import pisitools
+from pisi.actionsapi import get
+
+def build():
+ shelltools.system("sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' \
+ -i src/Makefile")
+ pisitools.dosed("src/Makefile", "^CFLAGS.*$", "CFLAGS=%s -DLUA_USE_LINUX" % get.CFLAGS())
+ pisitools.dosed("src/Makefile", "^MYLDFLAGS.*$", "MYLDFLAGS=%s" % get.LDFLAGS())
+ autotools.make("linux")
+
+def install():
+ options = "TO_BIN=\"lua5.1 luac5.1\" \
+ TO_LIB=\"liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.5.1.5 \" \
+ INSTALL_DATA=\"cp -d\" \
+ INSTALL_TOP=\"%s/usr\" \
+ INSTALL_INC=\"%s/usr/include/lua5.1\" \
+ INSTALL_MAN=%s/usr/share/man/man1" % (get.installDIR(),get.installDIR(),get.installDIR())
+ autotools.rawInstall(options)
+
+ pisitools.removeDir("/usr/share/lua")
+ pisitools.removeDir("/usr/lib/lua")
+
+ pisitools.dosym("/usr/lib/liblua5.1.so", "/usr/lib/liblua.so.5.1")
+
+ docs = [ "*.html", "*.png", "*.css", "*.gif" ]
+ for d in docs:
+ pisitools.insinto("/usr/share/doc/lua", "doc/%s" % d)
+ pisitools.rename("/usr/share/man/man1/lua.1", "lua.5.1.1")
+ pisitools.rename("/usr/share/man/man1/luac.1", "luac.5.1.1")
diff --git a/programming/language/lua51/files/0001-Use-usr-not-usr-local.patch b/programming/language/lua51/files/0001-Use-usr-not-usr-local.patch
new file mode 100644
index 0000000000..64273a58a5
--- /dev/null
+++ b/programming/language/lua51/files/0001-Use-usr-not-usr-local.patch
@@ -0,0 +1,21 @@
+From cc96b1f12a6549559274c6e7359edd576a55e4d2 Mon Sep 17 00:00:00 2001
+From: Ikey Doherty
+Date: Sat, 24 Jan 2015 10:42:47 +0000
+Subject: [PATCH] Use /usr, not /usr/local.
+---
+src/luaconf.h | 2 +-
+1 file changed, 1 insertion(+), 1 deletion(-)
+diff --git a/src/luaconf.h b/src/luaconf.h
+index e2cb261..19692f3 100644
+--- a/src/luaconf.h
++++ b/src/luaconf.h
+@@ -94,7 +94,7 @@
+".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+#else
+-#define LUA_ROOT "/usr/local/"
++#define LUA_ROOT "/usr/"
+#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
+#define LUA_PATH_DEFAULT \
+--
+1.8.4
diff --git a/programming/language/lua51/files/fix-linking.patch b/programming/language/lua51/files/fix-linking.patch
new file mode 100644
index 0000000000..a7fd03514a
--- /dev/null
+++ b/programming/language/lua51/files/fix-linking.patch
@@ -0,0 +1,22 @@
+Index: lua-5.1.4/src/Makefile
+===================================================================
+--- lua-5.1.4.orig/src/Makefile
++++ lua-5.1.4/src/Makefile
+@@ -53,7 +53,7 @@ $(LUA_A): $(CORE_O) $(LIB_O)
+ $(RANLIB) $@
+
+ $(LUA_SO): $(CORE_O) $(LIB_O)
+- $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LIBS) $(LUA_O)
++ $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LUA_O) $(LIBS)
+ rm -f liblua.so
+ ln -fs $@ liblua.so
+
+@@ -102,7 +102,7 @@ generic:
+ $(MAKE) all MYCFLAGS=
+
+ linux:
+- $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
++ $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-ldl -lreadline -lhistory -lncurses"
+
+ macosx:
+ $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
diff --git a/programming/language/lua51/files/install.patch b/programming/language/lua51/files/install.patch
new file mode 100644
index 0000000000..dd422ceba0
--- /dev/null
+++ b/programming/language/lua51/files/install.patch
@@ -0,0 +1,47 @@
+--- Makefile~ 2008-08-12 03:40:48.000000000 +0300
++++ Makefile 2009-01-02 17:16:41.000000000 +0200
+@@ -9,16 +9,16 @@
+
+ # Where to install. The installation starts in the src and doc directories,
+ # so take care if INSTALL_TOP is not an absolute path.
+-INSTALL_TOP= /usr/local
++INSTALL_TOP= /usr
+ INSTALL_BIN= $(INSTALL_TOP)/bin
+ INSTALL_INC= $(INSTALL_TOP)/include
+ INSTALL_LIB= $(INSTALL_TOP)/lib
+-INSTALL_MAN= $(INSTALL_TOP)/man/man1
++INSTALL_MAN= $(INSTALL_TOP)/share/man/man1
+ #
+ # You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
+ # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
+ INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
+-INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
++INSTALL_CMOD= $(INSTALL_TOP)/lib
+
+ # How to install. If your install program does not support "-p", then you
+ # may have to run ranlib on the installed liblua.a (do "make ranlib").
+@@ -43,7 +43,7 @@
+ # What to install.
+ TO_BIN= lua luac
+ TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
+-TO_LIB= liblua.a
++TO_LIB= liblua.so.$V
+ TO_MAN= lua.1 luac.1
+
+ # Lua version and release.
+--- etc/lua.pc~ 2008-08-08 15:46:11.000000000 +0300
++++ etc/lua.pc 2009-01-02 17:17:32.000000000 +0200
+@@ -8,11 +8,11 @@
+ R= 5.1.4
+
+ # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
+-prefix= /usr/local
++prefix= /usr
+ INSTALL_BIN= ${prefix}/bin
+ INSTALL_INC= ${prefix}/include
+ INSTALL_LIB= ${prefix}/lib
+-INSTALL_MAN= ${prefix}/man/man1
++INSTALL_MAN= ${prefix}/share/man/man1
+ INSTALL_LMOD= ${prefix}/share/lua/${V}
+ INSTALL_CMOD= ${prefix}/lib/lua/${V}
+
diff --git a/programming/language/lua51/files/liblua.so.patch b/programming/language/lua51/files/liblua.so.patch
new file mode 100644
index 0000000000..92c1f3ac48
--- /dev/null
+++ b/programming/language/lua51/files/liblua.so.patch
@@ -0,0 +1,57 @@
+diff -ru lua-5.2.1/Makefile lua-5.2.1.new/Makefile
+--- lua-5.2.1/Makefile 2012-05-17 16:05:54.000000000 +0200
++++ lua-5.2.1.new/Makefile 2012-09-12 22:39:07.162748096 +0200
+@@ -52,7 +52,7 @@
+ all: $(PLAT)
+
+ $(PLATS) clean:
+- cd src && $(MAKE) $@
++ cd src && $(MAKE) $@ V=$(V) R=$(R)
+
+ test: dummy
+ src/lua -v
+diff -ru lua-5.2.1/src/luaconf.h lua-5.2.1.new/src/luaconf.h
+--- lua-5.2.1/src/luaconf.h 2012-05-11 16:14:42.000000000 +0200
++++ lua-5.2.1.new/src/luaconf.h 2012-09-12 22:40:27.986622772 +0200
+@@ -100,7 +100,7 @@
+ #else /* }{ */
+
+ #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
+-#define LUA_ROOT "/usr/local/"
++#define LUA_ROOT "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR
+ #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR
+ #define LUA_PATH_DEFAULT \
+diff -ru lua-5.2.1/src/Makefile lua-5.2.1.new/src/Makefile
+--- lua-5.2.1/src/Makefile 2012-03-09 17:32:16.000000000 +0100
++++ lua-5.2.1.new/src/Makefile 2012-09-12 22:38:08.591386896 +0200
+@@ -29,6 +29,7 @@
+ PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+
+ LUA_A= liblua.a
++LUA_SO= liblua.so
+ CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
+ lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \
+ ltm.o lundump.o lvm.o lzio.o
+@@ -43,7 +44,7 @@
+ LUAC_O= luac.o
+
+ ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
+ ALL_A= $(LUA_A)
+
+ # Targets start here.
+@@ -59,6 +60,12 @@
+ $(AR) $@ $(BASE_O)
+ $(RANLIB) $@
+
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS)
++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V)
++ ln -sf $(LUA_SO).$(R) $(LUA_SO)
++
++
+ $(LUA_T): $(LUA_O) $(LUA_A)
+ $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
+
diff --git a/programming/language/lua51/files/lua-5.1-cflags.diff b/programming/language/lua51/files/lua-5.1-cflags.diff
new file mode 100644
index 0000000000..db658aecad
--- /dev/null
+++ b/programming/language/lua51/files/lua-5.1-cflags.diff
@@ -0,0 +1,13 @@
+diff -Naur lua-5.1.orig/src/Makefile lua-5.1/src/Makefile
+--- lua-5.1.orig/src/Makefile 2006-02-16 16:45:09.000000000 +0100
++++ lua-5.1/src/Makefile 2006-03-01 14:55:29.000000000 +0100
+@@ -8,7 +8,8 @@
+ PLAT= none
+
+ CC= gcc
+-CFLAGS= -O2 -Wall $(MYCFLAGS)
++CFLAGS ?= -O2 -Wall
++CFLAGS += $(MYCFLAGS)
+ AR= ar rcu
+ RANLIB= ranlib
+ RM= rm -f
diff --git a/programming/language/lua51/files/lua-5.1-dynlib.patch b/programming/language/lua51/files/lua-5.1-dynlib.patch
new file mode 100644
index 0000000000..f8b95c757d
--- /dev/null
+++ b/programming/language/lua51/files/lua-5.1-dynlib.patch
@@ -0,0 +1,42 @@
+--- ./src/Makefile.dynlib 2006-03-22 01:41:49.000000000 +0100
++++ ./src/Makefile 2006-08-17 10:49:36.000000000 +0200
+@@ -22,6 +22,7 @@
+
+ PLATS= aix ansi bsd generic linux macosx mingw posix solaris
+
++LUA_SO= liblua.so.$(V)
+ LUA_A= liblua.a
+ CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
+ lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
+@@ -36,7 +37,7 @@
+ LUAC_O= luac.o print.o
+
+ ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
+ ALL_A= $(LUA_A)
+
+ default: $(PLAT)
+@@ -51,6 +52,11 @@
+ $(AR) $@ $?
+ $(RANLIB) $@
+
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -Wl,-soname=liblua.so.$(V) -shared -o $@ $(MYLDFLAGS) $? $(LIBS) $(LUA_O)
++ rm -f liblua.so
++ ln -fs $@ liblua.so
++
+ $(LUA_T): $(LUA_O) $(LUA_A)
+ $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
+
+--- ./Makefile.dynlib 2006-06-02 12:53:38.000000000 +0200
++++ ./Makefile 2006-08-17 10:47:54.000000000 +0200
+@@ -52,7 +52,7 @@
+ all: $(PLAT)
+
+ $(PLATS) clean:
+- cd src && $(MAKE) $@
++ cd src && $(MAKE) V=$(V) $@
+
+ test: dummy
+ src/lua test/hello.lua
diff --git a/programming/language/lua51/files/lua-5.1-module_paths.patch b/programming/language/lua51/files/lua-5.1-module_paths.patch
new file mode 100644
index 0000000000..29ac4c3bf4
--- /dev/null
+++ b/programming/language/lua51/files/lua-5.1-module_paths.patch
@@ -0,0 +1,30 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## src_luaconf.h.dpatch by John V. Belmonte
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Set Lua's default PATH and CPATH.
+
+@DPATCH@
+diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h
+--- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500
++++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500
+@@ -83,13 +83,17 @@
+
+ #else
+ #define LUA_ROOT "/usr/local/"
++#define LUA_ROOT2 "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
++#define LUA_LDIR2 LUA_ROOT2 "share/lua/5.1/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
++#define LUA_CDIR2 LUA_ROOT2 "lib/lua/5.1/"
+ #define LUA_PATH_DEFAULT \
+ "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
+- LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
++ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
++ LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua"
+ #define LUA_CPATH_DEFAULT \
+- "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
++ "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so"
+ #endif
+
+
diff --git a/programming/language/lua51/files/lua-5.1-pkgconfig-libdir.patch b/programming/language/lua51/files/lua-5.1-pkgconfig-libdir.patch
new file mode 100644
index 0000000000..abf7ad3e40
--- /dev/null
+++ b/programming/language/lua51/files/lua-5.1-pkgconfig-libdir.patch
@@ -0,0 +1,20 @@
+Index: lua-5.1.4/etc/lua.pc
+===================================================================
+--- lua-5.1.4.orig/etc/lua.pc
++++ lua-5.1.4/etc/lua.pc
+@@ -18,14 +18,13 @@ INSTALL_CMOD= ${prefix}/lib/lua/${V}
+
+ # canonical vars
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/lib
+ includedir=${prefix}/include
+
+ Name: Lua
+ Description: An Extensible Extension Language
+ Version: ${R}
+ Requires:
+-Libs: -L${libdir} -llua -lm
++Libs: -llua -lm
+ Cflags: -I${includedir}
+
+ # (end of lua.pc)
diff --git a/programming/language/lua51/files/lua-5.1pc b/programming/language/lua51/files/lua-5.1pc
new file mode 100644
index 0000000000..ba9e6279e0
--- /dev/null
+++ b/programming/language/lua51/files/lua-5.1pc
@@ -0,0 +1,18 @@
+V=5.1
+R=5.1.5
+prefix=/usr
+INSTALL_BIN=${prefix}/bin
+INSTALL_INC=${prefix}/include
+INSTALL_LIB=${prefix}/lib
+INSTALL_MAN=${prefix}/man/man1
+INSTALL_LMOD=${prefix}/share/lua/${V}
+INSTALL_CMOD=${prefix}/lib/lua/${V}
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+Name: Lua
+Description: An Extensible Extension Language
+Version: ${R}
+Requires:
+Libs: -L${libdir} -llua -lm
+Cflags: -I${includedir}
diff --git a/programming/language/lua51/files/lua-arch.patch b/programming/language/lua51/files/lua-arch.patch
new file mode 100644
index 0000000000..d8650c3a2e
--- /dev/null
+++ b/programming/language/lua51/files/lua-arch.patch
@@ -0,0 +1,66 @@
+diff -ur lua-5.1.4/etc/lua.pc lua-5.1.4-new/etc/lua.pc
+--- lua-5.1.4/etc/lua.pc 2008-08-08 14:46:11.000000000 +0200
++++ lua-5.1.4-new/etc/lua.pc 2012-02-23 18:25:34.000000000 +0100
+@@ -8,6 +8,6 @@
+
+ # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
+-prefix= /usr/local
++prefix= /usr
+ INSTALL_BIN= ${prefix}/bin
+ INSTALL_INC= ${prefix}/include
+ INSTALL_LIB= ${prefix}/lib
+diff -ur lua-5.1.4/src/luaconf.h lua-5.1.4-new/src/luaconf.h
+--- lua-5.1.4/src/luaconf.h 2008-02-11 17:25:08.000000000 +0100
++++ lua-5.1.4-new/src/luaconf.h 2012-02-23 18:25:34.000000000 +0100
+@@ -94,7 +94,7 @@
+ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+
+ #else
+-#define LUA_ROOT "/usr/local/"
++#define LUA_ROOT "/usr/"
+ #define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+ #define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
+ #define LUA_PATH_DEFAULT \
+diff -ur lua-5.1.4/src/Makefile lua-5.1.4-new/src/Makefile
+--- lua-5.1.4/src/Makefile 2008-01-19 20:37:58.000000000 +0100
++++ lua-5.1.4-new/src/Makefile 2012-02-23 18:26:43.000000000 +0100
+@@ -23,6 +23,7 @@
+ PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+
+ LUA_A= liblua.a
++LUA_SO= liblua.so
+ CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
+ lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
+ lundump.o lvm.o lzio.o
+@@ -36,7 +37,7 @@
+ LUAC_O= luac.o print.o
+
+ ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_SO) $(LUA_T) $(LUAC_T)
+ ALL_A= $(LUA_A)
+
+ default: $(PLAT)
+@@ -51,6 +52,11 @@
+ $(AR) $@ $?
+ $(RANLIB) $@
+
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS)
++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V)
++ ln -sf $(LUA_SO).$(R) $(LUA_SO)
++
+ $(LUA_T): $(LUA_O) $(LUA_A)
+ $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
+
+--- lua-5.1.4/Makefile 2008-08-12 02:40:48.000000000 +0200
++++ lua-5.1.4-new/Makefile 2012-02-23 19:06:32.000000000 +0100
+@@ -53,7 +53,7 @@
+ all: $(PLAT)
+
+ $(PLATS) clean:
+- cd src && $(MAKE) $@
++ cd src && $(MAKE) $@ V=$(V) R=$(R)
+
+ test: dummy
+ src/lua test/hello.lua
diff --git a/programming/language/lua51/files/lua.pc b/programming/language/lua51/files/lua.pc
new file mode 100644
index 0000000000..e192872578
--- /dev/null
+++ b/programming/language/lua51/files/lua.pc
@@ -0,0 +1,20 @@
+V=5.1
+R=5.1.5
+
+prefix=/usr
+INSTALL_BIN=${prefix}/bin
+INSTALL_INC= ${prefix}/include/lua5.1
+INSTALL_LIB=${prefix}/lib
+INSTALL_MAN=${prefix}/man/man1
+INSTALL_LMOD=${prefix}/share/lua/${V}
+INSTALL_CMOD=${prefix}/lib/lua/${V}
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include/lua5.1
+
+Name: Lua
+Description: An Extensible Extension Language
+Version: ${R}
+Requires:
+Libs: -L${libdir} -llua5.1 -lm
+Cflags: -I${includedir}
\ No newline at end of file
diff --git a/programming/language/lua51/files/lua.png b/programming/language/lua51/files/lua.png
new file mode 100644
index 0000000000..bd644676b7
Binary files /dev/null and b/programming/language/lua51/files/lua.png differ
diff --git a/programming/language/lua51/files/shared-library.patch b/programming/language/lua51/files/shared-library.patch
new file mode 100644
index 0000000000..a594fc8c76
--- /dev/null
+++ b/programming/language/lua51/files/shared-library.patch
@@ -0,0 +1,51 @@
+ubmitted By: Igor Živković
+Date: 2013-07-17
+Initial Package Version: 5.1.5
+Upstream Status: Rejected
+Origin: Arch Linux packages repository
+Description: Adds the compilation of a shared library.
+diff -Naur lua-5.1.5.orig/Makefile lua-5.1.5/Makefile
+--- lua-5.1.5.orig/Makefile 2012-02-10 10:50:23.000000000 +0100
++++ lua-5.1.5/Makefile 2013-07-17 18:57:36.498528022 +0200
+@@ -53,7 +53,7 @@
+all: $(PLAT)
+$(PLATS) clean:
+- cd src && $(MAKE) $@
++ cd src && $(MAKE) $@ V=$(V) R=$(R)
+test: dummy
+src/lua test/hello.lua
+diff -Naur lua-5.1.5.orig/src/Makefile lua-5.1.5/src/Makefile
+--- lua-5.1.5.orig/src/Makefile 2012-02-13 21:41:22.000000000 +0100
++++ lua-5.1.5/src/Makefile 2013-07-17 19:00:46.142921587 +0200
+@@ -8,7 +8,7 @@
+PLAT= none
+CC= gcc
+-CFLAGS= -O2 -Wall $(MYCFLAGS)
++CFLAGS= -fPIC -O2 -Wall $(MYCFLAGS)
+AR= ar rcu
+RANLIB= ranlib
+RM= rm -f
+@@ -23,6 +23,7 @@
+PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
+LUA_A= liblua.a
++LUA_SO= liblua.so
+CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
+lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
+lundump.o lvm.o lzio.o
+@@ -36,7 +37,7 @@
+LUAC_O= luac.o print.o
+ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
+ALL_A= $(LUA_A)
+default: $(PLAT)
+@@ -51,6 +52,11 @@
+$(AR) $@ $(CORE_O) $(LIB_O) # DLL needs all object files
+$(RANLIB) $@
++$(LUA_SO): $(CORE_O) $(LIB_O)
++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS)
++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V)
++ ln -sf $(LUA_SO).$(R) $(LUA_SO)
++
+$(LUA_T): $(LUA_O) $(LUA_A)
+$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
diff --git a/programming/language/lua51/pspec.xml b/programming/language/lua51/pspec.xml
new file mode 100644
index 0000000000..3b11720c9e
--- /dev/null
+++ b/programming/language/lua51/pspec.xml
@@ -0,0 +1,75 @@
+
+
+
+
+ lua51
+ http://www.lua.org
+
+ PisiLinux Community
+ admins@pisilinux.org
+
+ LGPLv2
+ library
+ A light-weight programming language
+ lua51 is a powerful light-weight programming language designed for extending applications.
+ http://www.lua.org/ftp/lua-5.1.5.tar.gz
+
+ readline-devel
+
+
+ lua-5.1-cflags.diff
+ lua-arch.patch
+
+
+
+
+ lua51
+
+ readline
+
+
+ /usr/lib
+ /usr/share/man/man1
+ /usr/share/doc
+ /usr/bin
+ /sbin/lsmod
+ /usr/share/pixmaps
+ /usr/share/lua5.1
+ /luac5.1.1/luac.1
+ /lua5.1.1/lua.1
+
+
+ lua.png
+ lua.pc
+
+
+
+
+ lua51-devel
+ Development files for lua51
+
+ lua51
+
+
+ /usr/include
+ /usr/lib/pkgconfig
+
+
+
+
+
+ 2015-05-09
+ 5.1.5
+ fixed libraries and man pages
+ Hakan Yıldız
+ hknyldz93@gmail.com
+
+
+ 2015-02-01
+ 5.1.5
+ First release
+ Ayhan Yalçınsoy
+ ayhanyalcinsoy@pisilinux.org
+
+
+
\ No newline at end of file
diff --git a/programming/language/lua51/translations.xml b/programming/language/lua51/translations.xml
new file mode 100644
index 0000000000..196b9b5301
--- /dev/null
+++ b/programming/language/lua51/translations.xml
@@ -0,0 +1,14 @@
+
+
+
+ lua51
+ Hafif bir programlama dili
+ lua51, uygulamaları genişletmek için tasarlanmış hafif ve güçlü bir programlama dilidir.
+ Lua51 es un lenguaje de programación liviano y potente con todas las herramientas imaginables
+
+
+
+ lua51-devel
+ lua51 için geliştirme dosyaları
+
+