aports/testing/kpatch/APKBUILD
2023-07-28 21:31:03 +00:00

42 lines
1.1 KiB
Plaintext

# Contributor: Nicolas Lorin <androw95220@gmail.com>
# Maintainer: Nicolas Lorin <androw95220@gmail.com>
pkgname=kpatch
pkgver=0.9.9
pkgrel=0
pkgdesc="live kernel patching"
url="https://github.com/dynup/kpatch"
arch="x86_64"
license="GPL-2.0-only"
depends="
bash
binutils
elfutils-dev
gawk
gcc
"
makedepends="argp-standalone"
options="!check"
subpackages="kpatch-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dynup/kpatch/archive/v$pkgver.tar.gz
02-argp.patch
03-ppc64.patch
"
build() {
make
}
package() {
make DESTDIR="$pkgdir" PREFIX="/usr" install
cd "$pkgdir"
# Remove incompatible init system file
rm -r etc/init
}
sha512sums="
2e1fd4ee11cbbe0f0838023e13547a58f352ea7a35e257b651fdcccd04de3ddfc418ae0c658a3fd8c26e43c549ae17df935f28acc0c32f0865831796795a4ca9 kpatch-0.9.9.tar.gz
69b05b0941e40189b246159de4faafdf78527b4f08d6b28e82eabae0f3e10935adcdf237b0ff402dd1bc9e6cc96315f3e65438c7a827246da5c3a119d4fc207b 02-argp.patch
99256fd74ffa98d00bc614115b1acb3d7f4d829b641cc4e46a342cd4bfdb97fb1197888ca438c0562881f2382a6e7d2dd6995cf8d24915d261385dcea95df27f 03-ppc64.patch
"