# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>
# Contributor: totoloco <totoloco at gmail dot com>

pkgname=terminal-screensaver
pkgver=0.8.2
pkgrel=3
pkgdesc="Terminal ScreenSaver (or tss for short) is an attempt to clone and enhance FreeBSD's daemon saver."
arch=('i686' 'x86_64')
url="http://www.pulia.nu/tss/"
license=('GPL2')
depends=('ncurses')
conflicts=('tss')
makedepends=('gcc')
source=(http://distcache.freebsd.org/ports-distfiles/tss-$pkgver.tar.gz)
sha256sums=('a3a76fec1e19b802233eb2cc366bdb6b17e7568ea8e9ee78cf80384fc847ba22')

build() {
  cd "$srcdir/tss-$pkgver"
  make
}

package() {
  mkdir -p $pkgdir/usr/bin
  mkdir -p $pkgdir/etc/tss
  cp $srcdir/tss-$pkgver/tss $pkgdir/usr/bin
  cp $srcdir/tss-$pkgver/tss_art/* $pkgdir/etc/tss
}
