summaryrefslogtreecommitdiff
path: root/libraries/lua-mpack/lua-mpack.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/lua-mpack/lua-mpack.SlackBuild')
-rw-r--r--libraries/lua-mpack/lua-mpack.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/libraries/lua-mpack/lua-mpack.SlackBuild b/libraries/lua-mpack/lua-mpack.SlackBuild
index f9aac07f32..1b803e53a9 100644
--- a/libraries/lua-mpack/lua-mpack.SlackBuild
+++ b/libraries/lua-mpack/lua-mpack.SlackBuild
@@ -23,14 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lua-mpack
-SRCNAM=libmpack
-VERSION=${VERSION:-1.0.2}
+SRCNAM=libmpack-lua
+VERSION=${VERSION:-1.0.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -70,7 +70,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-gcc -O2 -fPIC -c binding/lua/lmpack.c -o lmpack.o
+gcc -O2 -fPIC -c lmpack.c -o lmpack.o
gcc -shared -o mpack.so lmpack.o
install -D -m 0755 mpack.so $PKG/$(pkg-config --variable INSTALL_CMOD lua)/mpack.so
@@ -78,7 +78,6 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE-MIT README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install