# Template file for 'ext4magic'
pkgname=ext4magic
version=0.3.2
revision=2
patch_args="-Np1"
build_style=gnu-configure
configure_args="--enable-expert-mode --enable-file-attr"
makedepends="e2fsprogs-devel file-devel zlib-devel bzip2-devel"
short_desc="Recover deleted or overwritten files on ext3 and ext4 filesystems"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="http://sourceforge.net/projects/ext4magic/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=8d9c6a594f212aecf4eb5410d277caeaea3adc03d35378257dfd017ef20ea115

CFLAGS='-DHAVE_SYS_TYPES_H'
post_extract() {
	sed -i '/<ext2fs\/ext2fs.h>/i#include <time.h>' src/lookup_local.c
}
