1 # Contributor: Vitaliy Berdinskikh <skipper13@archlinux.org.ua>
5 pkgdesc="Java USB Interface"
7 url="http://javax-usb.org"
9 depends=('java-runtime')
10 makedepends=('java-environment' 'gcc' 'apache-ant')
12 _usb_api=javax-usb_${pkgver}
13 _usb_ri=javax-usb-ri_${pkgver}
14 _usb_linux=javax-usb-ri-linux_${pkgver}
16 source=(http://downloads.sourceforge.net/javax-usb/${_usb_api}.tar.bz2
17 http://downloads.sourceforge.net/javax-usb/${_usb_ri}.tar.bz2
18 http://downloads.sourceforge.net/javax-usb/${_usb_linux}.tar.bz2
20 md5sums=('f0cc57eee22a9aa99573b6a4d54e076f'
21 'e1b3583d5f7dd2ee2d6cdff83ef8d348'
22 'f0152b2ba124e871c6bd69f83ebd368d'
23 '08fea838f34ea2f1add468024a614a52')
24 sha1sums=('f4ed13617639f75223a80994f831a22d852e88e0'
25 'd69cc0c61198be6e848affc3ec32b9278f1bde09'
26 '6120fd2829845a18680595c6f63d6554d97fbe15'
27 'a0116b5d0357b7102bc9d05599e7f9cd6ccdfea4')
31 patch -p1 < classpath.patch
32 mkdir javax-usb-ri/lib
36 cp -a lib/*.jar ../javax-usb-ri/lib
40 cp -a lib/*.jar ../javax-usb-ri-linux/lib
42 cd ../javax-usb-ri-linux
45 mkdir -p ${startdir}/pkg/usr/share/java/${pkgname} ${startdir}/pkg/usr/lib || return 1
46 install -m644 lib/*.jar ${startdir}/pkg/usr/share/java/${pkgname} || return 1
47 install -m644 lib/javax.usb.properties ${startdir}/pkg/usr/share/java/${pkgname}
48 install -m755 lib/libJavaxUsb.so ${startdir}/pkg/usr/lib