updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / moto4lin-svn / PKGBUILD
blob5d53a22f6897cc1c05b4d352e9aab3ccc5ca2938
1 # Contributor: Saro the_shade <the_shade14@yahoo.it>                                                                                         
2 # Thanks to Bash
4 pkgname=moto4lin-svn
5 pkgver=87           
6 pkgrel=1            
7 pkgdesc="Software to be used with Motorola telephones based on the P2K platform. It allows file system manipulations with Motorola phones."
8 arch=('i686' 'x86_64')                                                                                                                     
9 url="http://moto4lin.sourceforge.net/wiki/Main_Page"                                                                                       
10 license=('GPL2')                                                                                                                           
11 depends=('qt3>=3.3' 'libusb' 'zlib' 'gcc')                                                                                                 
12 makedepends=('subversion')                                                                                                                 
13 conflicts=('moto4lin')                                                                                                                     
14 provides=('moto4lin')                                                                                                                      
16 _svntrunk="https://moto4lin.svn.sourceforge.net/svnroot/moto4lin/trunk/moto4lin"
17 _svnmod=moto4lin                                                                
19 build() {
20   cd ${srcdir}
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..."                   
30   cp -r $_svnmod $_svnmod-build            
31   cd $_svnmod-build                        
33   . /etc/profile.d/qt3.sh
35   /opt/qt/bin/qmake -unix -o Makefile moto4lin.pro
36   /opt/qt/bin/qmake -unix -o moto_ui/Makefile moto_ui/moto_ui.pro
37   make || return 1
38   make INSTALL_ROOT=${pkgdir} install || return 1
40   rm -rf ${srcdir}/$_svnmod-build