diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-04 02:25:14 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-04 02:25:14 -0300 |
commit | fc353061e3e6b3e8542d2000b89ca2ecfc604b1b (patch) | |
tree | 615f9efcdc5cf45213866013e12c2293f69e2a69 /nonprism/choqok/PKGBUILD | |
parent | 0873eff3fe57c9e108ef0cf5f5b700bbb449629a (diff) | |
parent | 448c73d26577be3e04afda7364e3a7b3782b64cc (diff) | |
download | abslibre-fc353061e3e6b3e8542d2000b89ca2ecfc604b1b.tar.gz abslibre-fc353061e3e6b3e8542d2000b89ca2ecfc604b1b.tar.bz2 abslibre-fc353061e3e6b3e8542d2000b89ca2ecfc604b1b.zip |
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'nonprism/choqok/PKGBUILD')
-rw-r--r-- | nonprism/choqok/PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/nonprism/choqok/PKGBUILD b/nonprism/choqok/PKGBUILD new file mode 100644 index 000000000..6a815e7c6 --- /dev/null +++ b/nonprism/choqok/PKGBUILD @@ -0,0 +1,56 @@ +# $Id: PKGBUILD 96779 2013-09-04 22:09:55Z andrea $ +# Maintainer (Arch): Peter Richard Lewis <plewis@aur.archlinux.org> +# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org> +# Contributor (Arch): Emanuele Rossi <newdna1510@yahoo.it> +# Contributor (Arch): Bram Schoenmakers <me@bramschoenmakers.nl> +# Maintainer: Márcio Silva <coadde@parabola.nu> + +pkgname=choqok +pkgver=1.4 +pkgrel=1.nonprism1 +pkgdesc="A status.net client for KDE, without Twitter support" +url='http://choqok.gnufolks.org/' +license=('GPL') +arch=('i686' 'x86_64' 'mips64el') +conflicts=(${pkgname}-nonprism) +replaces=(${pkgname}-nonprism) +depends=('kdebase-runtime' 'qjson' 'qoauth' 'qca-ossl') +makedepends=('cmake' 'automoc4') +optdepends=('kdebase-konqueror: proxy support') +install="${pkgname}.install" +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz") +md5sums=('2efe34ed903b448a21d9233d8033dbdb') + +prepare() { + mkdir build + + 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|.</para>| + 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 +} |