aboutsummaryrefslogtreecommitdiffstats
path: root/main/bridge-utils/APKBUILD
blob: 7910e305f98cddda4423e01e340bc0fff246f3a3 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bridge-utils
pkgver=1.5
pkgrel=5
pkgdesc="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
url="http://sourceforge.net/projects/bridge/"
arch="all"
license="GPL2+"
subpackages="$pkgname-doc"
depends=""
makedepends="autoconf linux-headers"
source="http://downloads.sourceforge.net/project/bridge/bridge/bridge-utils-$pkgver.tar.gz
	00-musl-headers.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "${_builddir}" || return 1
	for p in $source; do
		case $p in
			*.patch)
				msg $p; patch -p1 -i "$srcdir"/$p || return 1
			;;
		esac
	done
}

build() {
	cd "$_builddir"
	autoconf || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--libdir=/usr/lib \
		--includedir=/usr/include \
		|| return 1
	make || return 1
	test -x brctl/brctl || return 1
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir" || return 1
}

md5sums="ec7b381160b340648dede58c31bb2238  bridge-utils-1.5.tar.gz
0835358641d481269ab6a5b2fb186060  00-musl-headers.patch"
sha256sums="42f9e5fb8f6c52e63a98a43b81bd281c227c529f194913e1c51ec48a393b6688  bridge-utils-1.5.tar.gz
8cf2f4b57604a8287b9103430ce40dfefa3bd48e8bbca6a08299b03924c58557  00-musl-headers.patch"
sha512sums="4e525fbd3defb509664ef3b728d9e5edfb92beaebdb5d7733d8203fb38cb3f4bb54d02dc1e28813889a2ee19c78b9b47da6d99c8032481a7fd7f104658dea7c3  bridge-utils-1.5.tar.gz
12d8e736bb854c33c3bfcc8fc0d32e721c6655c5aed1e4a0f368c93fb06b6d0f5090a8b19a8527cb1a824747ee6d9f9df788a35dcf955e63e7c45c1bae0f48fe  00-musl-headers.patch"