summaryrefslogtreecommitdiff
path: root/community/mtasc/PKGBUILD
blob: 30e3284f8301eee670152446815c9abacfa1fac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $Id: PKGBUILD 51324 2011-07-07 13:42:20Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Niel Drummond <niel.drummond@grumpytoad.org>

pkgname=mtasc
pkgver=20091229
pkgrel=3
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
}