diff options
author | David Woodfall <dave@slackbuilds.org> | 2021-04-22 07:12:42 +0000 |
---|---|---|
committer | Dave Woodfall <dave@slackbuilds.org> | 2021-04-22 14:07:04 +0000 |
commit | c26cc0a3f5bbacbf3c7ad15fba3d8546b1bde784 (patch) | |
tree | 62bbc68122649d65c2c38f11fdee70eeb83d5df1 /network/elinks/elinks.SlackBuild | |
parent | 3d8e49e7a0cd7fa68a52f538e865d6df9dd35f60 (diff) |
network/elinks: Updated for version git20170723.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'network/elinks/elinks.SlackBuild')
-rw-r--r-- | network/elinks/elinks.SlackBuild | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/network/elinks/elinks.SlackBuild b/network/elinks/elinks.SlackBuild index 93cee7bfacdd5..fdac5bf88b9b1 100644 --- a/network/elinks/elinks.SlackBuild +++ b/network/elinks/elinks.SlackBuild @@ -22,8 +22,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=elinks -VERSION=${VERSION:-git20131231} -BUILD=${BUILD:-13} +VERSION=${VERSION:-git20170723} +COMMIT=f86be659 +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -40,10 +41,7 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # Added -fno-strict-aliasing -Wno-pointer-sign for a much more peaceful build -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686 -fno-strict-aliasing -Wno-pointer-sign" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i586" ]; then +if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686 -fno-strict-aliasing -Wno-pointer-sign" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then @@ -63,9 +61,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$COMMIT +tar xvf $CWD/$PRGNAM-$COMMIT.tar.?z +cd $PRGNAM-$COMMIT chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -114,7 +112,7 @@ done [ "${NNTP:-no}" = "yes" ] && nntp="--enable-nntp" [ "${SMB:-no}" = "yes" ] && smb="--enable-smb" -autoreconf +./autogen.sh CFLAGS="$SLKCFLAGS -L/usr/lib64" \ ./configure \ --prefix=/usr \ @@ -154,6 +152,9 @@ CFLAGS="$SLKCFLAGS -L/usr/lib64" \ make make install DESTDIR=$PKG +cd doc +make html +cd .. 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 @@ -162,11 +163,13 @@ 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 COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/html doc/*txt \ - contrib \ + AUTHORS BUGS COPYING NEWS README SITES THANKS TODO ChangeLog contrib \ + doc/*txt doc/manual.html-chunked \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/doc/$PRGNAM-$VERSION/manual.html-chunked/manual.proc mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |