archrelease: copy trunk to community-any
[arch-community.git] / foremost / trunk / PKGBUILD
blob600ef267c564824fcd2a0568187d7c027b14da2c
1 # Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
3 pkgname=foremost
4 pkgver=1.5.7
5 pkgrel=6
6 pkgdesc="A console program to recover files based on their headers, footers, and internal data structures"
7 arch=('x86_64')
8 url="http://foremost.sourceforge.net/"
9 license=('custom')
10 depends=('glibc')
11 makedepends=('patch')
12 backup=(etc/foremost.conf)
13 source=(https://foremost.sourceforge.net/pkg/$pkgname-$pkgver.tar.gz
14         $pkgname-makefile.patch
15         $pkgname-1.5.7-fno-common.patch)
16 sha512sums=('8827c29d52496783be26374f3943eb26a154d842f34e50fb489f87b3a5045bf85f1e44d7d8d8b12b2355ba3fe4b06a0db979cc22c0f431593c5976001eb931ab'
17             'eb3fc70590cafa3fb953946f6d80051ab3d976bcb3687cadb141a72dbd5bf317de68f39db7e28e27b49dd1629cab7e4c0ff5bc83c962c33026e9fe4d4ad2dc96'
18             '4a129e0bb97f2c8aa09d6861077e732886e1d26573cc8698abfb03b55ebcf73c7ba1fbd6de25c5a4d2ce8cd271ebf07aa277d823d54640e6922ebc72a6aaba46')
20 prepare() {
21   cd "${srcdir}"/$pkgname-$pkgver
22   patch -Np0 -i "${srcdir}"/$pkgname-makefile.patch
23   patch -Np1 -i "${srcdir}"/$pkgname-1.5.7-fno-common.patch
26 build() {
27   cd "${srcdir}"/$pkgname-$pkgver
28   make
31 package () {
32   cd "${srcdir}"/$pkgname-$pkgver
34   install -d "${pkgdir}"/{etc,usr/bin,usr/share/man/man8,usr/share/licenses/foremost}
35   make DESTDIR="${pkgdir}" install
37 #license
38   ./foremost -V > "${pkgdir}"/usr/share/licenses/$pkgname/COPYRIGHT