aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdnet/APKBUILD
blob: e62967c01adfbbb9cca0a7f0442bb9656d948ffb (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdnet
pkgver=1.14
pkgrel=0
pkgdesc="simplified, portable interface to several low-level networking routines"
url="https://github.com/dugsong/libdnet"
arch="all"
license="BSD-3-Clause"
makedepends="linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/dugsong/libdnet/archive/libdnet-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-python
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
ce8d95228f5175e4d9a8ff71bb99eb1ccc3ccd599a85dd07adbfd9842fc54066235d362c8060828fb3ba8129d0e1e8e071e93d60d69c6d03be310c80e61cea93  libdnet-1.14.tar.gz
"