aboutsummaryrefslogtreecommitdiffstats
path: root/community/kexec-tools/APKBUILD
blob: 1fb0b3167bde7218178b3c81f7a0f02163e8f13e (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
# Contributor: Duncan Guthrie <dguthrie@posteo.net>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=kexec-tools
pkgver=2.0.28
pkgrel=1
pkgdesc="Directly boot into a new kernel over a currently running one"
url="https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/"
arch="all !riscv64" # not supported on riscv64 yet
license="GPL-2.0-only"
makedepends="zlib-dev xz-dev linux-headers"
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-$pkgver.tar.xz
	fix-basename.patch
	fix-build-on-Alpine-linux.patch
	fix-build-with-binutils-2.41.patch
	"
options="!check"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-zlib \
		--with-lzma
	make
}

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

sha512sums="
889a7bf1d26bb309e4ff7ce1c8dbcf48c01e47221ea3acf1c4ef2a98a652c496e31bddcdb627d3adebd85f7541d1fb9122c60e741e10b3726e31a9733cadc753  kexec-tools-2.0.28.tar.xz
0a58a3919cca937657d5f768103b6c7197a662401c2d892c8a4b9e0cfbcdebc8b1f20f9613dff651df88e467a6c3872f743908e13afb1b6ec8c8c1009e5534f4  fix-basename.patch
228166102bfc48f81c04f3b13fbf29d6edf2e66918a967f243c8d2652f40c27af565f1db6b1a58783bd12d67184a70e6b00b1ab82e0f0d195dd51009260c3329  fix-build-on-Alpine-linux.patch
ecf09e3e64dd29bfc2cd201ee51c5e587f2b3963b41d4b838f64f6772d82cc9d24fc3e9838ad5f7729ef75b871e45eaa0cefa434fdd241a5850e46641cfd2fdb  fix-build-with-binutils-2.41.patch
"