summaryrefslogtreecommitdiffstats
path: root/main/libdnet/APKBUILD
blob: 34eeb9219c5ebed58b641c018747bb9c242786c2 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdnet
pkgver=1.12
pkgrel=3
pkgdesc="A simplified, portable interface to several low-level networking routines"
url="http://code.google.com/p/libdnet/"
arch="all"
license="BSD"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends="autoconf automake libtool"
install=
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tgz"

build () 
{ 
	cd "$srcdir"/$pkgname-$pkgver
	# the libtool script does not add .so extention to we generate
	# new libtool
	aclocal -I config && autoconf && automake && libtoolize || return 1

	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--without-python

	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="9253ef6de1b5e28e9c9a62b882e44cc9  libdnet-1.12.tgz"