[arch-commits] Commit in jruby/trunk (PKGBUILD)

Jan Steffens heftig at nymeria.archlinux.org
Mon Jun 3 08:48:37 UTC 2013


    Date: Monday, June 3, 2013 @ 10:48:36
  Author: heftig
Revision: 92238

build nailgun; delete foreign platform files

Modified:
  jruby/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-06-03 06:54:08 UTC (rev 92237)
+++ PKGBUILD	2013-06-03 08:48:36 UTC (rev 92238)
@@ -4,7 +4,7 @@
 
 pkgname=jruby
 pkgver=1.7.4
-pkgrel=1
+pkgrel=2
 pkgdesc="100% pure-Java implementation of the Ruby programming language"
 arch=(any)
 url="http://www.jruby.org/"
@@ -14,26 +14,30 @@
 source=(http://jruby.org.s3.amazonaws.com/downloads/$pkgver/$pkgname-bin-${pkgver}.tar.gz)
 sha256sums=('ef6dead787780f18a43758003689fd9ba40e64abc04cd41a6ff1eaf1557dfa69')
 
-# For build from source (-src-) package
-#makedepends=(java-environment apache-ant)
-#build() {
-#  cd jruby
-#  ant dist-bin
-#  tar -C .. -xf dist/$pkgname-bin-$pkgver.tar.gz
-#}
+build() {
+  cd jruby-$pkgver/tool/nailgun
+  ./configure
+  make
+}
 
+
 package() {
   cd "$pkgdir"
 
   mkdir opt
-  cp -r "$srcdir/jruby-$pkgver" opt/jruby
+  tar -C opt -xf "$srcdir/$pkgname-bin-$pkgver.tar.gz"
+  mv opt/jruby-$pkgver opt/jruby
 
+  find opt/jruby -regextype posix-extended -regex '.*\.(bat|dll|exe)' -delete
+  rm -r opt/jruby/lib/native/{Darwin,*-SunOS,*-Windows,*-AIX,*-FreeBSD}
+
+  install "$srcdir/$pkgname-$pkgver/tool/nailgun/ng" opt/jruby/tool/nailgun/ng
+
   mkdir -p usr/bin
   for _file in jirb{,_swing} jruby{,c} jgem; do
     ln -s ../../opt/jruby/bin/$_file usr/bin/$_file
   done
 
   mkdir -p usr/share/licenses/$pkgname
-  ln -s ../../../../opt/jruby/COPYING \
-    usr/share/licenses/$pkgname/COPYING
+  ln -s ../../../../opt/jruby/COPYING usr/share/licenses/$pkgname/COPYING
 }




More information about the arch-commits mailing list