-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
40 lines (33 loc) · 1.49 KB
/
PKGBUILD
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
# Maintainer: Oscar Shrimpton <[email protected]>
pkgname=autopsy
pkgver=4.17.0
pkgrel=1
pkgdesc='Digital forensics platform and graphical interface to The Sleuth Kit® and other digital forensic tools'
arch=(x86_64)
url='http://www.sleuthkit.org/autopsy/'
license=('Apache-2.0')
_skver=4.10.1
depends=(java-runtime=8 testdisk sleuthkit 'sleuthkit-java=4.10.1' java8-openjfx)
makedepends=()
optdepends=('opencv: media files (64-bit)'
'perl-parse-registry: regripper')
source=(https://github.com/sleuthkit/${pkgname}/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.zip Autopsy.desktop)
md5sums=('215827f4395006e535a6909841bf5957'
'ab18f5bf01a624774a6e4eccd21dd398')
package() {
cd "${pkgname}-${pkgver}"
mkdir -p $pkgdir/usr/share/${pkgname}
cp -r * $pkgdir/usr/share/${pkgname}/
# copy sleuthkit jar into autopsy
rm -f $pkgdir/usr/share/${pkgname}/${pkgname}/modules/ext/sleuthkit-${_skver}.jar
ln -s /usr/share/java/sleuthkit-${_skver}.jar $pkgdir/usr/share/${pkgname}/${pkgname}/modules/ext/sleuthkit-${_skver}.jar
# overwrite bin/autopsy with proper permissions
install -m755 bin/autopsy $pkgdir/usr/share/${pkgname}/bin/autopsy
# symlink to executable
mkdir -p $pkgdir/usr/bin
ln -sr $pkgdir/usr/share/${pkgname}/bin/autopsy $pkgdir/usr/bin/autopsy
mkdir -p $pkgdir/usr/share/pixmaps
cp icon.ico $pkgdir/usr/share/pixmaps/autopsy.ico
mkdir -p $pkgdir/usr/share/applications
install -Dm644 $srcdir/Autopsy.desktop $pkgdir/usr/share/applications
}