updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / phinix-svn / PKGBUILD
blob718dad7562de24c28c21b54112dec53c14dbb28c
1 pkgname=phinix-svn
2 pkgver=75
3 pkgrel=1
4 pkgdesc="Just an audio player"
5 arch=('i686' 'x86_64')
6 url=('http://phinix.sourceforge.net/')
7 license=('GPL')
8 depends=('qt' 'phonon')
9 makedepends=('make' 'subversion')
10 source=('phinix.desktop')
11 noextract=()
12 md5sums=('7ab234e3d97ebe71b6c64b8bb859552b')
14 _svntrunk=https://svn.sourceforge.net/svnroot/phinix/trunk/
15 _svnmod=phinix
17 build() {
18         cd $srcdir
20         # Gets lasts svn version
21         if [ -d $_svnmod/.svn ]; then
22                 (cd $svnmod && svn up)
23         else
24                 svn co $_svntrunk --config-dir ./ $_svnmod
25         fi
27         cd $_svnmod
29         # Compilation
30         qmake || return 1
31         make || return 1
32         
33         # install
34         mkdir -p $startdir/pkg/usr/share/applications/
35         install -D -m644 $startdir/phinix.desktop $startdir/pkg/usr/share/applications/
36         
37         mkdir -p $startdir/pkg/usr/bin
38         cp $startdir/src/phinix/bin/Phinix $startdir/pkg/usr/bin/phinix