Sorry, after reading my own posting I just realised there is a mistake. :-[
Here is the corrected version.
# $Id$
# Maintainer: David C. Rankin<drankinatty(a)gmail.com>
pkgbase=trinity
pkgname=trinity-tqtinterface
pkgver=1226875
pkgrel=1
arch=('i686' 'x86_64')
url="http://trinity.pearsoncomputing.net"
license=('GPL2')
groups=('trinity-bld')
pkgdesc="Trinity - tqtinterface"
depends=('python2-sip'
'trinity-qt3'
'trinity-pyqt3')
makedepends=('subversion' 'pkgconfig' 'cmake' 'autoconf')
provides=('trinity-tqtinterface')
conflicts=('trinity-tqtinterface')
replaces=('trinity-tqtinterface')
source=()
_svntrunk="svn://anonsvn.kde.org/home/kde/branches/trinity/dependencie…
_svnmod=tqtinterface
build() {
cd ${srcdir}
msg "Connecting to SVN server to update or checkout ${_svnmod}...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod}&& svn up)
[[ $? -eq 0 ]] || _co_failed=1
else
(svn co $_svntrunk ${_svnmod})
[[ $? -eq 0 ]] || _co_failed=1
fi
# if update or checkout failed - bail...
if [[ $_co_failed -ne 1 ]]; then
msg "SVN checkout of revision $pkgver -- Complete."
else
msg "SVN checkout of revision $pkgver -- Failed or server timeout."
exit 1
fi
msg "Setting PATH, CMAKE and Trinity Environment variables"
[[ ${PATH%%:*} =~ /opt/qt/bin ]] || export PATH=/opt/qt/bin:$PATH
cd ${srcdir}/${_svnmod}
#####################################
msg "Starting cmake..."
if [ ! -d ../../build ]
then
mkdir ../../build
fi
cd ../../build
if [ -f CMakeCache.txt ]
then
rm CMakeCache.txt
fi
###############################################
cmake ${srcdir}/${_svnmod} \
-DQT_VERSION=3 \
-DQT_PREFIX_DIR=/opt/qt \
-DCMAKE_INSTALL_PREFIX=/opt/qt \
-DCMAKE_SKIP_RPATH=ON || return 1
make
# cd ${srcdir}/${_svnmod}
}
package() {
msg "Packaging - $pkgname-$pkgver"
cd ../build
# cd ${_svnmod}
make DESTDIR="$pkgdir/" install
# include uic-tqt in package
cd ${srcdir}
mkdir -p ${pkgdir}/usr/bin
cp -Rp ${srcdir}/${_svnmod}/qtinterface/uic-tqt ${pkgdir}/usr/bin
# rm -r ${srcdir}/${_svnmod}
}
Castro.