summaryrefslogtreecommitdiff
path: root/community/echat/PKGBUILD
blob: 71e1e1e84ddae7f815a6740985e6ed07e34a1a46 (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 65144 2012-02-20 05:23:08Z 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 ${startdir}/src/$pkgname-${pkgver}
  sed -ri -e 's/^CFLAGS=.*/CFLAGS='"${CFLAGS}"'/' \
    -e 's/@\$\(CC\) -o \$@ /@$(CC) '"${LDFLAGS}"' -o $@ /' Makefile
  make
  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
}