diff options
Diffstat (limited to 'community/mtasc/PKGBUILD')
-rw-r--r-- | community/mtasc/PKGBUILD | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/community/mtasc/PKGBUILD b/community/mtasc/PKGBUILD index 1a0e64ae8..6fb8014a6 100644 --- a/community/mtasc/PKGBUILD +++ b/community/mtasc/PKGBUILD @@ -1,31 +1,30 @@ +# $Id: PKGBUILD 50789 2011-07-01 09:55:48Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Niel Drummond <niel.drummond@grumpytoad.org> pkgname=mtasc pkgver=20091229 -pkgrel=1 +pkgrel=2 pkgdesc="An open source flash (swf) compiler" arch=(i686 x86_64 'mips64el') url="http://mtasc.org/" license=('GPL2') depends=('zlib') makedepends=('ocaml' 'cvs') -source=(http://www.mtasc.org/doc/mtasc/install.ml) -md5sums=('d072094a9c3ec4384ce232d4b65dab40') +source=("http://arch.p5n.pp.ru/~sergej/dl/mtasc-$pkgver.tar.gz") +md5sums=('eb686e4fcaa066dfa77d29b2d4551aab') 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 + cd $srcdir/mtasc-$pkgver + sed -i 's|let base_path = normalize_path (try Extc.executable_path() with _ -> ".") in|let base_path = "/usr/share/mtasc/" in|' ocaml/mtasc/main.ml + (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 ../pkg/usr/share/mtasc/$f || return 1 + install -D -m644 ocaml/mtasc/$f $pkgdir/usr/share/mtasc/$f done } - |