void-packages/srcpkgs/foremost/template
Jürgen Buchmüller 171ec5ebe0 foremost: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:32 +02:00

26 lines
679 B
Bash

# Template file for 'foremost'
pkgname=foremost
version=1.5.7
revision=5
conf_files="/etc/foremost.conf"
short_desc="Forensic program to recover lost files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain, GPL-2"
homepage="http://foremost.sourceforge.net/"
distfiles="http://foremost.sourceforge.net/pkg/foremost-${version}.tar.gz"
checksum=502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34
CFLAGS="-fcommon"
do_configure() {
sed "s,RAW_FLAGS =.*,RAW_FLAGS = $CFLAGS," -i Makefile
}
do_build() {
make RAW_CC="$CC" LINK_OPT="$LDFLAGS" ${makejobs}
}
do_install() {
vbin foremost
gunzip foremost.8.gz
vman foremost.8
vconf foremost.conf
}