PKGBUILDs/extra/libnet/PKGBUILD

24 lines
812 B
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 51887 2009-09-13 04:28:38Z eric $
# Maintainer: damir <damir@archlinux.org>
pkgname=libnet
pkgver=1.1.4
pkgrel=1
pkgdesc="A library which provides API for commonly used low-level net functions."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/libnet-dev/"
license=('BSD')
depends=('glibc')
options=('!libtool')
source=(http://sourceforge.net/projects/libnet-dev/files/libnet-dev/${pkgname}-${pkgver}.tar.gz)
md5sums=('c5e06418a89cc4209f677a776a798fd9')
sha1sums=('86a2f75b52c5b15dbd41c3e03356167de9c883e4')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr || return 1
make CFLAGS="${CFLAGS} -fPIC" || return 1
make DESTDIR="${pkgdir}" install || return 1
install -D -m644 doc/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}