aboutsummaryrefslogtreecommitdiffstats
path: root/extra/libnet/APKBUILD
blob: e756acc0eca7928301b17ff1287ca2cab17e97ac (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
33
34
35
36
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Your Name <youremail@domain.com>
pkgname=libnet
pkgver=1.1.2.1
pkgrel=0
pkgdesc="A generic networking API that provides access to several protocols."
url="http://www.packetfactory.net/libnet/"
license="BSD"
depends="uclibc"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="http://www.packetfactory.net/libnet/dist/$pkgname-$pkgver.tar.gz
	libnet-1.1.2.1-autotools.patch
	libnet-1.1.2.1-fix-chksum.patch
	"

build() {
	local i
	cd "$srcdir/$pkgname"
	for i in ../*.patch; do
		msg "Applyting $i"
		patch -p1 < $i || return 1
	done

	aclocal 
	libtoolize --force || return 1
	autoconf && automake || return 1

	./configure --prefix=/usr
	make || return 1
	make DESTDIR="$pkgdir" install
}

md5sums="be845c41170d72c7db524f3411b50256  libnet-1.1.2.1.tar.gz
7e928170600bea8ed4a0d079b83c80ac  libnet-1.1.2.1-autotools.patch
668189bf87cda8daeaf250146bd88331  libnet-1.1.2.1-fix-chksum.patch"