1 # Autopsy: Installer: Arch
2 # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com> & daschu117
3 # Maintainer: m4xm4n <max@maxfierke.com>
8 pkgdesc="The Autopsy Forensic Browser is a GUI for The Sleuth Kit."
10 url="http://www.sleuthkit.org/${pkgname}"
12 depends=("perl" "sleuthkit")
15 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz ${pkgname}.pl)
16 md5sums=('4ed18aa9f79453d74957b5db220d0d59' '89955b26bd0d09dc906bbe0a246124c6')
19 cd ${srcdir}/${pkgname}-${pkgver}
21 echo "#!/usr/bin/perl -wT" > ${pkgname}
22 echo "use lib '/usr/lib/${pkgname}/';" >> ${pkgname}
23 echo "use lib '/usr/lib/${pkgname}/lib/';" >> ${pkgname}
24 cat base/${pkgname}.base >> ${pkgname} || return 1
25 sed -i 's:conf.pl:/etc/autopsy.pl:' ${pkgname} lib/Main.pm || return 1
27 mkdir -p ${pkgdir}/usr/lib/${pkgname}
28 cp ${pkgname} ${pkgdir}/usr/lib/${pkgname}/
29 chmod +x ${pkgdir}/usr/lib/${pkgname}/${pkgname}
31 mkdir -p ${pkgdir}/etc
32 cp ${startdir}/${pkgname}.pl ${pkgdir}/etc
34 mkdir -p ${pkgdir}/usr/lib/${pkgname}/help
35 cp -r help ${pkgdir}/usr/lib/${pkgname}/
37 mkdir -p ${pkgdir}/usr/lib/${pkgname}/lib
38 cp -r lib ${pkgdir}/usr/lib/${pkgname}/
40 mkdir -p ${pkgdir}/usr/man/man1
41 cp -r man ${pkgdir}/usr/
43 mkdir -p ${pkgdir}/usr/lib/${pkgname}/pict
44 cp -r pict ${pkgdir}/usr/lib/${pkgname}/
46 mkdir -p ${pkgdir}/usr/bin
48 ln -s /usr/lib/${pkgname}/${pkgname} ${pkgname}