PKGBUILDs/community/jython/PKGBUILD
2009-10-09 21:15:33 -05:00

20 lines
816 B
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Contributor: Richard Murri <admin@richardmurri.com>
pkgname=jython
pkgver=2.2.1
pkgrel=3
pkgdesc="An implementation of the Python language written in Java"
arch=('i686' 'x86_64')
url="http://www.jython.org/"
license=('python', 'apache', 'unknown')
depends=('java-runtime')
source=(http://downloads.sourceforge.net/$pkgname/${pkgname}_installer-${pkgver}.jar)
build() {
cd "$srcdir"
java -jar ${pkgname}_installer-${pkgver}.jar -s -t standard -d "$pkgdir"/opt/jython
sed -i s*"${pkgdir}"**g "${pkgdir}"/opt/jython/jython
sed -i 's#/opt/java/jre/bin/java#java#g' "${pkgdir}"/opt/jython/jython
sed -i s*"${pkgdir}"**g "${pkgdir}"/opt/jython/jythonc
}
md5sums=('774543534bef2d68247953882237d448')