[arch-commits] Commit in (5 files)

Jaroslav Lichtblau jlichtblau at archlinux.org
Mon Jun 1 18:55:10 UTC 2015


    Date: Monday, June 1, 2015 @ 20:55:10
  Author: jlichtblau
Revision: 134485

foremost package moved to [community]
with 151 votes in AUR

Added:
  foremost/
  foremost/repos/
  foremost/trunk/
  foremost/trunk/PKGBUILD
  foremost/trunk/foremost-makefile.patch

-------------------------+
 PKGBUILD                |   37 +++++++++++++++++++++++++++++++++++++
 foremost-makefile.patch |   23 +++++++++++++++++++++++
 2 files changed, 60 insertions(+)

Added: foremost/trunk/PKGBUILD
===================================================================
--- foremost/trunk/PKGBUILD	                        (rev 0)
+++ foremost/trunk/PKGBUILD	2015-06-01 18:55:10 UTC (rev 134485)
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 130102 2015-03-28 10:50:55Z jlichtblau $
+# Maintainer: Jaroslav Lichtblau <svetlemordy at archlinux.org>
+
+pkgname=foremost
+pkgver=1.5.7
+pkgrel=3
+pkgdesc="A console program to recover files based on their headers, footers, and internal data structures"
+arch=('i686' 'x86_64')
+url="http://foremost.sourceforge.net/"
+license=('custom')
+depends=('glibc')
+makedepends=('patch')
+backup=(etc/foremost.conf)
+source=(http://foremost.sourceforge.net/pkg/$pkgname-$pkgver.tar.gz
+        $pkgname-makefile.patch)
+sha256sums=('502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34'
+            '9073fe84c1355e6b1b1c16ccba06893ebd4d35590e45ecbcb4b89e02083a5848')
+
+prepare() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  patch -Np0 -i "${srcdir}"/$pkgname-makefile.patch
+}
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  make
+}
+
+package () {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  install -d "${pkgdir}"/{etc,usr/bin,usr/share/man/man8,usr/share/licenses/foremost}
+  make DESTDIR="${pkgdir}" install
+
+#license
+  ./foremost -V > "${pkgdir}"/usr/share/licenses/$pkgname/COPYRIGHT
+}

Added: foremost/trunk/foremost-makefile.patch
===================================================================
--- foremost/trunk/foremost-makefile.patch	                        (rev 0)
+++ foremost/trunk/foremost-makefile.patch	2015-06-01 18:55:10 UTC (rev 134485)
@@ -0,0 +1,23 @@
+--- Makefile.orig	2008-10-14 02:09:13.000000000 +0200
++++ Makefile	2008-10-14 18:31:38.000000000 +0200
+@@ -26,5 +26,5 @@
+ # Where we get installed
+-BIN = /usr/local/bin
+-MAN = /usr/share/man/man8
+-CONF= /usr/local/etc
++BIN = $(DESTDIR)/usr/bin
++MAN = $(DESTDIR)/usr/share/man/man8
++CONF= $(DESTDIR)/etc
+ # Setup for compiling and cross-compiling for Windows
+diff -uNr foremost-1.4.orig/config.c foremost-1.4/config.c
+--- config.c	2006-08-31 17:50:47.000000000 +0100
++++ config.c	2006-08-31 17:51:09.000000000 +0100
+@@ -288,7 +288,7 @@
+ #ifdef __WIN32
+ 		set_config_file(s, "/Program Files/foremost/foremost.conf");
+ #else
+-		set_config_file(s, "/usr/local/etc/foremost.conf");
++		set_config_file(s, "/etc/foremost.conf");
+ #endif
+ 		if ((f = fopen(get_config_file(s), "r")) == NULL)
+ 			{



More information about the arch-commits mailing list