summaryrefslogtreecommitdiff
path: root/community-testing/parrot/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/parrot/PKGBUILD')
-rw-r--r--community-testing/parrot/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community-testing/parrot/PKGBUILD b/community-testing/parrot/PKGBUILD
new file mode 100644
index 000000000..640e7a740
--- /dev/null
+++ b/community-testing/parrot/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 69108 2012-04-09 13:50:17Z tdziedzic $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: mpie <michael.kyne-phillips1@ntlworld.com>
+
+pkgname=parrot
+pkgver=4.2.0
+#_rel=stable
+_rel=devel
+pkgrel=1
+pkgdesc="Standalone VM that can execute bytecode compiled dynamic languages"
+arch=('x86_64' 'i686')
+url="http://www.parrotcode.org/"
+license=('GPL')
+depends=('icu' 'openssl' 'libffi')
+makedepends=('perl-json')
+optdepends=('freeglut')
+options=(!makeflags)
+source=("ftp://ftp.parrot.org/pub/parrot/releases/$_rel/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('69ee93d9f81babcff67b747cc614358958a32f274e407b65771ca5a056d4c3d4')
+
+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
+
+ perl Configure.pl --prefix=/usr \
+ --parrot_is_shared \
+ --disable-rpath
+
+ find -type f -name Makefile | while read F; do
+ grep "$srcdir" $F && sed -i \
+ "s#-Wl,-rpath=$srcdir/$pkgname-$pkgver/blib/lib##" $F
+ grep "$srcdir" $F && sed -i \
+ "s#-rpath=$srcdir/$pkgname-$pkgver/blib/lib##" $F
+ done
+
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$(pwd)/blib/lib"
+ make all parrot_utils docs html
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install-dev
+
+ sed -i "s#$srcdir#/usr/src#" \
+ $pkgdir/usr/lib/parrot/$pkgver/tools/lib/Parrot/Config/Generated.pm
+}