updated on Sat Jan 14 16:01:55 UTC 2012
[aur-mirror.git] / jpcap / PKGBUILD
blob8a4898ef6f16509b8ed7d2cf958ce5b7a1258843
1 # edited by Li Shun <riverscn@gmail.com>
3 pkgname=jpcap
4 pkgver=0.7
5 pkgrel=3
6 pkgdesc="Jpcap is a Java library for capturing and sending network packets."
7 arch=('i686')
8 url="http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.html"
9 license=('GPL')
10 depends=('libcap' 'jre')
11 makedepends=('jdk')
12 source=(http://netresearch.ics.uci.edu/kfujii/jpcap/jpcap-0.7.tar.gz)
13 md5sums=('faa3c4be407ce3419cad90150db391a5')
15 build() {
16   cd "$srcdir/jpcap-0.7/src/c" || return 1
17   make || return 1
19   mkdir -p "$pkgdir/opt/java/jre/lib/i386" || return 1
20   cp libjpcap.so "$pkgdir/opt/java/jre/lib/i386" || return 1
22   mkdir -p "$pkgdir/opt/java/jre/lib/ext" || return 1
23   cp "$srcdir/jpcap-0.7/lib/jpcap.jar" "$pkgdir/opt/java/jre/lib/ext" || return 1