# $Id: PKGBUILD 174227 2016-05-07 18:29:37Z arojas $ # Maintainer (Arch): Peter Richard Lewis # Contributor (Arch): Andrea Scarpino # Contributor (Arch): Emanuele Rossi # Contributor (Arch): Bram Schoenmakers # Maintainer: Márcio Silva pkgname=choqok pkgver=1.5 pkgrel=5.nonprism1 pkgdesc="A Pump.io/GNU social client for KDE, without Twitter support" url='http://choqok.gnufolks.org/' license=('GPL') arch=('i686' 'x86_64') conflicts=(${pkgname}-nonprism) replaces=(${pkgname}-nonprism) depends=('kdebase-runtime' 'qjson' 'qoauth') makedepends=('cmake' 'automoc4' 'telepathy-qt') optdepends=('kdebase-konqueror: proxy support' 'telepathy-qt: IMstatus plugin') source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz") md5sums=('f2efdd76199f8276e8ac2f76dc600596') prepare() { mkdir build cd "${srcdir}/${pkgname}-${pkgver}" # remove twitter service and keep only twitterapi (choqok software) for Pump.io, GNU social and libre 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 nonprivacy services only) 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 build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd build make DESTDIR="${pkgdir}" install }