mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# $Id: PKGBUILD 2323 2009-09-16 09:28:30Z spupykin $
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
# Contributer: mpie <michael.kyne-phillips1@ntlworld.com>
|
|
|
|
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
|
|
}
|