Merge branch 'master' of github.com:cycojesus/slackbuilds
This commit is contained in:
commit
9a5a57b599
6 changed files with 63 additions and 68 deletions
|
@ -1,6 +0,0 @@
|
||||||
Lua is a free software light-weight programming language designed
|
|
||||||
for extending applications. Lua is also frequently used as a
|
|
||||||
general-purpose, stand-alone scripting language.
|
|
||||||
|
|
||||||
This package is for the version 5.1.x of lua, the one compatible
|
|
||||||
with the software that needs lua on slackbuilds.org.
|
|
|
@ -6,6 +6,7 @@
|
||||||
# Modified by the SlackBuilds.org project
|
# Modified by the SlackBuilds.org project
|
||||||
# Modified by Aaron W. Hsu
|
# Modified by Aaron W. Hsu
|
||||||
# Updated by Matteo Bernardini
|
# Updated by Matteo Bernardini
|
||||||
|
# Updated by Gwenhael Le Moine, inspired by https://git.archlinux.org/svntogit/packages.git/tree/lua/trunk/PKGBUILD
|
||||||
|
|
||||||
# This program is free software. It comes without any warranty.
|
# This program is free software. It comes without any warranty.
|
||||||
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
|
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
|
||||||
|
@ -47,12 +48,15 @@ rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
|
|
||||||
|
[ ! -e $CWD/$PRGNAM-${VERSION}.tar.gz ] && wget -c http://www.lua.org/ftp/$PRGNAM-${VERSION}.tar.gz -O $CWD/$PRGNAM-${VERSION}.tar.gz
|
||||||
|
|
||||||
tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz
|
tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
|
|
||||||
|
[ ! -e $CWD/liblua.so.patch ] && wget -c https://git.archlinux.org/svntogit/packages.git/plain/lua/trunk/liblua.so.patch -O $CWD/liblua.so.patch
|
||||||
patch -p1 -i $CWD/liblua.so.patch
|
patch -p1 -i $CWD/liblua.so.patch
|
||||||
sed "s/%VER%/$MAJOR_VERSION/g;s/%REL%/$VERSION/g" $CWD/lua.pc > lua.pc
|
|
||||||
|
|
||||||
make MYCFLAGS="$CFLAGS -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" MYLDFLAGS="$LDFLAGS" linux
|
make MYCFLAGS="$CFLAGS -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" MYLDFLAGS="$LDFLAGS" linux
|
||||||
|
|
||||||
|
@ -62,17 +66,37 @@ make \
|
||||||
INSTALL_TOP="$PKG"/usr \
|
INSTALL_TOP="$PKG"/usr \
|
||||||
INSTALL_MAN="$PKG"/usr/man/man1 \
|
INSTALL_MAN="$PKG"/usr/man/man1 \
|
||||||
install
|
install
|
||||||
|
|
||||||
|
cat <<EOF > lua.pc
|
||||||
|
V=$MAJOR_VERSION
|
||||||
|
R=$VERSION
|
||||||
|
|
||||||
|
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}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
install -Dm644 lua.pc "$PKG"/usr/lib/pkgconfig/${PRGNAM}53.pc
|
||||||
|
|
||||||
ln -sf /usr/bin/lua "$PKG"/usr/bin/lua$MAJOR_VERSION
|
ln -sf /usr/bin/lua "$PKG"/usr/bin/lua$MAJOR_VERSION
|
||||||
ln -sf /usr/bin/luac "$PKG"/usr/bin/luac$MAJOR_VERSION
|
ln -sf /usr/bin/luac "$PKG"/usr/bin/luac$MAJOR_VERSION
|
||||||
ln -sf /usr/lib/liblua.so.$VERSION "$PKG"/usr/lib/liblua$MAJOR_VERSION.so
|
ln -sf /usr/lib/liblua.so.$VERSION "$PKG"/usr/lib/liblua$MAJOR_VERSION.so
|
||||||
|
|
||||||
install -Dm644 lua.pc "$PKG"/usr/lib/pkgconfig/${PRGNAM}53.pc
|
|
||||||
ln -sf /usr/lib/pkgconfig/${PRGNAM}53.pc "$PKG"/usr/lib/pkgconfig/$PRGNAM.pc
|
ln -sf /usr/lib/pkgconfig/${PRGNAM}53.pc "$PKG"/usr/lib/pkgconfig/$PRGNAM.pc
|
||||||
|
|
||||||
#install -d "$PKG"/usr/share/doc/$PRGNAM
|
|
||||||
#install -m644 doc/*.{gif,png,css,html} "$PKG"/usr/share/doc/$PRGNAM
|
|
||||||
#install -Dm644 ../LICENSE "$PKG"/usr/share/licenses/$PRGNAM/LICENSE
|
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
|
@ -86,7 +110,27 @@ cp -a doc/*.html doc/logo.gif doc/lua.css $PKG/usr/doc/$PRGNAM-$VERSION/html
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat <<EOF > $PKG/install/slack-desc
|
||||||
|
# HOW TO EDIT THIS FILE:
|
||||||
|
# The "handy ruler" below makes it easier to edit a package description.
|
||||||
|
# Line up the first '|' above the ':' following the base package name, and
|
||||||
|
# the '|' on the right side marks the last column you can put a character in.
|
||||||
|
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||||
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
lua: lua (a powerful, fast, light-weight, embeddable scripting language)
|
||||||
|
lua:
|
||||||
|
lua: Lua combines simple procedural syntax with powerful data description
|
||||||
|
lua: constructs based on associative arrays and extensible semantics.
|
||||||
|
lua: Lua is dynamically typed, runs by interpreting bytecode for a
|
||||||
|
lua: register-based virtual machine, and has automatic memory management
|
||||||
|
lua: with incremental garbage collection, making it ideal for
|
||||||
|
lua: configuration, scripting, and rapid prototyping.
|
||||||
|
lua:
|
||||||
|
lua:
|
||||||
|
lua:
|
||||||
|
EOF
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
PRGNAM="lua"
|
|
||||||
VERSION="5.1.5"
|
|
||||||
HOMEPAGE="http://www.lua.org"
|
|
||||||
DOWNLOAD="http://www.lua.org/ftp/lua-5.1.5.tar.gz"
|
|
||||||
MD5SUM="2e115fe26e435e33b0d5c022e4490567"
|
|
||||||
DOWNLOAD_x86_64=""
|
|
||||||
MD5SUM_x86_64=""
|
|
||||||
REQUIRES=""
|
|
||||||
MAINTAINER="Matteo Bernardini"
|
|
||||||
EMAIL="ponce@slackbuilds.org"
|
|
20
d/lua/lua.pc
20
d/lua/lua.pc
|
@ -1,20 +0,0 @@
|
||||||
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}
|
|
|
@ -1,19 +0,0 @@
|
||||||
# HOW TO EDIT THIS FILE:
|
|
||||||
# The "handy ruler" below makes it easier to edit a package description.
|
|
||||||
# Line up the first '|' above the ':' following the base package name, and
|
|
||||||
# the '|' on the right side marks the last column you can put a character in.
|
|
||||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
|
||||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|
||||||
lua: lua (a powerful, fast, light-weight, embeddable scripting language)
|
|
||||||
lua:
|
|
||||||
lua: Lua combines simple procedural syntax with powerful data description
|
|
||||||
lua: constructs based on associative arrays and extensible semantics.
|
|
||||||
lua: Lua is dynamically typed, runs by interpreting bytecode for a
|
|
||||||
lua: register-based virtual machine, and has automatic memory management
|
|
||||||
lua: with incremental garbage collection, making it ideal for
|
|
||||||
lua: configuration, scripting, and rapid prototyping.
|
|
||||||
lua:
|
|
||||||
lua:
|
|
||||||
lua:
|
|
|
@ -35,12 +35,18 @@ cd $PRGNAM
|
||||||
|
|
||||||
LUA_VERSION=$(lua -v 2>&1 | grep -o "5\..")
|
LUA_VERSION=$(lua -v 2>&1 | grep -o "5\..")
|
||||||
|
|
||||||
make PREFIX=/usr LUA_VERSION=$LUA_VERSION
|
sed -i \
|
||||||
make install PREFIX=/usr DESTDIR=$PKG LUA_VERSION=$LUA_VERSION
|
-e "s|/usr/local|/usr|" \
|
||||||
echo "$ARCH" | grep -q 64 && mv $PKG/usr/lib $PKG/usr/lib64
|
-e "s|/lib/lua/|/share/lua/|" \
|
||||||
|
-e "s|LUA_VERSION=5.1|LUA_VERSION=$LUA_VERSION|" \
|
||||||
|
lgi/Makefile
|
||||||
|
|
||||||
# mkdir -p $PKG/usr/doc/$PRGNAM/
|
make LUA_LIBDIR=/usr/lib/lua/$LUA_VERSION \
|
||||||
# cp $DOCS $PKG/usr/doc/$PRGNAM/
|
LUA_SHAREDIR=/usr/share/lua/$LUA_VERSION \
|
||||||
|
PREFIX=/usr CFLAGS="$SLKCFLAGS"
|
||||||
|
make LUA_LIBDIR=/usr/lib/lua/$LUA_VERSION \
|
||||||
|
LUA_SHAREDIR=/usr/share/lua/$LUA_VERSION \
|
||||||
|
DESTDIR=$PKG install
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue