summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild18
-rw-r--r--changelog5
-rw-r--r--control3
-rw-r--r--copyright22
-rw-r--r--format1
-rw-r--r--lua-5.1-common.pkg/control5
-rw-r--r--lua-5.1-common.pkg/docs1
-rw-r--r--lua-5.1-dev.pkg/control6
-rw-r--r--lua-5.1-dev.pkg/files2
-rw-r--r--lua-5.1-doc.pkg/control6
-rw-r--r--lua-5.1-doc.pkg/files1
-rw-r--r--lua-5.1.pkg/control6
-rw-r--r--lua-5.1.pkg/files1
-rw-r--r--source.mk11
14 files changed, 88 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..dc2839f
--- /dev/null
+++ b/build
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
+
+build: source
+# oh-autoconfigure
+ oh-autobuild PLAT=posix
+ touch $@
+
+install: build
+ mkdir -p dest;
+ oh-autoinstall -- INSTALL_TOP="$${PWD}/dest/usr" INSTALL_LIB="$${PWD}/dest/usr/lib/$(OPK_HOST_ARCH)" INSTALL_MAN="$${PWD}/dest/usr/share/man/man1" INSTALL_INC="$${PWD}/dest/usr/include/lua5.1"
+ oh-fixperms
+ oh-strip
+ oh-installfiles
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..7fa5554
--- /dev/null
+++ b/changelog
@@ -0,0 +1,5 @@
+lua (5.1.5-1) trunk
+
+ * Initial release
+
+ -- "Daniel sea McChlery" <sea@members.fsf.org> Wed Sep 24 2014 23:20:36 -0400
diff --git a/control b/control
new file mode 100644
index 0000000..4992317
--- /dev/null
+++ b/control
@@ -0,0 +1,3 @@
+Maintainer: "Daniel sea McChlery" <sea@members.fsf.org>
+Build-Depends: opkhelper-3.0
+Homepage: http://www.lua.org/
diff --git a/copyright b/copyright
new file mode 100644
index 0000000..9004048
--- /dev/null
+++ b/copyright
@@ -0,0 +1,22 @@
+Upstream Source
+===============
+
+Location: <http://www.lua.org/ftp/lua-5.1.5.tar.gz>
+
+The source package top-level COPYRIGHT file indicates that these files
+may be distributed, modified, reproduced, and otherwise dealt with
+under the terms of the MIT license.
+
+The MIT license may be found on this system at
+<file:///usr/share/common-licenses/Expat>
+
+Distribution Packaging
+======================
+
+Copyright (C) 2014 Daniel sea McChlery
+
+These files may be reproduced, distributed, modified, and otherwise
+dealt with under the terms of the GPL license version 2.
+
+The GPLv2 may be found on this system at
+<file:///usr/share/common-licenses/GPL-2>
diff --git a/format b/format
new file mode 100644
index 0000000..cd5ac03
--- /dev/null
+++ b/format
@@ -0,0 +1 @@
+2.0
diff --git a/lua-5.1-common.pkg/control b/lua-5.1-common.pkg/control
new file mode 100644
index 0000000..8d625aa
--- /dev/null
+++ b/lua-5.1-common.pkg/control
@@ -0,0 +1,5 @@
+Architecture: all
+Platform: all
+Description: lua-5.1 copyright documentation
+ Lua is a lightweight multi-paradigm scripting language often used to
+ extend existing programs. This package contains its copyright information
diff --git a/lua-5.1-common.pkg/docs b/lua-5.1-common.pkg/docs
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/lua-5.1-common.pkg/docs
@@ -0,0 +1 @@
+
diff --git a/lua-5.1-dev.pkg/control b/lua-5.1-dev.pkg/control
new file mode 100644
index 0000000..4ed8d1a
--- /dev/null
+++ b/lua-5.1-dev.pkg/control
@@ -0,0 +1,6 @@
+Architecture: all
+Platform: all
+Depends: lua-5.1-common (>= ${Source-Version})
+Description: lua-5.1 development files
+ Lua is a lightweight multi-paradigm scripting language often used to
+ extend existing programs. This package contains the headers and shared libraries..
diff --git a/lua-5.1-dev.pkg/files b/lua-5.1-dev.pkg/files
new file mode 100644
index 0000000..227807c
--- /dev/null
+++ b/lua-5.1-dev.pkg/files
@@ -0,0 +1,2 @@
+/usr/include/lua5.1
+/usr/lib/
diff --git a/lua-5.1-doc.pkg/control b/lua-5.1-doc.pkg/control
new file mode 100644
index 0000000..6a0e1f9
--- /dev/null
+++ b/lua-5.1-doc.pkg/control
@@ -0,0 +1,6 @@
+Architecture: all
+Platform: all
+Depends: lua-5.1-common (>= ${Source-Version})
+Description: lua-5.1 documentation
+ Lua is a lightweight multi-paradigm scripting language often used to
+ extend existing programs. This package contains the manpages.
diff --git a/lua-5.1-doc.pkg/files b/lua-5.1-doc.pkg/files
new file mode 100644
index 0000000..32190de
--- /dev/null
+++ b/lua-5.1-doc.pkg/files
@@ -0,0 +1 @@
+/usr/share/man/man1
diff --git a/lua-5.1.pkg/control b/lua-5.1.pkg/control
new file mode 100644
index 0000000..808493f
--- /dev/null
+++ b/lua-5.1.pkg/control
@@ -0,0 +1,6 @@
+Architecture: all
+Platform: all
+Depends: lua-5.1-common (>= ${Source-Version})
+Description: lua-5.1 binaries
+ Lua is a lightweight multi-paradigm scripting language often used to
+ extend existing programs. This package contains the binaries.
diff --git a/lua-5.1.pkg/files b/lua-5.1.pkg/files
new file mode 100644
index 0000000..415f082
--- /dev/null
+++ b/lua-5.1.pkg/files
@@ -0,0 +1 @@
+/usr/bin
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..7dd65f2
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,11 @@
+upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz
+upstream_url = http://www.lua.org/ftp/$(upstream_archive)
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz
+source_md5sum = 2e115fe26e435e33b0d5c022e4490567
+
+$(source_archive):
+ wget -c '$(upstream_url)'
+ printf '$(source_md5sum) $(upstream_archive)' | md5sum -c -
+ mv '$(upstream_archive)' '$(source_archive)'
+
+source: $(source_archive)