aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnet/APKBUILD
blob: 295eaef34c3d72595be86f0fa54baafcebecef23 (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
29
30
31
32
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnet
pkgver=1.1.6
pkgrel=0
pkgdesc="A generic networking API that provides access to several protocols."
url="http://sourceforge.net/projects/libnet-dev/"
arch="all"
license="BSD"
depends=
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/project/libnet-dev/libnet-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="710296fe424a49344e5fcc0d09e53317  libnet-1.1.6.tar.gz"