diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-27 15:16:11 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2022-02-27 22:29:04 -0600 |
commit | b5a7a95bdfa93a9ad3c6a8f0754eb1837a0c3e4c (patch) | |
tree | 50447d93775df38677012c4a6f779ef6901fd604 /academic/abntex/abntex.SlackBuild | |
parent | d8e4d5de7dbf7e6c915046d556e76850e06dc4da (diff) |
academic/abntex: Updated for version 20200715_f0a4d3c.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'academic/abntex/abntex.SlackBuild')
-rw-r--r-- | academic/abntex/abntex.SlackBuild | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/academic/abntex/abntex.SlackBuild b/academic/abntex/abntex.SlackBuild index ec4940e05f..6728604dc1 100644 --- a/academic/abntex/abntex.SlackBuild +++ b/academic/abntex/abntex.SlackBuild @@ -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 |