summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122021-06-12 13:20:47 +0200
committerwillemw122021-06-12 13:20:47 +0200
commit71493590b8a171690f0b7791d8f4a0a84f323cc9 (patch)
tree45c6494546848bbba59b08f0a539f7e9202fe5d8
parent680043a8d6e7de1a4f4bb2672a20de3c602a363c (diff)
downloadaur-71493590b8a171690f0b7791d8f4a0a84f323cc9.tar.gz
Fix compile error by adding --std=c++14
Update arch Minor edit in sed
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
2 files changed, 6 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8512d5af412..c336294b636 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,8 @@
pkgbase = scalpel-git
pkgdesc = Recover files based on their headers, footers and internal data structures. This program is based on Foremost.
- pkgver = r24.47815c2
+ pkgver = r31.35e1367
pkgrel = 1
url = https://github.com/sleuthkit/scalpel
- arch = i686
arch = x86_64
license = Apache
makedepends = git
@@ -14,4 +13,3 @@ pkgbase = scalpel-git
md5sums = SKIP
pkgname = scalpel-git
-
diff --git a/PKGBUILD b/PKGBUILD
index a432e02ca81..f00c8c70a83 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,10 +4,10 @@
# Contributor: Adam Wolk <netprobe at gmail dot com>
pkgname=scalpel-git
-pkgver=r24.47815c2
+pkgver=r31.35e1367
pkgrel=1
pkgdesc="Recover files based on their headers, footers and internal data structures. This program is based on Foremost."
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="https://github.com/sleuthkit/scalpel"
license=('Apache')
depends=('tre')
@@ -24,19 +24,19 @@ pkgver() {
prepare() {
cd $pkgname
- sed -i 's|#define[ \t]*SCALPEL_DEFAULT_CONFIG_FILE[ \t]*"scalpel.conf"|#define SCALPEL_DEFAULT_CONFIG_FILE "/etc/scalpel/scalpel.conf"|' src/scalpel.h
+ sed -i 's|#define\s*SCALPEL_DEFAULT_CONFIG_FILE\s.*"scalpel.conf"|#define SCALPEL_DEFAULT_CONFIG_FILE "/etc/scalpel/scalpel.conf"|' src/scalpel.h
}
build() {
cd $pkgname
./bootstrap
- ./configure --with-pic --prefix=/usr
+ ./configure --with-pic --prefix=/usr CXXFLAGS="${CXXFLAGS} --std=c++14"
make
}
package() {
cd $pkgname
- make DESTDIR="$pkgdir" install
install -Dm644 scalpel.conf "$pkgdir/etc/scalpel/scalpel.conf"
+ make DESTDIR="$pkgdir" install
}