summaryrefslogtreecommitdiff
path: root/nonprism/centerim-nonprism/PKGBUILD
blob: a8972c970e517ea4b61bcc762f52191fd71f3661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $Id: PKGBUILD 113946 2014-07-01 10:19:48Z spupykin $
# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor (Arch): Aaron Griffin <aaron@archlinux.org>
# Contributor (Arch): shild <sxp@bk.ru>

_pkgname=centerim
pkgname=centerim-nonprism
pkgver=4.22.10
pkgrel=3
pkgdesc="Fork of CenterICQ - A text mode menu- and window-driven IM interface, without support for unsafe and dangerous for privacy protocols"
arch=('i686' 'x86_64')
url="http://www.centerim.org"
license=('GPL')
depends=('python2' 'libjpeg' 'gpgme')
replaces=("$_pkgname" 'centericq')
conflicts=($_pkgname)
provides=($_pkgname=$pkgver)
source=("http://www.centerim.org/download/releases/$_pkgname-$pkgver.tar.gz"
        'nonprism.patch')
md5sums=('7565c3c8cac98a4e2d8524076a44676f'
         '74887744683b68ea37d4d020c80fb675')

prepare() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  # add patch to remove more protocols
  patch -Np1 -i "${srcdir}/nonprism.patch"
}

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  sed -i 's#python#python2#' misc/CenterIMLog2HTML.py
  sed -i '1,1i#include <stdio.h>' libicq2000/libicq2000/sigslot.h
  ./configure --prefix=/usr \
              --with-ssl \
              --with-openssl \
              --enable-locales-fix \
              --disable-icq \
              --disable-yahoo \
              --disable-aim \
              --disable-gg \
              --disable-msn
  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}