summaryrefslogtreecommitdiff
path: root/community/mtasc
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/mtasc
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/mtasc')
-rw-r--r--community/mtasc/PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/mtasc/PKGBUILD b/community/mtasc/PKGBUILD
new file mode 100644
index 000000000..2619fbd41
--- /dev/null
+++ b/community/mtasc/PKGBUILD
@@ -0,0 +1,31 @@
+# Contributor: Niel Drummond <niel.drummond@grumpytoad.org>
+
+pkgname=mtasc
+pkgver=20091229
+pkgrel=1
+pkgdesc="An open source flash (swf) compiler"
+arch=(i686 x86_64)
+url="http://mtasc.org/"
+license=('GPL2')
+depends=('zlib')
+makedepends=('ocaml' 'cvs')
+source=(http://www.mtasc.org/doc/mtasc/install.ml)
+md5sums=('d072094a9c3ec4384ce232d4b65dab40')
+
+build() {
+ cd $startdir/src
+ sed -i 's/anonymous@/anonymous:@/' $startdir/src/install.ml
+
+ msg "Running ocaml script..."
+ cd $startdir/src
+ ocaml $startdir/src/install.ml || return 1
+
+ msg "Done compiling..."
+
+ install -D -m755 $startdir/src/bin/${pkgname} $startdir/pkg/usr/bin/${pkgname} || return 1
+
+ for f in $( cd ocaml/mtasc/ && find ./{std,std8} -type f -iname '*.as' | grep -iv cvs ); do
+ install -D -m644 ocaml/mtasc/$f ../pkg/usr/share/mtasc/$f || return 1
+ done
+}
+