summaryrefslogtreecommitdiff
path: root/nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD')
-rw-r--r--nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD b/nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD
new file mode 100644
index 000000000..bb3d74ade
--- /dev/null
+++ b/nonprism/kdenetwork-kopete-libre-nonprism/PKGBUILD
@@ -0,0 +1,66 @@
+# $Id: PKGBUILD 205344 2014-02-04 14:04:24Z svenstaro $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+
+_pkgname=kdenetwork-kopete
+pkgname=kdenetwork-kopete-libre-nonprism
+pkgver=4.12.2
+pkgrel=1
+pkgdesc='Instant Messenger, without Skype 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')
+depends=('kdebase-runtime' 'kdepimlibs' 'qca-ossl' 'libotr' 'libidn'
+ 'qimageblitz' 'mediastreamer' 'jsoncpp')
+makedepends=('cmake' 'automoc4' 'boost')
+install=${_pkgname}.install
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+source=("http://download.kde.org/stable/${pkgver}/src/kopete-${pkgver}.tar.xz"
+ 'libre-nonprism.patch')
+sha1sums=('6b5ebab916f4527157cf7f979724538f38052bad'
+ 'ddde6ed0b6f281512dc12cb80f712f33c6932c92')
+
+prepare() {
+ cd kopete-${pkgver}
+ # Based on http://bzr.trisquel.info/package-helpers/trunk/annotate/head%3A/helpers/natty/make-kdenetwork, revision 34.
+ sed -i 's/Skype protocol" ON/Skype protocol" OFF/g' protocols/CMakeLists.txt
+ rm -rf protocols/skype
+ # remove unsafe/dangerous services
+ sed -i 's/Oscar (ICQ and AIM) protocol" ON/Oscar (ICQ and AIM) protocol" OFF/g' protocols/CMakeLists.txt
+ rm -rf protocols/oscar
+ sed -i 's/Yahoo protocol" ON/Yahoo protocol" OFF/g' protocols/CMakeLists.txt
+ rm -rf protocols/yahoo
+ sed -i 's/QQ protocol" ON/QQ protocol" OFF/g' protocols/CMakeLists.txt
+ rm -rf protocols/qq
+ sed -i 's/Novell GroupWise Messenger protocol" ON/Novell GroupWise Messenger protocol" OFF/g' protocols/CMakeLists.txt
+ rm -rf protocols/groupwise
+ sed -i 's/Gadu-Gadu protocol" ON/Gadu-Gadu protocol" OFF/g' protocols/CMakeLists.txt
+ rm -rf protocols/gadu
+ sed -i 's/Google Talk support" ON/Google Talk support" OFF/g' protocols/CMakeLists.txt
+ sed -i 's/Window Live Messenger support" ON/Window Live Messenger support" OFF/g' protocols/CMakeLists.txt
+ rm -rf protocols/wlm
+ sed -i 's/Windows Live Messenger voice clip support" ON/Windows Live Messenger voice clip support" OFF/g' protocols/CMakeLists.txt
+ sed -i 's/meanwhile protocol" ON/meanwhile protocol" OFF/g' protocols/CMakeLists.txt
+ rm -rf 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
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR=$pkgdir install
+}