aboutsummaryrefslogtreecommitdiffstats
path: root/main/bridge-utils/APKBUILD
blob: 890bd41840dbd6a1ceeec4fc70deb94b51456139 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bridge-utils
pkgver=1.6
pkgrel=0
pkgdesc="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
url="https://www.kernel.org/pub/linux/utils/net/bridge-utils/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
depends=""
makedepends="autoconf linux-headers"
source="https://www.kernel.org/pub/linux/utils/net/$pkgname/$pkgname-$pkgver.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	default_prepare
	autoconf
}

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

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

sha512sums="b2ed39bc67349b7b91f2068cb505c0e3c89a8797d61e3d97ff957796cfe5fcef2c26dd788bd4215f628d69a4c8592377f4e632c3e181e87af3eaa238d8741e02  bridge-utils-1.6.tar.xz"