[arch-commits] Commit in swt/repos (6 files)

Guillaume Alaux guillaume at archlinux.org
Sun Oct 7 11:37:05 UTC 2012


    Date: Sunday, October 7, 2012 @ 07:37:04
  Author: guillaume
Revision: 168272

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  swt/repos/testing-i686/
  swt/repos/testing-i686/PKGBUILD
    (from rev 168271, swt/trunk/PKGBUILD)
  swt/repos/testing-i686/build-swt.xml
    (from rev 168271, swt/trunk/build-swt.xml)
  swt/repos/testing-x86_64/
  swt/repos/testing-x86_64/PKGBUILD
    (from rev 168271, swt/trunk/PKGBUILD)
  swt/repos/testing-x86_64/build-swt.xml
    (from rev 168271, swt/trunk/build-swt.xml)

------------------------------+
 testing-i686/PKGBUILD        |   56 +++++++++++++++++++++++++++++++++++++++++
 testing-i686/build-swt.xml   |   17 ++++++++++++
 testing-x86_64/PKGBUILD      |   56 +++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/build-swt.xml |   17 ++++++++++++
 4 files changed, 146 insertions(+)

Copied: swt/repos/testing-i686/PKGBUILD (from rev 168271, swt/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-10-07 11:37:04 UTC (rev 168272)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
+pkgname=swt
+pkgver=4.2
+pkgrel=2
+_date=201206081400
+pkgdesc="An open source widget toolkit for Java"
+arch=('i686' 'x86_64')
+url="http://www.eclipse.org/swt/"
+license=('EPL')
+depends=('java-runtime>=6' 'gtk2>=2.20.1' 'libxtst')
+optdepends=('libgnomeui' 'mesa' 'glu' 'libwebkit')
+makedepends=('java-environment' 'libxtst' 'mesa' 'glu' 'libgnomeui' 'unzip' 'pkgconfig' 'libwebkit' 'apache-ant')
+if [ "${CARCH}" = "i686" ]; then
+  _carch=x86
+  md5sums=('3efe0404f6129183abae46f7620fe14f'
+           '2f556ab534fc2488c6e8c0ee6c02825c')
+fi
+if [ "${CARCH}" = "x86_64" ]; then
+  _carch=x86_64
+  md5sums=('9e06b576116ff409f395571603582827'
+           '2f556ab534fc2488c6e8c0ee6c02825c')
+fi
+source=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-${_carch}.zip
+        build-swt.xml)
+# To test this pkg:
+# http://www.eclipse.org/swt/examples.php#standaloneOutsideEclipse
+
+build() {
+  cd ${srcdir}
+  unzip -oq src.zip -d src
+
+  . /etc/profile.d/jdk.sh
+  . /etc/profile.d/apache-ant.sh
+
+  # Shared objects
+  cd src
+  ./build.sh
+
+  # SWT jar
+  ant -f ../build-swt.xml compile
+}
+
+package() {
+  cd ${srcdir}/src
+
+  # Shared objects
+  export OUTPUT_DIR=${pkgdir}/usr/lib
+  install -dm755 ${OUTPUT_DIR} 
+  make -f make_linux.mak install
+
+  # SWT jar
+  ant -f ../build-swt.xml jar
+  install -Dm755 ../swt.jar ${pkgdir}/usr/share/java/swt-${pkgver}.jar
+  ln -s swt-${pkgver}.jar ${pkgdir}/usr/share/java/swt.jar
+}

Copied: swt/repos/testing-i686/build-swt.xml (from rev 168271, swt/trunk/build-swt.xml)
===================================================================
--- testing-i686/build-swt.xml	                        (rev 0)
+++ testing-i686/build-swt.xml	2012-10-07 11:37:04 UTC (rev 168272)
@@ -0,0 +1,17 @@
+<project name="SWT" default="jar" basedir=".">
+   <property name="src" location="."/>
+   <property name="build" location="build"/>
+
+   <target name="init">
+      <tstamp/>
+      <mkdir dir="${build}"/>
+   </target>
+
+   <target name="compile" depends="init" description="Compile the SWT toolset">
+      <javac srcdir="${src}" destdir="${build}" target="1.6" />
+   </target>
+
+   <target name="jar">
+      <jar destfile="swt.jar" basedir="${build}"/>
+   </target>
+</project>

Copied: swt/repos/testing-x86_64/PKGBUILD (from rev 168271, swt/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-10-07 11:37:04 UTC (rev 168272)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
+pkgname=swt
+pkgver=4.2
+pkgrel=2
+_date=201206081400
+pkgdesc="An open source widget toolkit for Java"
+arch=('i686' 'x86_64')
+url="http://www.eclipse.org/swt/"
+license=('EPL')
+depends=('java-runtime>=6' 'gtk2>=2.20.1' 'libxtst')
+optdepends=('libgnomeui' 'mesa' 'glu' 'libwebkit')
+makedepends=('java-environment' 'libxtst' 'mesa' 'glu' 'libgnomeui' 'unzip' 'pkgconfig' 'libwebkit' 'apache-ant')
+if [ "${CARCH}" = "i686" ]; then
+  _carch=x86
+  md5sums=('3efe0404f6129183abae46f7620fe14f'
+           '2f556ab534fc2488c6e8c0ee6c02825c')
+fi
+if [ "${CARCH}" = "x86_64" ]; then
+  _carch=x86_64
+  md5sums=('9e06b576116ff409f395571603582827'
+           '2f556ab534fc2488c6e8c0ee6c02825c')
+fi
+source=(http://download.eclipse.org/eclipse/downloads/drops4/R-${pkgver}-${_date}/swt-${pkgver}-gtk-linux-${_carch}.zip
+        build-swt.xml)
+# To test this pkg:
+# http://www.eclipse.org/swt/examples.php#standaloneOutsideEclipse
+
+build() {
+  cd ${srcdir}
+  unzip -oq src.zip -d src
+
+  . /etc/profile.d/jdk.sh
+  . /etc/profile.d/apache-ant.sh
+
+  # Shared objects
+  cd src
+  ./build.sh
+
+  # SWT jar
+  ant -f ../build-swt.xml compile
+}
+
+package() {
+  cd ${srcdir}/src
+
+  # Shared objects
+  export OUTPUT_DIR=${pkgdir}/usr/lib
+  install -dm755 ${OUTPUT_DIR} 
+  make -f make_linux.mak install
+
+  # SWT jar
+  ant -f ../build-swt.xml jar
+  install -Dm755 ../swt.jar ${pkgdir}/usr/share/java/swt-${pkgver}.jar
+  ln -s swt-${pkgver}.jar ${pkgdir}/usr/share/java/swt.jar
+}

Copied: swt/repos/testing-x86_64/build-swt.xml (from rev 168271, swt/trunk/build-swt.xml)
===================================================================
--- testing-x86_64/build-swt.xml	                        (rev 0)
+++ testing-x86_64/build-swt.xml	2012-10-07 11:37:04 UTC (rev 168272)
@@ -0,0 +1,17 @@
+<project name="SWT" default="jar" basedir=".">
+   <property name="src" location="."/>
+   <property name="build" location="build"/>
+
+   <target name="init">
+      <tstamp/>
+      <mkdir dir="${build}"/>
+   </target>
+
+   <target name="compile" depends="init" description="Compile the SWT toolset">
+      <javac srcdir="${src}" destdir="${build}" target="1.6" />
+   </target>
+
+   <target name="jar">
+      <jar destfile="swt.jar" basedir="${build}"/>
+   </target>
+</project>




More information about the arch-commits mailing list