summaryrefslogtreecommitdiff
path: root/community/echat/PKGBUILD
blob: a9b0c08a053b44da6f96b0402d24cadb4590b5de (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
# $Id: PKGBUILD 7575 2010-01-08 02:33:57Z dgriffiths $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=echat
pkgver=0.04beta1
pkgrel=2.1
pkgdesc="vypress compatible ncurses chat (can work without server)"
arch=('i686' 'x86_64' 'mips64el')
url="http://echat.deep.perm.ru/"
license=(GPL)
depends=(ncurses)
source=(http://echat.deep.perm.ru/files/echat-$pkgver.tar.gz)
md5sums=('dda3891d08f04dd266858380d404af15')

#
# see also:
#   url="http://www.vypress.com/products/chat/unix/"
#   url="http://pupykins.googlepages.com/" - contains also improoved version (utf8 and some more features)
#   source=(http://www.vypress.com/ftp/clones/vyc/echat/${pkgname}-${pkgver}.tgz) - actualy not gzipped tar
#

build() {
  cd ${startdir}/src/$pkgname-${pkgver}
  sed -ri -e 's/^CFLAGS=.*/CFLAGS='"${CFLAGS}"'/' \
    -e 's/@\$\(CC\) -o \$@ /@$(CC) '"${LDFLAGS}"' -o $@ /' Makefile
  make || return 1
  install -D -m 0755 echat $startdir/pkg/usr/bin/echat && \
  install -D -m 0644 doc/echat.1 $startdir/pkg/usr/share/man/man1/echat.1 && \
  install -D -m 0644 doc/.echatrc.sample $startdir/pkg/usr/share/echat/dot.echatrc.sample
}