diff options
Diffstat (limited to 'arch/3.5.13/trinity-base/trinity-kdelibs')
3 files changed, 124 insertions, 0 deletions
diff --git a/arch/3.5.13/trinity-base/trinity-kdelibs/PKGBUILD b/arch/3.5.13/trinity-base/trinity-kdelibs/PKGBUILD new file mode 100644 index 000000000..aa3ba2e80 --- /dev/null +++ b/arch/3.5.13/trinity-base/trinity-kdelibs/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: Pawel 'l0ner' Soltys <pwslts@gmail.com> +# Contributor: Calvin Morrison <mutantturkey@gmail.com> + +pkgname=trinity-kdelibs +pkgver=3513 +pkgrel=5 +arch=('i686' 'x86_64') +url='http://www.trinitydesktop.org' +license=('GPL') +groups=('trinity-base') +pkgdesc="Trinity DE core libraries" +depends=('trinity-arts' + 'libxslt' 'libidn' 'libart-lgpl' 'jasper' + 'libxcomposite' 'libcups' 'libutempter' + 'openexr' 'aspell' 'hspell') + # taglib openssl libtiff avahi libltdl pam-krb5 libical + # libutempter - needs to be installed from aur +makedepends=('pkgconfig' 'cmake') +provides=('kdelibs3') +conflicts=('kdemod3-kdelibs' 'kdelibs3') +replaces=('trinity-kdelibs') +options=('libtool' '!makeflags') +source=('http://mirror.ets.kth.se/trinity/releases/3.5.13/kdelibs-3.5.13.tar.gz' 'docpath.patch') +md5sums=('f62eefb63b4ba2141b4c576f859806dd' + 'd20badec5a1a7f01f0c957db8b9b8def') + +install='trinity-kdelibs.install' + +build() { + msg "Setting PATH, CMAKE and Trinity Environment variables" + # Source the QT and TDE profile + [ "$QTDIR" = "" ] && . /etc/profile.d/qt3.sh + [ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh + + # compiles without exporting this, since we have profiles + #export CMAKE_PREFIX_PATH=${QTDIR}:${TDEDIR} + #export PATH=$PATH:${TDEDIR}/bin + #export CMAKE_INCLUDE_PATH=/usr/include/dbus-1.0:${TDEDIR}/bin + #export LD_LIBRARY_PATH=${TDEDIR}/lib:${QTDIR}/lib:${TDEDIR}/lib/trinity:$LD_LIBRARY_PATH + + msg "Patching..." + patch -N -d ${srcdir} -p0 < ${srcdir}/docpath.patch + + cd $srcdir + msg "Creating out-of-source build directory: ${srcdir}/${_builddir}" + mkdir -p build + cd build + + msg "Starting cmake..." + cmake ${srcdir}/kdelibs \ + -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ + -DCMAKE_VERBOSE_MAKEFILE=OFF \ + -DWITH_ARTS=ON \ + -DWITH_ALSA=ON \ + -DWITH_LIBART=ON \ + -DWITH_LIBIDN=ON \ + -DWITH_SSL=ON \ + -DWITH_CUPS=ON \ + -DWITH_LUA=OFF \ + -DWITH_TIFF=ON \ + -DWITH_JASPER=ON \ + -DWITH_OPENEXR=ON \ + -DWITH_UTEMPTER=ON \ + -DWITH_AVAHI=ON \ + -DWITH_ASPELL=ON \ + -DWITH_HSPELL=ON + + msg "Building - $pkgname..." + make +} + +package() { + msg "Packaging - $pkgname-$pkgver" + cd ${srcdir}/build + + make DESTDIR="$pkgdir" install +} diff --git a/arch/3.5.13/trinity-base/trinity-kdelibs/docpath.patch b/arch/3.5.13/trinity-base/trinity-kdelibs/docpath.patch new file mode 100644 index 000000000..aeb5e95f1 --- /dev/null +++ b/arch/3.5.13/trinity-base/trinity-kdelibs/docpath.patch @@ -0,0 +1,36 @@ +diff -r -u kdelibs/admin/debianrules src/kdelibs/admin/debianrules +--- kdelibs/admin/debianrules 2011-08-21 06:15:36.000000000 +0200 ++++ src/kdelibs/admin/debianrules 2012-01-04 15:28:20.000000000 +0100 +@@ -16,7 +16,7 @@ + + $kde_cgidir = "$kde_prefix/lib/cgi-bin"; + $kde_confdir = "$sysconfdir/trinity"; +-$kde_htmldir = "$kde_prefix/share/doc/kde/HTML"; ++$kde_htmldir = "$kde_prefix/share/doc/HTML"; + + if (defined $ENV{DEB_BUILD_OPTIONS} && + $ENV{DEB_BUILD_OPTIONS} =~ /\bnostrip\b/) { +diff -r -u kdelibs/cmake/modules/TDESetupPaths.cmake src/kdelibs/cmake/modules/TDESetupPaths.cmake +--- kdelibs/cmake/modules/TDESetupPaths.cmake 2011-08-21 06:15:37.000000000 +0200 ++++ src/kdelibs/cmake/modules/TDESetupPaths.cmake 2012-01-04 15:28:49.000000000 +0100 +@@ -41,7 +41,7 @@ + _tde_internal_setup_path( PLUGIN_INSTALL_DIR "${LIB_INSTALL_DIR}/trinity" "The subdirectory relative to the install prefix where plugins will be installed (default is ${LIB_INSTALL_DIR}/trinity)" ) + _tde_internal_setup_path( CONFIG_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/config" "The config file install dir" ) + _tde_internal_setup_path( DATA_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/apps" "The parent directory where applications can install their data" ) +- _tde_internal_setup_path( HTML_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/doc/kde/HTML" "The HTML install dir for documentation" ) ++ _tde_internal_setup_path( HTML_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/doc/HTML" "The HTML install dir for documentation" ) + _tde_internal_setup_path( ICON_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/icons" "The icon install dir (default ${SHARE_INSTALL_PREFIX}/share/icons/)" ) + _tde_internal_setup_path( KCFG_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/config.kcfg" "The install dir for kconfig files" ) + _tde_internal_setup_path( LOCALE_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/locale" "The install dir for translations" ) +diff -r -u kdelibs/kdecore/kstandarddirs.cpp src/kdelibs/kdecore/kstandarddirs.cpp +--- kdelibs/kdecore/kstandarddirs.cpp 2011-08-21 06:15:32.000000000 +0200 ++++ src/kdelibs/kdecore/kstandarddirs.cpp 2012-01-04 15:30:24.000000000 +0100 +@@ -1030,7 +1030,7 @@ + if (!strcmp(type, "html-bundle")) + return "share/doc-bundle/HTML/"; + if (!strcmp(type, "html")) +- return "share/doc/kde/HTML/"; ++ return "share/doc/HTML/"; + if (!strcmp(type, "icon")) + return "share/icons/"; + if (!strcmp(type, "config")) diff --git a/arch/3.5.13/trinity-base/trinity-kdelibs/trinity-kdelibs.install b/arch/3.5.13/trinity-base/trinity-kdelibs/trinity-kdelibs.install new file mode 100644 index 000000000..e2db661ac --- /dev/null +++ b/arch/3.5.13/trinity-base/trinity-kdelibs/trinity-kdelibs.install @@ -0,0 +1,11 @@ +post_install() { + ldconfig &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |