# Maintainer: Maurizio D'Addona # Contributor: Mathieu Pasquet # Contributor: Bernhard Walle # Contributor: Michael Eckert # Contributor: Guilherme G. Piccoli pkgname=makedumpfile pkgver=1.7.0 pkgrel=3 pkgdesc="A tool to generate smaller dumpfiles from kdump memory dumps" license=('GPL2') depends=('perl' 'libelf' 'zstd') arch=('i686' 'x86_64') url="https://github.com/makedumpfile/makedumpfile" source=("https://github.com/makedumpfile/makedumpfile/releases/download/${pkgver}/makedumpfile-${pkgver}.tar.gz") sha256sums=('8985f8df249087ea68c6051dec6dac3ef0703fe2aa87d0266f3951f93aa8da5e') build() { cd $srcdir/$pkgname-$pkgver export CFLAGS="-fcommon" # NOTE: to enable lzo and/or snappy compressions uncomment the following # options and add the corresponding packages to the depends array make LINKTYPE=dynamic USEZSTD=on # USELZO=on USESNAPPY=on } package() { cd $srcdir/$pkgname-$pkgver make install DESTDIR="${pkgdir}" mv "${pkgdir}/usr/sbin" "${pkgdir}/usr/bin" }