updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / rxtx / PKGBUILD
blob059cd6190421680d156bbeb3ccc1f1835a929ac0
1 # Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
3 pkgname=rxtx
4 pkgver=2.2pre2
5 pkgrel=6
6 pkgdesc="Java Library for Serial IO"
7 arch=('i686' 'x86_64')
8 url="http://rxtx.qbang.org"
9 depends=('glibc' 'java-runtime')
10 makedepends=('kernel26-headers' 'gcc' 'java-environment' 'unzip' 'patch')
11 license=('LGPL')
12 source=(http://${pkgname}.qbang.org/pub/${pkgname}/${pkgname}-${pkgver}.zip utsrelease.patch)
14 build() {
15         _kernel=`uname -r`
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}
21         cd $srcdir
22         patch -p1 < utsrelease.patch
23         cd ${pkgname}-${pkgver}
24         ./configure --prefix=/usr || return 1
25         make || return 1
26         make JHOME=${_jhome} RXTX_PATH=${_rxtx_path} install || return 1
28         chmod -x ${_jhome}/RXTXcomm.jar
29         # slay libtool
30         find $pkgdir -name '*.la' -exec rm {} \;
32 md5sums=('7eedb18e3f33a427e2b0e9be8ce3f94c'
33          '60e427aaecd29839a5a817f13172be5d')
34 sha256sums=('3c30373e760f444def3650c76c5a00ae12fb1d860ec008750d084f4880495b03'
35             'a0dba373e186f4139f54642c4bddc933e3151f00cb80430f35464ab88433bddf')