blob: 13726d23acb6d0500e7a0fe02f610088251c3193 (
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
|
# Maintainer: Maurizio D'Addona <mauritiusdadd@gmail.com>
# Contributor: Mathieu Pasquet <mathieui@mathieui.net>
# Contributor: Bernhard Walle <bernhard.walle@gmx.de>
# Contributor: Michael Eckert <michael.eckert@linuxmail.org>
# Contributor: Guilherme G. Piccoli <gpiccoli@igalia.com>
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"
}
|