updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / hamsimanager-svn / PKGBUILD
blobdea26644ca2a01f1b019b965523576dbb3a07d8a
2 # Maintainer: J.W. Birdsong <jwbirdsongATgmailDOTcom>
3 pkgname=hamsimanager-svn
4 pkgver=222
5 pkgrel=1
6 pkgdesc="Hamsi Manager is a file manager,renamer,id3 tagger,information changer , tool."
7 arch=('i686' 'x86_64')
8 url="http://hamsimanager.sourceforge.net"
9 license=('GPL3')
10 depends=('qt' 'python2-qt' 'python2' 'mplayer')
11 makedepends=('subversion')
12 optdepends=('KDE'  'phonon:optional music player')
13 provides=(hamsimanager)
14 conflicts=(hamsimanager)
15 source=(HamsiManager.desktop hamsi.launcher)
17 md5sums=('603bd4ad05a3f2591424cd218950a6d6'
18          'ec4a30c4c399cd72f42b2975ab5c5314')
20 _svntrunk=https://hamsimanager.svn.sourceforge.net/svnroot/hamsimanager/trunk
21 _svnmod=hamsimanager
23 package () {
24 cd "$srcdir"
26   if [ -d $_svnmod/.svn ]; then
27     (cd $_svnmod && svn up -r $pkgver)
28   else
29     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30   fi
32   msg "SVN checkout done or server timeout"
34   rm -rf "$srcdir/$_svnmod-build"
35   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
36   cd "$srcdir/$_svnmod-build"
38 sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" $srcdir/$_svnmod-build/HamsiManager.py
40 install -d $pkgdir/{usr/bin/,usr/share/hamsi/}
42  mv $srcdir/$_svnmod-build/*  $pkgdir/usr/share/hamsi
43  # Install Desktop File
44     install -D -m644 $srcdir/HamsiManager.desktop \
45         $pkgdir/usr/share/applications/HamsiManager.desktop
46 # Install the Launcher
47     install -D -m755 $srcdir/hamsi.launcher \
48         $pkgdir/usr/bin/hamsi
50 # vim:set ts=2 sw=2 et: