summaryrefslogtreecommitdiffstats
path: root/arch/tde-core/tde-tqtinterface
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tde-core/tde-tqtinterface')
-rw-r--r--arch/tde-core/tde-tqtinterface/PKGBUILD59
-rw-r--r--arch/tde-core/tde-tqtinterface/tqtpc-location.patch11
-rw-r--r--arch/tde-core/tde-tqtinterface/trinity-tqtinterface.install12
3 files changed, 82 insertions, 0 deletions
diff --git a/arch/tde-core/tde-tqtinterface/PKGBUILD b/arch/tde-core/tde-tqtinterface/PKGBUILD
new file mode 100644
index 000000000..8d6534b6e
--- /dev/null
+++ b/arch/tde-core/tde-tqtinterface/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Michael Manley <[email protected]>
+# Contributor: Pawel 'l0ner' Soltys <[email protected]>
+# Contributor: Calvin Morrison <[email protected]>
+# Contributor: David C. Rankin <drankinatty at gmail dot com>
+
+pkgname=tde-tqtinterface
+pkgver=14.0.5
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://trinity.pearsoncomputing.net"
+license=('GPL2')
+groups=('tde-core')
+pkgdesc="TQt interface for the TDE desktop"
+depends=('tde-tqt3' 'glu')
+makedepends=('pkgconfig' 'cmake')
+provides=('tqtinterface')
+conflicts=('kdemod3-tqtinterface' 'trinity-tqtinterface')
+replaces=('trinity-tqtinterface')
+# makeopts=('libtool' '!emptydirs' '!strip')
+options=('staticlibs' 'libtool' '!emptydirs' '!strip')
+
+source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/dependencies/tqtinterface-R${pkgver}.tar.bz2"
+ 'tqtpc-location.patch')
+
+md5sums=('b1d086bbcc0cd62dfbb5833ff0af71a2'
+ 'c15745c944d98cb7c4cb553f0ca421d4')
+
+install='trinity-tqtinterface.install'
+
+_prefix=/usr
+_tdedir=/opt/trinity
+
+build() {
+ cd $srcdir
+ msg "Creating out-of-source build directory: ${srcdir}/build"
+ mkdir -p build
+ cd build
+
+ msg "Starting cmake..."
+ cmake "../dependencies/tqtinterface" \
+ -DCMAKE_INSTALL_PREFIX=${_prefix} \
+ -DQT_PREFIX_DIR=${QTDIR} \
+ -DQT_INCLUDE_DIR=${QTDIR}/include \
+ -DMOC_EXECUTABLE=${QTDIR}/bin/moc \
+ -DQT_VERSION=3
+
+ make $NUMJOBS
+}
+
+package() {
+ msg "Packaging - $pkgname-$pkgver"
+ cd ${srcdir}/build
+ make -j1 DESTDIR="${pkgdir}" install
+
+ # Create and install ld.so.conf.d file
+ install -d -m755 $pkgdir/etc/ld.so.conf.d/
+ echo ${_tdedir}/lib > $pkgdir/etc/ld.so.conf.d/trinity.conf
+ echo ${_tdedir}/lib/trinity >> $pkgdir/etc/ld.so.conf.d/trinity.conf
+}
diff --git a/arch/tde-core/tde-tqtinterface/tqtpc-location.patch b/arch/tde-core/tde-tqtinterface/tqtpc-location.patch
new file mode 100644
index 000000000..f256e925c
--- /dev/null
+++ b/arch/tde-core/tde-tqtinterface/tqtpc-location.patch
@@ -0,0 +1,11 @@
+--- dependencies/tqtinterface/CMakeLists.txt 2011-03-28 00:12:24.000000000 +0200
++++ dependencies/tqtinterface/CMakeLists.txt.new 2012-01-29 12:15:16.000000000 +0100
+@@ -35,7 +35,7 @@
+ tde_setup_install_path( BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" )
+ tde_setup_install_path( LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" )
+ tde_setup_install_path( INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/tqt" )
+-tde_setup_install_path( PKGCONFIG_INSTALL_DIR "/usr/lib${LIB_SUFFIX}/pkgconfig" )
++tde_setup_install_path( PKGCONFIG_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig" )
+
+
+ ##### tqtinterface sources ######################
diff --git a/arch/tde-core/tde-tqtinterface/trinity-tqtinterface.install b/arch/tde-core/tde-tqtinterface/trinity-tqtinterface.install
new file mode 100644
index 000000000..2a8dc4c98
--- /dev/null
+++ b/arch/tde-core/tde-tqtinterface/trinity-tqtinterface.install
@@ -0,0 +1,12 @@
+post_install() {
+ ldconfig &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
+