summaryrefslogtreecommitdiff
path: root/community/mtasc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/mtasc
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/mtasc')
-rw-r--r--community/mtasc/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/mtasc/PKGBUILD b/community/mtasc/PKGBUILD
new file mode 100644
index 000000000..31875d2d4
--- /dev/null
+++ b/community/mtasc/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 66242 2012-02-23 05:15:17Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Niel Drummond <niel.drummond@grumpytoad.org>
+
+pkgname=mtasc
+pkgver=20091229
+pkgrel=4
+pkgdesc="An open source flash (swf) compiler"
+arch=(i686 x86_64)
+url="http://mtasc.org/"
+license=('GPL2')
+depends=('zlib')
+makedepends=('ocaml' 'cvs')
+source=("http://arch.p5n.pp.ru/~sergej/dl/mtasc-$pkgver-1.tar.gz")
+md5sums=('e3b1f31ae906ebbd92678fdac0fdd411')
+
+build() {
+ cd $srcdir/mtasc-$pkgver
+ (cd ocaml/extc && make)
+ ocaml install.ml
+}
+
+package() {
+ cd $srcdir/mtasc-$pkgver
+ install -D -m755 $srcdir/mtasc-$pkgver/bin/${pkgname} $pkgdir/usr/bin/${pkgname}
+ for f in $( cd ocaml/mtasc/ && find ./{std,std8} -type f -iname '*.as' | grep -iv cvs ); do
+ install -D -m644 ocaml/mtasc/$f $pkgdir/usr/share/mtasc/$f
+ done
+}