1 # Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
6 pkgdesc="Java Library for Serial IO"
8 url="http://rxtx.qbang.org"
9 depends=('glibc' 'java-runtime')
10 makedepends=('kernel26-headers' 'gcc' 'java-environment' 'unzip' 'patch')
12 source=(http://${pkgname}.qbang.org/pub/${pkgname}/${pkgname}-${pkgver}.zip utsrelease.patch)
16 CFLAGS=-I/usr/src/linux-${_kernel}/include
17 _jhome=$pkgdir/usr/share/java/rxtx
18 _rxtx_path=$pkgdir/usr/lib
19 mkdir -p ${_jhome} ${_rxtx_path}
22 patch -p1 < utsrelease.patch
23 cd ${pkgname}-${pkgver}
24 ./configure --prefix=/usr || return 1
26 make JHOME=${_jhome} RXTX_PATH=${_rxtx_path} install || return 1
28 chmod -x ${_jhome}/RXTXcomm.jar
30 find $pkgdir -name '*.la' -exec rm {} \;
32 md5sums=('7eedb18e3f33a427e2b0e9be8ce3f94c'
33 '60e427aaecd29839a5a817f13172be5d')
34 sha256sums=('3c30373e760f444def3650c76c5a00ae12fb1d860ec008750d084f4880495b03'
35 'a0dba373e186f4139f54642c4bddc933e3151f00cb80430f35464ab88433bddf')