From 588fad3f4ac69a1234341ffd3c2b3cd2b1d020c2 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 3 Sep 2014 06:57:55 -0300 Subject: kde packages: remove libre and nonprism suffixes, add complex pkgrel --- nonprism/kdenetwork-kopete/PKGBUILD | 66 +++++++++++++ .../kdenetwork-kopete/kdenetwork-kopete.install | 12 +++ nonprism/kdenetwork-kopete/kdenetwork.install | 11 +++ nonprism/kdenetwork-kopete/libre-nonprism.patch | 110 +++++++++++++++++++++ 4 files changed, 199 insertions(+) create mode 100644 nonprism/kdenetwork-kopete/PKGBUILD create mode 100644 nonprism/kdenetwork-kopete/kdenetwork-kopete.install create mode 100644 nonprism/kdenetwork-kopete/kdenetwork.install create mode 100644 nonprism/kdenetwork-kopete/libre-nonprism.patch (limited to 'nonprism/kdenetwork-kopete') diff --git a/nonprism/kdenetwork-kopete/PKGBUILD b/nonprism/kdenetwork-kopete/PKGBUILD new file mode 100644 index 000000000..f9bee6208 --- /dev/null +++ b/nonprism/kdenetwork-kopete/PKGBUILD @@ -0,0 +1,66 @@ +# $Id: PKGBUILD 217314 2014-07-18 11:45:55Z svenstaro $ +# Maintainer (Arch): Andrea Scarpino +# Maintainer: André Silva + +pkgname=kdenetwork-kopete +pkgver=4.14.0 +pkgrel=1.parabola1.nonprism1 +pkgdesc='Instant Messenger, without nonfree Skype support and support for unsafe and dangerous for privacy protocols' +url='http://kde.org/applications/internet/kopete/' +arch=('i686' 'x86_64' 'mips64el') +license=('GPL' 'LGPL' 'FDL') +groups=('kde' 'kdenetwork') +replaces=(${pkgname}-libre ${pkgname}-libre-nonprism) +conflicts=(${pkgname}-libre ${pkgname}-libre-nonprism) +depends=('kdebase-runtime' 'kdepimlibs' 'qca-ossl' 'libotr' 'libidn' + 'qimageblitz' 'mediastreamer' 'jsoncpp') +makedepends=('cmake' 'automoc4' 'boost' 'kdepim-libkdepim') +install=${pkgname}.install +source=("http://download.kde.org/stable/${pkgver}/src/kopete-${pkgver}.tar.xz" + 'libre-nonprism.patch') +sha1sums=('bd247af3b25650bedcdb983fc285469dcacea964' + 'ddde6ed0b6f281512dc12cb80f712f33c6932c92') + +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 + # remove unsafe/dangerous services + rm -rv protocols/oscar + rm -rv protocols/yahoo + rm -rv protocols/qq + rm -rv protocols/groupwise + rm -rv protocols/gadu + rm -rv protocols/wlm + rm -rv protocols/meanwhile + patch -p1 -i "${srcdir}"/libre-nonprism.patch + 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_Libgadu=OFF \ + -DWITH_skype=OFF \ + -DWITH_oscar=OFF \ + -DWITH_yahoo=OFF \ + -DWITH_qq=OFF \ + -DWITH_groupwise=OFF \ + -DWITH_gadu=OFF \ + -DWITH_GOOGLETALK=OFF \ + -DWITH_wlm=OFF \ + -DWITH_WLM_MEDIASTREAMER=OFF \ + -DWITH_meanwhile=OFF + make +} + +package() { + cd build + make DESTDIR=$pkgdir install +} diff --git a/nonprism/kdenetwork-kopete/kdenetwork-kopete.install b/nonprism/kdenetwork-kopete/kdenetwork-kopete.install new file mode 100644 index 000000000..5495fb1b5 --- /dev/null +++ b/nonprism/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/nonprism/kdenetwork-kopete/kdenetwork.install b/nonprism/kdenetwork-kopete/kdenetwork.install new file mode 100644 index 000000000..e70c054ec --- /dev/null +++ b/nonprism/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 +} diff --git a/nonprism/kdenetwork-kopete/libre-nonprism.patch b/nonprism/kdenetwork-kopete/libre-nonprism.patch new file mode 100644 index 000000000..6d73766cc --- /dev/null +++ b/nonprism/kdenetwork-kopete/libre-nonprism.patch @@ -0,0 +1,110 @@ +diff --git a/doc/index.docbook b/doc/index.docbook +index b55fd88..416de49 100644 +--- a/doc/index.docbook ++++ b/doc/index.docbook +@@ -24,7 +24,6 @@ + + + +- + ]> +