# $Id$ # Maintainer: Peter Richard Lewis # Contributor: Andrea Scarpino # Contributor: Emanuele Rossi # Contributor: Bram Schoenmakers # Maintainer (Parabola): Márcio Silva _pkgname=choqok pkgname=choqok-nonprism pkgver=1.3 pkgrel=4.2 pkgdesc="A status.net client for KDE, without Twitter support" url='http://choqok.gnufolks.org/' license=('GPL') arch=('i686' 'x86_64' 'mips64el') depends=('kdebase-runtime' 'qjson' 'qoauth' 'qca-ossl') makedepends=('cmake' 'automoc4') optdepends=('kdebase-konqueror-libre: proxy support') provides=("$_pkgname=$pkgver") conflicts=$_pkgname replaces=$_pkgname install="${_pkgname}.install" source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2") md5sums=('87eea4f2c23467fb021e3e6b794eb37d') prepare() { cd "${srcdir}/${_pkgname}-${pkgver}" # remove twitter service and keep only twitterapi (choqok software) for status.net and open collaboration services sed -i '\|add_subdirectory(twitter)|d' microblogs/CMakeLists.txt sed -i 's|twitter[.]com|status.net|' microblogs/laconica/laconicamicroblog.cpp sed -i 's|twitter[.]com|status.net|' microblogs/laconica/laconicasearch.cpp # remove uploaders plugin (with only nonprivacy services) sed -i '\|add_subdirectory(uploaders)|d' plugins/CMakeLists.txt sed -i 's|Comment||' plugins/searchaction/choqok_searchaction.desktop # remove twitter on docbook sed -i 's| and Twitter.com|| s| and another with the alias|.| s|while a post using Twitter is called a tweet|| \|Twitter|d;\|twitter|d' doc/index.docbook } build() { cd "${srcdir}" mkdir build cd build cmake ../${_pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "${srcdir}"/build make DESTDIR="${pkgdir}" install # This is already installed by kdepimlibs >= 4.9.80 rm "${pkgdir}"/usr/share/apps/cmake/modules/FindQtOAuth.cmake }