summaryrefslogtreecommitdiff
path: root/testing/kdepim-runtime
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-11 22:48:58 +0000
committerroot <root@rshg047.dnsready.net>2011-06-11 22:48:58 +0000
commite392819937e37aa7f33ba83bb3e23bb1ccabaa37 (patch)
tree973aad7153fa658dce8cc60d9fc78f41c2dfa578 /testing/kdepim-runtime
parent8bb6e3c7e5bec1adf2c819a1985de4d1f3347fb6 (diff)
Sat Jun 11 22:48:58 UTC 2011
Diffstat (limited to 'testing/kdepim-runtime')
-rw-r--r--testing/kdepim-runtime/PKGBUILD37
-rw-r--r--testing/kdepim-runtime/disable-l10n.patch10
-rw-r--r--testing/kdepim-runtime/kdepim-runtime.install13
3 files changed, 60 insertions, 0 deletions
diff --git a/testing/kdepim-runtime/PKGBUILD b/testing/kdepim-runtime/PKGBUILD
new file mode 100644
index 000000000..27a5401b3
--- /dev/null
+++ b/testing/kdepim-runtime/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 127098 2011-06-10 17:12:13Z andrea $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+pkgname=kdepim-runtime
+pkgver=4.6.0
+pkgrel=2
+pkgdesc='KDE PIM Runtime Environment'
+arch=('i686' 'x86_64')
+url='http://pim.kde.org'
+license=('GPL' 'LGPL' 'FDL')
+depends=('kdepimlibs' 'kdebase-runtime')
+makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/kdepim-${pkgver}/src/${pkgname}-${pkgver}.tar.bz2"
+ 'disable-l10n.patch')
+sha1sums=('2a2e29ba805ae2c94fa4da6371693e59575d3ed8'
+ 'd4f8c39911cf288973a30d4b71087906ebb26359')
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ patch -p1 -i "${srcdir}"/disable-l10n.patch
+
+ cd "${srcdir}"
+ mkdir build
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}"/build
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/testing/kdepim-runtime/disable-l10n.patch b/testing/kdepim-runtime/disable-l10n.patch
new file mode 100644
index 000000000..b49cd54a8
--- /dev/null
+++ b/testing/kdepim-runtime/disable-l10n.patch
@@ -0,0 +1,10 @@
+--- kdepim-runtime-4.6.0/CMakeLists.txt~ 2011-06-10 16:49:12.130427269 +0000
++++ kdepim-runtime-4.6.0/CMakeLists.txt 2011-06-10 16:56:52.871414776 +0000
+@@ -194,7 +194,3 @@
+ update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
+
+ macro_display_feature_log()
+-
+-find_package(Msgfmt REQUIRED)
+-find_package(Gettext REQUIRED)
+-add_subdirectory(po)
diff --git a/testing/kdepim-runtime/kdepim-runtime.install b/testing/kdepim-runtime/kdepim-runtime.install
new file mode 100644
index 000000000..c77e68041
--- /dev/null
+++ b/testing/kdepim-runtime/kdepim-runtime.install
@@ -0,0 +1,13 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-mime-database usr/share/mime &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}