Browse Source

l/libgfshare: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
b48d16d8b3
  1. 1
      l/libgfshare/libgfshare-2.0.0.tar.bz2.sha1
  2. 1
      l/libgfshare/libgfshare-2.0.0.tar.bz2.sha256
  3. 23
      l/libgfshare/libgfshare.SlackBuild

1
l/libgfshare/libgfshare-2.0.0.tar.bz2.sha1

@ -1 +0,0 @@
2813a69c7f69dfc406292af4c79f08cf46c54a4f libgfshare-2.0.0.tar.bz2

1
l/libgfshare/libgfshare-2.0.0.tar.bz2.sha256

@ -0,0 +1 @@
8f8870fe42eda04b11d1fbe3848242e36bee7c9bd42e3ab5ac8dcfc2e16c084d libgfshare-2.0.0.tar.bz2

23
l/libgfshare/libgfshare.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014,2016 Damien Goutte-Gattat
# Copyright (C) 2014,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,13 +23,21 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest libgfshare sourcecode is available at:
# <http://www.digital-scurf.org/software/libgfshare>.
# <https://git.gitano.org.uk/libgfshare.git/>.
#
# Note: Libgfshare used to be available at the following location:
# <http://www.digital-scurf.org/software/libgfshare>
# but as of 27th November 2019, that site is empty. The source
# archive available on git.gitano.org.uk contains the same code
# than the one previously published on digital-scurf.org, save
# for the autotools-generated files (it's a repository dump, not
# a proper release tarball).
# Source package infos
NAMESRC=${NAMESRC:-libgfshare}
VERSION=${VERSION:-2.0.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://www.digital-scurf.org/files/libgfshare/$ARCHIVE}
WGET=${WGET:-https://git.gitano.org.uk/libgfshare.git/snapshot/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-libgfshare}
@ -76,7 +84,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -84,6 +92,7 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
autoreconf -f -i
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
@ -99,7 +108,11 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS COPYRIGHT README doc/theory.tex $PKG/usr/doc/$NAME
install -m 644 AUTHORS COPYRIGHT README $PKG/usr/doc/$NAME
if type -p xelatex ; then
xelatex doc/theory
install -m 644 theory.pdf $PKG/usr/doc/$NAME/theory.pdf
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save