# $Id: PKGBUILD 2323 2009-09-16 09:28:30Z spupykin $ # Maintainer: Sergej Pupykin # Contributer: mpie pkgname=parrot pkgver=1.6.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) options=(!emptydirs !makeflags) source=(ftp://ftp.parrot.org/pub/parrot/releases/${_rel}/$pkgver/parrot-$pkgver.tar.gz) md5sums=('6fde2d91278a3990213c8671a0856e4a') build() { cd $srcdir/$pkgname-$pkgver 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 grep "$srcdir" $F && sed -i "s#-rpath=$srcdir/parrot-$pkgver/blib/lib##" $F done OLD_LIB_PATH=$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$srcdir/parrot-$pkgver/blib/lib make all parrot_utils docs html || return 1 export LD_LIBRARY_PATH=`pwd`/blib/lib make DESTDIR=$pkgdir install-dev || return 1 sed -i "s#$srcdir#/usr/src#" $pkgdir/usr/lib/parrot/$pkgver/tools/lib/Parrot/Config/Generated.pm || return 1 export LD_LIBRARY_PATH=$OLD_LIB_PATH }