39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'makedumpfile'
|
|
pkgname=makedumpfile
|
|
version=1.7.1
|
|
revision=1
|
|
makedepends="elfutils-devel zlib-devel bzip2-devel liblzma-devel lzo-devel"
|
|
depends="perl"
|
|
short_desc="Make a small dumpfile of kdump"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/makedumpfile/makedumpfile"
|
|
distfiles="${homepage}/archive/refs/tags/${version}.tar.gz"
|
|
checksum=cb04b1bd0e750d0d0ac1b43b759b326d4a3797b0af08e0c269d1b155893fb664
|
|
|
|
post_extract() {
|
|
sed -i '/#define PAGESIZE/i#undef PAGESIZE' makedumpfile.h
|
|
sed -i '1i#include <limits.h>' common.h
|
|
sed -i 's@CFLAGS\(\|_ARCH\)[ \t]*= @& $(CF) @' Makefile
|
|
}
|
|
|
|
do_build() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*) export ARCH=i386;;
|
|
x86_64*) export ARCH=x86_64;;
|
|
arm*) export ARCH=arm;;
|
|
aarch64*) export ARCH=aarch64;;
|
|
ppc64*) export ARCH=ppc64;;
|
|
esac
|
|
make CC="$CC" LD="$LD" CF="$CFLAGS -D_GNU_SOURCE" \
|
|
LDFLAGS="$LDFLAGS" LINKTYPE=dynamic USELZO=on TARGET=$ARCH
|
|
}
|
|
|
|
do_install() {
|
|
vbin makedumpfile
|
|
vbin makedumpfile-R.pl
|
|
vsconf makedumpfile.conf
|
|
vman makedumpfile.8
|
|
vman makedumpfile.conf.5
|
|
}
|