|
|
|
@ -3,7 +3,7 @@ |
|
|
|
# Slackware build script for viewnior. |
|
|
|
# |
|
|
|
# Written by Šime Ramov <s@ramov.com> |
|
|
|
# Copyright 2016-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil. |
|
|
|
# Copyright 2016-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil. |
|
|
|
# All rights reserved. |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modification, is |
|
|
|
@ -24,8 +24,8 @@ |
|
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
|
|
|
|
|
|
PRGNAM=viewnior |
|
|
|
VERSION=${VERSION:-1.6} |
|
|
|
BUILD=${BUILD:-2} |
|
|
|
VERSION=${VERSION:-1.7} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
|
|
|
|
if [ -z "$ARCH" ]; then |
|
|
|
@ -60,9 +60,10 @@ set -e |
|
|
|
rm -rf $PKG |
|
|
|
mkdir -p $TMP $PKG $OUTPUT |
|
|
|
cd $TMP |
|
|
|
rm -rf Viewnior-$PRGNAM-$VERSION |
|
|
|
rm -rf $PRGNAM-$VERSION |
|
|
|
tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xzvf $CWD/Viewnior-$PRGNAM-$VERSION.tar.gz |
|
|
|
cd Viewnior-$PRGNAM-$VERSION |
|
|
|
mv Viewnior-$PRGNAM-$VERSION $PRGNAM-$VERSION |
|
|
|
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 \) \ |
|
|
|
@ -70,21 +71,17 @@ find -L . \ |
|
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ |
|
|
|
-exec chmod 644 {} \; |
|
|
|
|
|
|
|
autoreconf -fiv |
|
|
|
|
|
|
|
CFLAGS="$SLKCFLAGS" \ |
|
|
|
CXXFLAGS="$SLKCFLAGS" \ |
|
|
|
./configure \ |
|
|
|
meson \ |
|
|
|
--prefix=/usr \ |
|
|
|
--libdir=/usr/lib${LIBDIRSUFFIX} \ |
|
|
|
--sysconfdir=/etc \ |
|
|
|
--localstatedir=/var \ |
|
|
|
--mandir=/usr/man \ |
|
|
|
--docdir=/usr/doc/$PRGNAM-$VERSION \ |
|
|
|
--build=$ARCH-slackware-linux |
|
|
|
build |
|
|
|
|
|
|
|
make |
|
|
|
make install DESTDIR=$PKG |
|
|
|
ninja -C build |
|
|
|
DESTDIR=$PKG ninja -C build install |
|
|
|
|
|
|
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ |
|
|
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |
|
|
|
@ -93,8 +90,7 @@ 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 AUTHORS COPYING ChangeLog-20090517 INSTALL NEWS README TODO \ |
|
|
|
$PKG/usr/doc/$PRGNAM-$VERSION |
|
|
|
cp AUTHORS COPYING NEWS README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION |
|
|
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |
|
|
|
|
|
|
|
mkdir -p $PKG/install |
|
|
|
|