summaryrefslogtreecommitdiff
path: root/staging/kdepim-runtime
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-07 04:59:01 +0000
committerroot <root@rshg047.dnsready.net>2011-07-07 04:59:01 +0000
commit75b1bc45a0e39074e42b6a26a9f72ac2e049bdc1 (patch)
tree9bd2c1fbe4c9a0fd5ede1a5667137113d48d2c69 /staging/kdepim-runtime
parenta135f8563fea25509d9a92db7c03ac3d08230a3f (diff)
Thu Jul 7 04:59:01 UTC 2011
Diffstat (limited to 'staging/kdepim-runtime')
-rw-r--r--staging/kdepim-runtime/PKGBUILD37
-rw-r--r--staging/kdepim-runtime/disable-l10n.patch10
-rw-r--r--staging/kdepim-runtime/kdepim-runtime.install13
3 files changed, 60 insertions, 0 deletions
diff --git a/staging/kdepim-runtime/PKGBUILD b/staging/kdepim-runtime/PKGBUILD
new file mode 100644
index 000000000..c53892f01
--- /dev/null
+++ b/staging/kdepim-runtime/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 130494 2011-07-06 23:34:26Z andrea $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+pkgname=kdepim-runtime
+pkgver=4.6.1
+pkgrel=1
+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=('e416ffd0142c720a779b4eb2e4a841ca751efdce'
+ '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/staging/kdepim-runtime/disable-l10n.patch b/staging/kdepim-runtime/disable-l10n.patch
new file mode 100644
index 000000000..b49cd54a8
--- /dev/null
+++ b/staging/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/staging/kdepim-runtime/kdepim-runtime.install b/staging/kdepim-runtime/kdepim-runtime.install
new file mode 100644
index 000000000..c77e68041
--- /dev/null
+++ b/staging/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
+}