# Maintainer (AUR): Mike Sampson <mike at sambodata dot com>
# Contributor (AUR): Thomas Zervogiannis <tzervo@gmail.com>
# Contributor (AUR): Loui Chang <louipc dot ist at gmail company>
# Contributor (AUR): rabyte <rabyte__gmail>
# Maintainer: Freemor <freemor@freemor.ca>

pkgname=tintin
pkgver=2.02.03
pkgrel=1
pkgdesc="A console-based MUD client"
arch=('i686' 'x86_64' 'armv7h')
url="http://tintin.sourceforge.net/"
license=('GPL2')
depends=('zlib' 'pcre' 'gnutls')
options=('strip')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
sha512sums=('7940f79e4187748cefe3943d17fe79d657eeb9a9ad23ffced3b1d27fee47998e0bc5346520fe8ed3ef5025392e01d557d4f6d96741d249174991f72b20f2d4dd')

build() {
  cd $srcdir/tt/src
  sh configure --prefix=/usr --enable-big5
  make

}

package() {
  cd $srcdir/tt/src
  install -m755 -D tt++ $pkgdir/usr/bin/tt++
  ln -sf tt++ $pkgdir/usr/bin/tintin

}
