diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-09-26 16:51:19 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-09-26 16:59:39 -0400 |
commit | e6450f3c0b59d3b51886f62d4fbd28ce66ec769a (patch) | |
tree | 96bdb1ca1ac89cc8f114adcd46799a48b6a2a6c6 /java/java-rxtx/PKGBUILD | |
parent | ad1725db924d8330ec3c9cd738f214f51fbc4504 (diff) | |
download | abslibre-e6450f3c0b59d3b51886f62d4fbd28ce66ec769a.tar.gz abslibre-e6450f3c0b59d3b51886f62d4fbd28ce66ec769a.tar.bz2 abslibre-e6450f3c0b59d3b51886f62d4fbd28ce66ec769a.zip |
add java/java-rxtx, a dependency of arduino
Diffstat (limited to 'java/java-rxtx/PKGBUILD')
-rw-r--r-- | java/java-rxtx/PKGBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/java/java-rxtx/PKGBUILD b/java/java-rxtx/PKGBUILD new file mode 100644 index 000000000..30ed25967 --- /dev/null +++ b/java/java-rxtx/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer (Parabola): Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (AUR): PyroPeter <googlemail.com@abi1789> + +pkgname=java-rxtx +_pkgver=2.1-7r2-arduino4 +_gitver='commit=a8cd90f8505d7c472b57550b1192fe67885dd638' +pkgver=${_pkgver//-/.} + +pkgrel=1 +pkgdesc="A native library providing serial and parallel communication for Java" +arch=('i686' 'x86_64') +depends=('java-environment') + +case "$_pkgver" in + *arduino*) + url="https://github.com/arduino/RXTX" + source=("git://github.com/arduino/RXTX.git#${_gitver}" + java7-configure.patch + destdir.patch) + license=(LGPL) + changelog=ChangeLog.txt + _dirname=RXTX + ;; + *) + url="http://rxtx.qbang.org/" + source=("http://rxtx.qbang.org/pub/rxtx/rxtx-${_pkgver}.zip" + destdir.patch) + # Todo: patch for Java 6 AND Java 7 + license=('custom:LGPL-with-java-exception') + _dirname=rxtx-{$_pkgver} + ;; +esac + +build() { + cd "$srcdir/$_dirname" + . /etc/profile.d/jdk.sh + + patch -i "$srcdir/java7-configure.patch" + patch -i "$srcdir/destdir.patch" + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$_dirname" + . /etc/profile.d/jdk.sh + + make DESTDIR="$pkgdir" install +} + +md5sums=('SKIP' + 'f07bc244660852dd9b016c190e38e1c9' + '90be9bdf1d8cbe5304739df066559a13') |