academic/abntex: Updated for version 20200715_f0a4d3c.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2022-02-27 15:16:11 +01:00 committed by Robby Workman
parent d8e4d5de7d
commit b5a7a95bdf
2 changed files with 15 additions and 29 deletions

View file

@ -27,15 +27,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=abntex
VERSION=${VERSION:-0.9_beta2}
VERSION=${VERSION:-20200715_f0a4d3c}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
MAJOR=$(echo $VERSION | cut -d _ -f 1)
MINOR=$(echo $VERSION | cut -d _ -f 2)
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
@ -48,17 +45,14 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
FORCE_LYX=${FORCE_LYX:-NO}
LYX_PATH=${LYX_PATH:-/usr/share/lyx}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$MAJOR
tar xvf $CWD/$PRGNAM-$MAJOR-$MINOR.tar.gz
cd $PRGNAM-$MAJOR
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
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 \) \
@ -66,23 +60,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
patch < $CWD/Makefile.diff
find texmf/ lyx/ -type f -exec chmod 644 {} \;
echo quit | make doc
make install DESTDIR=$PKG
# Lyx may not have been installed
if [ "$FORCE_LYX" != "NO" ]; then
mkdir -p $PKG/usr/share/lyx
cp -rf lyx/layouts/ $PKG/$LYX_PATH
fi
find . -name ".gitignore" -exec rm {} \;
make install PREFIX=/usr DESTDIR=$PKG
sh build.sh
cd target
for i in *.zip ; do unzip $i ; done
rm *.zip *.tar.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
LEIAME LEIAME.administracao LEIAME.linux compiled.docs/* lyx/ \
$PKG/usr/doc/$PRGNAM-$VERSION
find . -name "*.pdf" -exec cp -a {} $PKG/usr/doc/$PRGNAM-$VERSION/ \;
cp ../*.md ../LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,8 +1,8 @@
PRGNAM="abntex"
VERSION="0.9_beta2"
VERSION="20200715_f0a4d3c"
HOMEPAGE="http://www.abntex.net.br/"
DOWNLOAD="http://downloads.sourceforge.net/abntex/abntex-0.9-beta2.tar.gz"
MD5SUM="4c5bc2d5388ddf03df754072116ab1f8"
DOWNLOAD="https://ponce.cc/slackware/sources/repo/abntex-20200715_f0a4d3c.tar.xz"
MD5SUM="f2cc9267ae71b14f9d9780fa824e8878"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""