# Maintainer: Pawel 'l0ner' Soltys # Contributor: Calvin Morrison pkgname=trinity-kdegraphics pkgver=3513 pkgrel=1.0 arch=('i686' 'x86_64') url='http://www.trinitydesktop.com' license=('GPL') groups=('trinity-extras') kgdesc="Trinity graphics applications and tools" depends=('trinity-kdebase' 'libart-lgpl' 'libgphoto2' 'libtiff' 'openexr' 't1lib' 'imlib' 'sane' 'lcms' 'poppler') makedepends=('pkgconfig' 'cmake' 'imake' 'fribidi') # 'poppler-qt' optdepends=('xscreensaver: Screen saver and locker for the X Window System') provides=('trinity-kdegraphics') conflicts=('trinity-kdegraphics') replaces=('trinity-kdegraphics') options=('libtool' '!strip') source=('http://mirror.ets.kth.se/trinity/releases/3.5.13/kdegraphics-3.5.13.tar.gz' 'ksnapshot.patch') md5sums=('a75c254cd1060343cd04c6744bce6798' '635ed9478cb3edde4fda84f3bac85438') _prefix="/opt/trinity" build() { msg "Patching..." patch -p0 -i ${srcdir}/ksnapshot.patch msg "Setting PATH, CMAKE and Trinity Environment variables" . /etc/profile.d/qt3.sh export CMAKE_PREFIX_PATH=/opt/qt:${_prefix} export CMAKE_INCLUDE_PATH=/opt/qt/include:/opt/qt/include/tqt:/usr/include/dbus-1.0:/opt/trinity/include:/opt/trinity/include/libkrandr:/usr/include:/usr/include/lcms export LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:/usr/lib:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig cd $srcdir msg "Creating out-of-source build directory: ${srcdir}/build" mkdir -p build cd build msg "Starting cmake..." cmake ${srcdir}/kdegraphics \ -DCMAKE_INSTALL_PREFIX=${_prefix} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DQT_VERSION=3 \ -DCMAKE_CXX_FLAGS="-fpermissive" \ -DWITH_T1LIB=ON \ -DWITH_LIBPAPER=ON \ -DWITH_TIFF=ON \ -DWITH_OPENEXR=ON \ -DWITH_PDF=ON \ -DBUILD_ALL=ON make # -DWITH_PDF=ON \ (waiting on poppler-qt3) } package() { msg "Packaging - $pkgname-$pkgver" cd ${srcdir}/build make DESTDIR="$pkgdir" install cd ${startdir} }