void-packages/srcpkgs/makedumpfile/template
2018-01-29 22:42:24 +01:00

34 lines
1 KiB
Bash

# Template file for 'makedumpfile'
pkgname=makedumpfile
version=1.6.3
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"
homepage="http://sourceforge.net/projects/makedumpfile/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=cb1afe2cf24147eac983694bfbcf8c1b149eeeb92289562d4d25fbe3b100b125
case "$XBPS_TARGET_MACHINE" in
aarch64) broken="https://build.voidlinux.eu/builders/aarch64_builder/builds/7860/steps/shell_3/logs/stdio";;
esac
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() {
make CC="$CC" LD="$LD" CF="$CFLAGS -D_GNU_SOURCE" \
LDFLAGS="$LDFLAGS" LINKTYPE=dynamic USELZO=on
}
do_install() {
vbin makedumpfile
vbin makedumpfile-R.pl
vsconf makedumpfile.conf
vman makedumpfile.8
vman makedumpfile.conf.5
}