development/regina-rexx: Add documentation.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Richard Narron 2015-01-23 23:34:47 +07:00 committed by Willy Sudiarto Raharjo
parent c016fcda13
commit b71c0e09a8
2 changed files with 14 additions and 11 deletions

View file

@ -5,7 +5,8 @@
PRGNAM=regina-rexx PRGNAM=regina-rexx
VERSION=${VERSION:-3.9.0} VERSION=${VERSION:-3.9.0}
BUILD=${BUILD:-1} DOCVERSION=${DOCVERSION:-3.8.2}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
FLAVOR=${FLAVOR:-dynamic} # set FLAVOR=static for a rexx static binary. FLAVOR=${FLAVOR:-dynamic} # set FLAVOR=static for a rexx static binary.
@ -24,8 +25,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
DOCS="README* HACKERS.txt "
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
@ -36,7 +35,7 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
fi fi
set -x
set -e set -e
rm -rf $PKG rm -rf $PKG
@ -53,8 +52,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
chmod 644 $DOCS
if [ "${FLAVOR,,*}" = "static" ]; then if [ "${FLAVOR,,*}" = "static" ]; then
mv -f configure configure.orig mv -f configure configure.orig
sed -e 's/STATIC_LDFLAGS=""/STATIC_LDFLAGS="-static"/' <configure.orig >configure sed -e 's/STATIC_LDFLAGS=""/STATIC_LDFLAGS="-static"/' <configure.orig >configure
@ -83,8 +80,10 @@ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION install -m0644 $CWD/regutil.pdf $PKG/usr/doc/$PRGNAM-$VERSION/regutil-$DOCVERSION.pdf
cat $CWD/regina-rexx.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild install -m0644 $CWD/regina.pdf $PKG/usr/doc/$PRGNAM-$VERSION/regina-$DOCVERSION.pdf
install -m0644 README* HACKERS.txt $PKG/usr/doc/$PRGNAM-$VERSION
install -m0644 $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,8 +1,12 @@
PRGNAM="regina-rexx" PRGNAM="regina-rexx"
VERSION="3.9.0" VERSION="3.9.0"
HOMEPAGE="http://regina-rexx.sourceforge.net/" HOMEPAGE="http://regina-rexx.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/regina-rexx/Regina-REXX-3.9.0.tar.gz" DOWNLOAD="http://downloads.sourceforge.net/regina-rexx/Regina-REXX-3.9.0.tar.gz \
MD5SUM="be3d3b552487a8d808743f8f8bcb0c03" http://sourceforge.net/projects/regina-rexx/files/regina-documentation/3.8.2/regina.pdf \
http://sourceforge.net/projects/regina-rexx/files/regina-documentation/3.8.2/regutil.pdf"
MD5SUM="be3d3b552487a8d808743f8f8bcb0c03 \
f024c1affe66f25e3e1a403b3ce033f5 \
f0973b977799a4ab0bcefcc73199de12"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""