aboutsummaryrefslogtreecommitdiffstats
path: root/community/sleuthkit/APKBUILD
blob: 6831c50a5005eef08ac4ae33f7ac374348ec6e00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=sleuthkit
pkgver=4.6.1
pkgrel=0
pkgdesc="File system and media management forensic analysis tools"
arch="all"
license="custom"
depends="perl"
url="http://www.sleuthkit.org/sleuthkit"
depends_dev="libewf-dev sqlite-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
options="libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/sleuthkit/sleuthkit/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz
	30_fix-manpages.patch
	40_no_static_ldflags.patch
	50_disable_ant_clean.patch"

builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$builddir"
	sed -i 's/daddr_t/uint32_t/g' tools/srchtools/sigfind.cpp
	autoreconf -fi
	default_prepare
}

build() {
	cd "$builddir"
	# https://github.com/sleuthkit/sleuthkit/issues/642
	export CFLAGS="$CFLAGS -DHAVE_LIBEWF_V2_API -Dlibewf_handle_read_random=libewf_handle_read_buffer_at_offset"
	./configure --prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -d "$pkgdir"/usr/share/licenses/$pkgname
	install -Dm0644 licenses/* "$pkgdir"/usr/share/licenses/$pkgname

}

sha512sums="0de1e2d644d47033643a5348564d5680ed478dd1a4ce2145fd834ccc237063494370a4fd294708512d5bc21755f5fe6cd97757bcb0b6d3cd643a300a980b2fbc  sleuthkit-4.6.1.tar.gz
4b68367bff62c731c09ab9a95f810b11562f0942021825226ca8d5e846e54c64004f77ac587ea0377bcb5c50c9dcb33dba1caa8cffd717076cc13c9931dd2c9c  30_fix-manpages.patch
e0421b2fc4bb1d04d3bdb13805d060b386f700586d9e33728185eaff26eef14d5fdbf89979fb5d898dfeee7467f891b5d3c33441f9cb35af5f93d3d576e7cc26  40_no_static_ldflags.patch
cb0d17840f1b4570da1ee0d092f8716a7e073463658d4a7b1cddb74058c5eccf316fcbd2e7c5fba3af0f0adaaabe4e395bd5a41aa1438be615edacb8c6efd89d  50_disable_ant_clean.patch"