You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.7 KiB
59 lines
1.7 KiB
# Maintainer: Pawel 'l0ner' Soltys <pwslts@gmail.com>
|
|
# Contributor: Calvin Morrison <mutantturkey@gmail.com>
|
|
|
|
pkgname=trinity-kdegraphics
|
|
pkgver=3513
|
|
pkgrel=2
|
|
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')
|
|
|
|
build() {
|
|
msg "Setting PATH, CMAKE and Trinity Environment variables"
|
|
[ "$QTDIR" = "" ] && . /etc/profile.d/qt3.sh
|
|
[ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh
|
|
|
|
msg "Patching..."
|
|
patch -p0 -i ${srcdir}/ksnapshot.patch
|
|
|
|
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=${TDEDIR} \
|
|
-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}
|
|
}
|