summaryrefslogtreecommitdiff
path: root/extra/libnet/PKGBUILD
blob: bc4477391ef4225d194ecf2526f0de479afb6387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 199977 2013-11-20 12:23:09Z allan $
# Maintainer:
# Contributor: damir <damir@archlinux.org>

pkgname=libnet
pkgver=1.1.6
pkgrel=2
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' 'sh')
source=("http://downloads.sourceforge.net/libnet-dev/${pkgname}-${pkgver}.tar.gz")
md5sums=('710296fe424a49344e5fcc0d09e53317')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make CFLAGS="${CFLAGS} -fPIC"
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 doc/COPYING \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}