Skip to content

lua: Add version 5.3.2 #3

Merged
merged 1 commit into from
Jun 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
67 changes: 67 additions & 0 deletions lua-5.3.2-0.bee
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/env beesh

SRCURL[0]="https://www.lua.org/ftp/lua-${PKGVERSION}.tar.gz"

PATCHURL[0]="http://www.linuxfromscratch.org/patches/blfs/7.9/lua-5.3.2-shared_library-1.patch"

PGRP=( uncategorized )


B=${S}


BEE_CONFIGURE=none

# EXCLUDE=""

mee_patch() {
bee_patch
}

mee_configure() {
bee_configure
}

mee_build() {
sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h

bee_build linux "MYCFLAGS=-fPIC -DLUA_COMPAT_ALL"
cat >lua.pc <<-EOF
V=${PKGVERSION[2]}
R=${PKGVERSION}
prefix=${PREFIX}

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}
EOF
}

mee_install() {
bee_install V=1 INSTALL_TOP=${D}${PREFIX} \
TO_LIB="liblua.so liblua.so.5.3 liblua.so.5.3.2" \
INSTALL_DATA="cp -d" \
INSTALL_MAN="${D}/${MANDIR}/man1"
}

mee_install_post() {
mkdir -pv ${D}${DOCDIR}
cp -v ${S}/doc/*.{html,css,gif,png} ${D}${DOCDIR}

mkdir -pv ${D}/${LIBDIR}/pkgconfig
install -v -m644 -D ${B}/lua.pc ${D}${LIBDIR}/pkgconfig
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wwwutz, benutzt Ihr immer ein / zwischen den Variablen, obwohl dort selbest schon einer enthalten ist?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pure Schlamperei, Ignoranz und Rechenzeitverschwendung. Wir hamms ja 8).

notice

8-)

}