[arch-commits] Commit in jython/trunk (PKGBUILD jython.sh)

Daniel Wallace dwallace at archlinux.org
Mon May 25 23:45:04 UTC 2015


    Date: Tuesday, May 26, 2015 @ 01:45:03
  Author: dwallace
Revision: 134106

upgpkg: jython 2.7.0-1

upgpkg: jython 2.7.0

Added:
  jython/trunk/jython.sh
Modified:
  jython/trunk/PKGBUILD

-----------+
 PKGBUILD  |   28 ++++++++++++----------------
 jython.sh |    1 +
 2 files changed, 13 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-05-25 23:29:44 UTC (rev 134105)
+++ PKGBUILD	2015-05-25 23:45:03 UTC (rev 134106)
@@ -4,8 +4,8 @@
 # Contributor: Geoffroy Carrier <geoffroy.carrier at aur.archlinux.org>
 # Contributor: Richard Murri <admin at richardmurri.com>
 pkgname=jython
-pkgver=2.5.3
-pkgrel=2
+pkgver=2.7.0
+pkgrel=1
 pkgdesc="An implementation of the Python language written in Java"
 arch=('any')
 url="http://www.jython.org/"
@@ -15,25 +15,21 @@
 options=('!emptydirs')
 install='jython.install'
 source=("http://search.maven.org/remotecontent?filepath=org/python/$pkgname-installer/$pkgver/$pkgname-installer-$pkgver.jar"
-        'README.ArchLinux')
+        'README.ArchLinux'
+        'jython.sh')
 
 noextract=(${pkgname}_installer-${pkgver}.jar)
 
-md5sums=('41633b4557483d6d4237ee79ffcebe7b'
-         '0a2e265af61c7d695e13b605dc180553')
+md5sums=('da4cafee530530c3627fb818f35dff12'
+         '0a2e265af61c7d695e13b605dc180553'
+         'c08ade059dae86b015f39842ceb465cf')
 
 package() {
-	cd "$srcdir"
-	java -jar ${pkgname}-installer-${pkgver}.jar -s -t standard -d "$pkgdir"/opt/jython
-	sed -i s*"${pkgdir}"**g "${pkgdir}"/opt/jython/jython
+    cd "$srcdir"
+    java -jar jython-installer-${pkgver}.jar -s -t standard -d "$pkgdir"/opt/"$pkgname"
 
-	# Get rid of hard-coded JAVA_HOME, since all the JDKs don't use
-	# the same directory.
-	sed -i '/^JAVA_HOME=.*$/d' "${pkgdir}"/opt/jython/jython
+    install -m644 -D $srcdir/jython.sh $pkgdir/etc/profile.d/jython.sh
+    install -m644 -D "$srcdir/README.ArchLinux" "$pkgdir/usr/share/doc/$pkgname/README.ArchLinux"
 
-	install -m755 -D "$pkgdir/opt/jython/jython" "$pkgdir/usr/bin/jython"
-	install -m644 -D "$srcdir/README.ArchLinux" "$pkgdir/usr/share/doc/$pkgname/README.ArchLinux"
-
-	rm "$pkgdir/opt/jython/jython" "$pkgdir/opt/jython/bin/jython"
-	install -m644 -D "$pkgdir/opt/jython/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+    install -m644 -D "$pkgdir/opt/$pkgname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
 }

Added: jython.sh
===================================================================
--- jython.sh	                        (rev 0)
+++ jython.sh	2015-05-25 23:45:03 UTC (rev 134106)
@@ -0,0 +1 @@
+export PATH="/opt/jython/bin/:$PATH"



More information about the arch-commits mailing list