Skip to content
Permalink
b7ef5b9c45
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 76 lines (54 sloc) 1.58 KB
#!/bin/env beesh
# BEE_VERSION lua-5.3.5-0
SRCURL[0]="https://www.lua.org/ftp/lua-${PKGVERSION}.tar.gz"
# PATCHURL[0]="http://www.linuxfromscratch.org/patches/blfs/svn/lua-5.3.5-shared_library-1.patch"
# LFS/AUR patch is just plain messy using $V
PATCHURL+=("/src/mariux/patches/lua-5.3.5-mariux-shared_library.patch")
build_in_sourcedir
# sourcesubdir_append src
BEE_CONFIGURE=none
#mee_extract() {
# bee_extract "${@}"
#}
#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_5_2 -DLUA_COMPAT_5_1"
cat >lua.pc <<EOF
LUA_V=${PKGVERSION[2]}
LUA_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/\${LUA_V}
INSTALL_CMOD=\${prefix}/lib/lua/\${LUA_V}
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=\${prefix}/include
Name: Lua
Description: An Extensible Extension Language
Version: \${LUA_R}
Requires:
Libs: -L\${libdir} -llua -lm -ldl
Cflags: -I\${includedir}
EOF
}
mee_install() {
bee_install INSTALL_TOP=${D}${PREFIX} \
TO_LIB="liblua.so liblua.so.${PKGVERSION[2]} liblua.so.${PKGVERSION}" \
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
}