diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-04 12:13:12 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-04 12:13:12 -0300 |
commit | 2d71292ee6ddd4970f593975fd652be1d820f92c (patch) | |
tree | 82377d0e84fc4a0a04066d4733dae49484a5225a /community/mtasc/PKGBUILD | |
parent | d734cc3a77cdc6960cbd72f3f8c680612342f24d (diff) | |
parent | 067b127a853780b2b4ae7236dcdaaf72396dfa86 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
libre/icecat/PKGBUILD
multilib/lib32-v4l-utils/PKGBUILD
multilib/nspluginwrapper/PKGBUILD
testing/libreoffice/PKGBUILD
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 } - |