updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / guymager-svn / PKGBUILD
blobf34f732d0863c583c1627ab7f61c55b102580bec
1 # Maintainer: yannsen <ynnsen@gmail.com>
2 pkgname=guymager-svn
3 pkgver=9
4 pkgrel=1
5 pkgdesc="A forensic imager for media acquisition"
6 arch=('i686' 'x86_64')
7 url="http://guymager.sourceforge.net/"
8 license=('GPL')
9 depends=(libewf libguytools)
10 makedepends=(subversion)
11 provides=(guymager)
12 conflicts=(guymager)
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"
17 _svnmod=guymager
19 build() {
20   cd $startdir/src
21   msg "Connecting to SVN server...."
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
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"
33   fi
35   svn export $_svnmod $_svnmod-build
36   cd $_svnmod-build 
37   patch -Np0 < $srcdir/guymager.pro.patch || return 1
38   qmake guymager.pro
39   patch -Np0 < $srcdir/main.cpp.patch || return 1
40   make || 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/