1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="A console program to recover files based on their headers, footers, and internal data structures"
8 url="http://foremost.sourceforge.net/"
11 backup=(etc/foremost.conf)
12 source=(http://foremost.sourceforge.net/pkg/$pkgname-$pkgver.tar.gz \
13 http://kambing.ui.edu/gentoo-portage/app-forensics/$pkgname/files/$pkgname-1.4-config-location.patch \
14 $pkgname-makefile.diff)
15 sha256sums=('502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34'
16 '43052e257b77f410e9c3594827612c6cc4805f5758d70e87a225856ca04d2932'
17 'a22b4689b43e326abd752bd94088c0a552acbe646f2d7546f961e7104d6928fe')
20 cd ${srcdir}/$pkgname-$pkgver
22 install -d ${pkgdir}/{etc,{usr/bin,usr/share/man/man8}}
23 patch -Np1 -i ${srcdir}/$pkgname-1.4-config-location.patch
29 cd ${srcdir}/$pkgname-$pkgver
31 patch -Np0 -i ${srcdir}/$pkgname-makefile.diff
32 make DESTDIR=${pkgdir} install
35 ./foremost -V > COPYRIGHT
36 install -D -m644 COPYRIGHT ${pkgdir}/usr/share/licenses/$pkgname/COPYRIGHT