1 # Maintainer: yannsen <ynnsen@gmail.com>
5 pkgdesc="A forensic imager for media acquisition"
7 url="http://guymager.sourceforge.net/"
9 depends=(libewf libguytools)
10 makedepends=(subversion)
13 source=(main.cpp.patch guymager.pro.patch)
14 md5sums=('5903f736a914d4e90804a1b176a68f64'
15 '3acb90e00a228205fa081c43c0927e15')
16 _svntrunk="https://guymager.svn.sourceforge.net/svnroot/guymager/tags/guymager-0.5.3beta1"
21 msg "Connecting to SVN server...."
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28 msg "SVN checkout done or server timeout"
29 msg "Starting make..."
31 if [ -d "${srcdir}/${_svnmod}-build" ]; then
32 rm -rf "${srcdir}/${_svnmod}-build"
35 svn export $_svnmod $_svnmod-build
37 patch -Np0 < $srcdir/guymager.pro.patch || return 1
39 patch -Np0 < $srcdir/main.cpp.patch || return 1
41 lrelease guymager.pro || return 1
42 install -d $pkgdir/etc/guymager/
43 install -m755 $srcdir/$_svnmod-build/guymager.cfg $pkgdir/etc/guymager/
44 install -m755 $pkgdir/etc/guymager/local.cfg
45 install -d $pkgdir/usr/bin
46 install -m755 $srcdir/$_svnmod-build/guymager $pkgdir/usr/bin
47 install -d $pkgdir/usr/share/guymager/
48 install -m755 $srcdir/$_svnmod-build/splash.png $pkgdir/usr/share/guymager/
49 cp $srcdir/$_svnmod-build/guymager_*.qm $pkgdir/usr/share/guymager/