updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / ruby-pcap / PKGBUILD
blobaecc230bfca88d7cb2294beff4c74d8f888da4ee
1 # Packager: Denis A. AltoĆ© Falqueto <denisfalqueto@gmail.com>
3 pkgname=ruby-pcap
4 pkgver=0.6
5 pkgrel=2
6 pkgdesc="Ruby bindings for libpcap"
7 arch=('i686' 'x86_64')
8 url="http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html"
9 license=('GPL')
10 depends=('ruby' 'libpcap')
11 source=(http://www.goto.info.waseda.ac.jp/~fukusima/ruby/$pkgname-$pkgver.tar.gz
12         ruby-pcap-no-warnings.patch
13         ruby-1.9.patch)
14 md5sums=('bf8024831bfbbf0cfbf7c7ca27c1b16a'
15          '6ce5f0a0846731723ada2c535589c336'
16          '3466b4c5d284ba3c8fa44dd679a4b60f')
18 build() {
19   cd "$srcdir/pcap"
20   patch -p0 < ../ruby-pcap-no-warnings.patch
21   patch -Np1 < ../ruby-1.9.patch
22   ruby extconf.rb
23   make || return 1
26 package() {
27   cd "$srcdir/pcap"
28   make DESTDIR="$pkgdir" install