mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
academic/mathjax2: Fix github tarball handling.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
14c6c3de38
commit
0945fd5e57
2 changed files with 5 additions and 6 deletions
|
@ -30,8 +30,7 @@ BUILD=${BUILD:-1}
|
|||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
SRCNAM=mathjax
|
||||
SRCNAM2=MathJax
|
||||
SRCNAM=MathJax
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
|
@ -72,9 +71,9 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $SRCNAM2-$VERSION
|
||||
rm -rf $SRCNAM-$VERSION
|
||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||
cd $SRCNAM2-$VERSION
|
||||
cd $SRCNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
@ -94,7 +93,7 @@ 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
|
||||
|
||||
mkdir -p $PKG/usr/share/fonts
|
||||
cp -a ../$SRCNAM2-$VERSION $PKG/usr/share/mathjax2
|
||||
cp -a ../$SRCNAM-$VERSION $PKG/usr/share/mathjax2
|
||||
mv $PKG/usr/share/mathjax2/fonts $PKG/usr/share/fonts/mathjax2
|
||||
ln -s /usr/share/fonts/mathjax2 $PKG/usr/share/mathjax2/fonts
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
PRGNAM="mathjax2"
|
||||
VERSION="2.7.9"
|
||||
HOMEPAGE="https://www.mathjax.org/"
|
||||
DOWNLOAD="https://github.com/mathjax/MathJax/archive/2.7.9/mathjax-2.7.9.tar.gz"
|
||||
DOWNLOAD="https://github.com/mathjax/MathJax/archive/2.7.9/MathJax-2.7.9.tar.gz"
|
||||
MD5SUM="9032fe7c1c9dcae7f85c20c67435de23"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
|
|
Loading…
Reference in a new issue