aboutsummaryrefslogtreecommitdiff
path: root/network/luakit/luakit.SlackBuild
diff options
context:
space:
mode:
authorLeonard Schmidt <lems@gmx.net>2017-10-27 16:43:53 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-10-28 05:58:30 +0700
commit7ac4bd193191b7e09198c4ceb9e1ac5faf6a1ffd (patch)
treed3c5982dd89511040e5d6a391d2cc9a4310c46ed /network/luakit/luakit.SlackBuild
parentfde5c82ec08e8aec67df3e329373b24c8c2f8b86 (diff)
network/luakit: Updated for version 2017.08.10 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/luakit/luakit.SlackBuild')
-rw-r--r--network/luakit/luakit.SlackBuild40
1 files changed, 19 insertions, 21 deletions
diff --git a/network/luakit/luakit.SlackBuild b/network/luakit/luakit.SlackBuild
index b89e77c48e2e1..7ecbb79cfd331 100644
--- a/network/luakit/luakit.SlackBuild
+++ b/network/luakit/luakit.SlackBuild
@@ -23,15 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=luakit
-VERSION=${VERSION:-2012.09.13_r1}
+VERSION=${VERSION:-2017.08.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRCVER=`echo $VERSION |tr _ -`
-LUAJIT=${LUAJIT:-0} # 0 or 1
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,8 +40,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"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
@@ -57,39 +55,39 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVER
-if [ -e $CWD/$SRCVER.tar.gz ]; then
- tar xvf $CWD/$SRCVER.tar.gz
-else
- tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
-fi
-cd $PRGNAM-$SRCVER
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-_CFLAGS=`cat config.mk |grep CFLAGS | sed -e "s/CFLAGS//g" -e "s/+=//g" |tr "\n" " "`
make \
PREFIX=/usr \
MANPREFIX=/usr/man \
DOCDIR=/usr/doc/luakit-$VERSION \
- CFLAGS="$_CFLAGS $SLKCFLAGS" \
- USE_LUAJIT=$LUAJIT
+ DEVELOPMENT_PATHS=0
make install \
DESTDIR=$PKG \
PREFIX=/usr \
MANPREFIX=$PKG/usr/man \
- DOCDIR=$PKG/usr/doc/luakit-$VERSION
+ DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS CHANGELOG.md \
+ CONTRIBUTING.md COPYING.GPLv3 \
+ README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install