diff options
Diffstat (limited to 'community/parrot/PKGBUILD')
-rw-r--r-- | community/parrot/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/parrot/PKGBUILD b/community/parrot/PKGBUILD new file mode 100644 index 000000000..857f028d9 --- /dev/null +++ b/community/parrot/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 43054 2011-03-23 21:46:21Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributer: mpie <michael.kyne-phillips1@ntlworld.com> + +pkgname=parrot +pkgver=3.2.0 +_rel=devel +#_rel=stable +pkgrel=1 +pkgdesc="standalone virtual machine that can be used to execute bytecode compiled dynamic languages" +arch=(i686 x86_64) +url="http://www.parrotcode.org/" +license=('GPL') +depends=('gmp' 'gdbm' 'readline' 'icu' 'openssl') +makedepends=('perl-json') +optdepends=('freeglut') +options=(!emptydirs !makeflags) +source=(ftp://ftp.parrot.org/pub/parrot/releases/${_rel}/$pkgver/parrot-$pkgver.tar.gz) +md5sums=('380c237404c513cd83f02d62dbacca03') + +build() { + cd $srcdir/$pkgname-$pkgver + + sed -i 's#auto::sha1##' lib/Parrot/Configure/Step/List.pm + sed -i 's#auto::git_describe##' lib/Parrot/Configure/Step/List.pm + + [ $NOEXTRACT -eq 1 ] || perl Configure.pl --prefix=/usr --parrot_is_shared + + find -type f -name Makefile | while read F; do + grep "$srcdir" $F && sed -i "s#-Wl,-rpath=$srcdir/parrot-$pkgver/blib/lib##" $F || true + grep "$srcdir" $F && sed -i "s#-rpath=$srcdir/parrot-$pkgver/blib/lib##" $F || true + done + + OLD_LIB_PATH=$LD_LIBRARY_PATH + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$srcdir/parrot-$pkgver/blib/lib + make -j1 all parrot_utils docs html RPATH_BLIB= + + export LD_LIBRARY_PATH=`pwd`/blib/lib + make -j1 DESTDIR=$pkgdir install-dev + + sed -i "s#$srcdir#/usr/src#" $pkgdir/usr/lib/parrot/$pkgver/tools/lib/Parrot/Config/Generated.pm + + export LD_LIBRARY_PATH=$OLD_LIB_PATH +} |