summaryrefslogtreecommitdiff
path: root/libre/kdenetwork-kopete
diff options
context:
space:
mode:
Diffstat (limited to 'libre/kdenetwork-kopete')
-rw-r--r--libre/kdenetwork-kopete/PKGBUILD46
-rw-r--r--libre/kdenetwork-kopete/kdenetwork-kopete.install12
-rw-r--r--libre/kdenetwork-kopete/kdenetwork.install11
3 files changed, 69 insertions, 0 deletions
diff --git a/libre/kdenetwork-kopete/PKGBUILD b/libre/kdenetwork-kopete/PKGBUILD
new file mode 100644
index 000000000..eac942b9c
--- /dev/null
+++ b/libre/kdenetwork-kopete/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 217314 2014-07-18 11:45:55Z svenstaro $
+# Maintainer (Arch): Andrea Scarpino <andrea@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=kdenetwork-kopete
+pkgver=4.14.0
+pkgrel=1.parabola1
+pkgdesc='Instant Messenger, without nonfree Skype support'
+url='http://kde.org/applications/internet/kopete/'
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde' 'kdenetwork')
+replaces=(${pkgname}-libre)
+conflicts=(${pkgname}-libre)
+depends=('kdebase-runtime' 'kdepimlibs' 'qca-ossl' 'libotr' 'libidn'
+ 'qimageblitz' 'libgadu' 'mediastreamer' 'jsoncpp')
+makedepends=('cmake' 'automoc4' 'boost' 'kdepim-libkdepim')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/${pkgver}/src/kopete-${pkgver}.tar.xz")
+sha1sums=('bd247af3b25650bedcdb983fc285469dcacea964')
+
+prepare() {
+ cd kopete-${pkgver}
+ # Based on http://bzr.trisquel.info/package-helpers/trunk/annotate/head%3A/helpers/natty/make-kdenetwork, revision 34.
+ rm -rv protocols/skype
+ sed 's/, Skype//' -i doc/index.docbook
+ cd ..
+ mkdir build
+}
+
+build() {
+ cd build
+ cmake ../kopete-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DKDE4_BUILD_TESTS=OFF \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DWITH_Libmsn=OFF \
+ -DWITH_skype=OFF
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR=$pkgdir install
+}
diff --git a/libre/kdenetwork-kopete/kdenetwork-kopete.install b/libre/kdenetwork-kopete/kdenetwork-kopete.install
new file mode 100644
index 000000000..5495fb1b5
--- /dev/null
+++ b/libre/kdenetwork-kopete/kdenetwork-kopete.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/libre/kdenetwork-kopete/kdenetwork.install b/libre/kdenetwork-kopete/kdenetwork.install
new file mode 100644
index 000000000..e70c054ec
--- /dev/null
+++ b/libre/kdenetwork-kopete/kdenetwork.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}