1 # Contributor: Saro the_shade <the_shade14@yahoo.it>
7 pkgdesc="Software to be used with Motorola telephones based on the P2K platform. It allows file system manipulations with Motorola phones."
9 url="http://moto4lin.sourceforge.net/wiki/Main_Page"
11 depends=('qt3>=3.3' 'libusb' 'zlib' 'gcc')
12 makedepends=('subversion')
13 conflicts=('moto4lin')
16 _svntrunk="https://moto4lin.svn.sourceforge.net/svnroot/moto4lin/trunk/moto4lin"
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..."
30 cp -r $_svnmod $_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
38 make INSTALL_ROOT=${pkgdir} install || return 1
40 rm -rf ${srcdir}/$_svnmod-build