# Description: Library for constructing and injecting network packets
# URL:         http://libnet-dev.sf.net
# Packager: Chris Farrell, timcowchip at gmail dot com
# Maintainer: Chris Farrell, timcowchip at gmail dot com
# Depends on:

name=libnet
version=1.1.6
release=2
source=(http://downloads.sourceforge.net/project/libnet-dev/libnet-$version.tar.gz)

build() {
    cd $name-$version
    export CFLAGS=$CFLAGS" -fPIC" 

    ./configure --prefix=/usr --mandir=/usr/man
    sed -i 's/ sample//g' Makefile
    make
    make DESTDIR=$PKG install
    install -D -m 755 libnet-config $PKG/usr/bin/libnet-config
}
