mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
development/mtasc: Added (free ActionScript 2 compiler)
I did quite a bit of tweaking on this one before merging it, primarily putting it in its own subdirectory of /opt, so if it doesn't work, you should probably blame me as opposed to the submitter/maintainer. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
bf4727e8be
commit
cbe3aeb754
4 changed files with 101 additions and 0 deletions
3
development/mtasc/README
Normal file
3
development/mtasc/README
Normal file
|
@ -0,0 +1,3 @@
|
|||
MTASC is an free software ActionScript 2.0 compiler developed by Motion-Twin
|
||||
Technologies. Motion-Twin no longer releases updates to MTASC though.
|
||||
This project is a community fork of MTASC with new improvements.
|
69
development/mtasc/mtasc.SlackBuild
Normal file
69
development/mtasc/mtasc.SlackBuild
Normal file
|
@ -0,0 +1,69 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for MTASC
|
||||
|
||||
# Written by Andres Fuentes (rafu@riseup.net)
|
||||
# This script is public domain
|
||||
|
||||
# Modified by Robby Workman <rworkman@slackbuilds.org>
|
||||
|
||||
PRGNAM=mtasc
|
||||
VERSION=${VERSION:-1.15}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SRCTAR="$PRGNAM-$VERSION-linux.tgz"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SRCTAR="$PRGNAM-$VERSION-linux-$ARCH.tgz"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
printf "\n$ARCH is not supported.\n\n" ; exit 1
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG/opt/$PRGNAM $OUTPUT
|
||||
tar xvf $CWD/$SRCTAR -C $PKG/opt/$PRGNAM
|
||||
|
||||
chown -R root:root $PKG
|
||||
find $PKG \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
mkdir -p $PKG/etc/profile.d/
|
||||
cat << EOF > $PKG/etc/profile.d/mtasc.sh
|
||||
#!/bin/sh
|
||||
export PATH="\${PATH}:/opt/mtasc"
|
||||
EOF
|
||||
cat << EOF > $PKG/etc/profile.d/mtasc.csh
|
||||
#!/bin/csh
|
||||
setenv PATH \${PATH}:/opt/mtasc
|
||||
EOF
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
mv $PKG/opt/$PRGNAM/*.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
development/mtasc/mtasc.info
Normal file
10
development/mtasc/mtasc.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="mtasc"
|
||||
VERSION="1.15"
|
||||
HOMEPAGE="http://mtasc.sourceforge.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/project/mtasc/mtasc-1.15-linux.tgz"
|
||||
MD5SUM="e27c3391d679d1be4d1f914ee1da69b7"
|
||||
DOWNLOAD_x86_64="http://downloads.sourceforge.net/project/mtasc/mtasc-1.15-linux-x86_64.tgz"
|
||||
MD5SUM_x86_64="bf1390e5e8c3d00b4c0dc10937fb29c9"
|
||||
MAINTAINER="Andres Fuentes"
|
||||
EMAIL="rafu@riseup.net"
|
||||
APPROVED="rworkman"
|
19
development/mtasc/slack-desc
Normal file
19
development/mtasc/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
mtasc: MTASC (Free software ActionScript 2 compiler)
|
||||
mtasc:
|
||||
mtasc: MTASC is the first ActionScript 2 free software compiler. It can
|
||||
mtasc: compile a large number of .as class files in a very short time and
|
||||
mtasc: generate directly the corresponding SWF bytecode without relying on
|
||||
mtasc: Macromedia Flash or other.
|
||||
mtasc:
|
||||
mtasc: This version is a community fork of MTASC.
|
||||
mtasc:
|
||||
mtasc: Homepage: http://mtasc.sourceforge.net/
|
||||
mtasc:
|
Loading…
Reference in a new issue