summaryrefslogtreecommitdiff
path: root/community/echat/PKGBUILD
blob: 1d10f3c865551aa4bb30f06ce82aec1df83ea47a (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 83672 2013-02-04 11:04:33Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=echat
pkgver=0.04beta1
pkgrel=3
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 $srcdir/$pkgname-${pkgver}
  sed -ri -e 's/^CFLAGS=.*/CFLAGS='"${CFLAGS}"'/' \
    -e 's/@\$\(CC\) -o \$@ /@$(CC) '"${LDFLAGS}"' -o $@ /' Makefile
  make
  install -D -m 0755 echat $pkgdir/usr/bin/echat
  install -D -m 0644 doc/echat.1 $pkgdir/usr/share/man/man1/echat.1
  install -D -m 0644 doc/.echatrc.sample $pkgdir/usr/share/echat/dot.echatrc.sample
}