# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697
# Contributor: Freemor <freemor@freemor.ca>

pkgname=xdesktopwaves
pkgver=1.4
pkgrel=1
pkgdesc="xdesktopwaves is a cellular automata setting the background of your X Windows desktop under water. Windows and mouse are like ships on the sea."
arch=('i686' 'x86_64' 'armv7h')
url="http://xdesktopwaves.sourceforge.net/"
license=('GPL2')
depends=('xorg-server')
makedepends=('make' 'gcc')
source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('17ec7c6a865e8f5f8b370161b7379caeb4f7dc1b51ade220a31364c03d720ea3')

build() {
  cd $srcdir/$pkgname-$pkgver
  make
}
package() {
  cd $srcdir/$pkgname-$pkgver

  install -D -m0755 $srcdir/$pkgname-$pkgver/xdesktopwaves ${pkgdir}/usr/bin/xdesktopwaves
  install -D -m0755 $srcdir/$pkgname-$pkgver/xdesktopwaves.1 ${pkgdir}/usr/share/man/man1/xdesktopwaves.1
  install -D -m0444 $srcdir/$pkgname-$pkgver/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
