From cbe3aeb7546079f272faaff3bfda668bc635d958 Mon Sep 17 00:00:00 2001 From: Andres Fuentes Date: Fri, 10 Dec 2010 00:01:53 -0600 Subject: 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 --- development/mtasc/README | 3 ++ development/mtasc/mtasc.SlackBuild | 69 ++++++++++++++++++++++++++++++++++++++ development/mtasc/mtasc.info | 10 ++++++ development/mtasc/slack-desc | 19 +++++++++++ 4 files changed, 101 insertions(+) create mode 100644 development/mtasc/README create mode 100644 development/mtasc/mtasc.SlackBuild create mode 100644 development/mtasc/mtasc.info create mode 100644 development/mtasc/slack-desc (limited to 'development/mtasc') diff --git a/development/mtasc/README b/development/mtasc/README new file mode 100644 index 0000000000..698933b136 --- /dev/null +++ b/development/mtasc/README @@ -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. diff --git a/development/mtasc/mtasc.SlackBuild b/development/mtasc/mtasc.SlackBuild new file mode 100644 index 0000000000..b3ea4d17f5 --- /dev/null +++ b/development/mtasc/mtasc.SlackBuild @@ -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 + +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} diff --git a/development/mtasc/mtasc.info b/development/mtasc/mtasc.info new file mode 100644 index 0000000000..6907135daa --- /dev/null +++ b/development/mtasc/mtasc.info @@ -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" diff --git a/development/mtasc/slack-desc b/development/mtasc/slack-desc new file mode 100644 index 0000000000..08437d2ad2 --- /dev/null +++ b/development/mtasc/slack-desc @@ -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: -- cgit v1.2.3-65-gdbad