# Maintainer (aur): Graeme Gott <graeme@gottcode.org>
# Contributor: Alon Ivtsan <alonivtsan@lavabit.com>

# parabola changes and rationale:
#  - added .install file to update desktop database

pkgname=tanglet
pkgver=1.5.1
pkgrel=1
pkgdesc='A single player word finding game'
arch=('i686' 'x86_64' 'armv7h')
url="https://gottcode.org/$pkgname/"
license=('GPL3')
depends=('qt5-base')
makedepends=('qt5-tools')
install="$pkgname.install"
source=("https://gottcode.org/$pkgname/$pkgname-$pkgver-src.tar.bz2")
sha256sums=('eec43ea7373dea7817e3ce773aa09fb4e3d5aa01e10a949484a5b6cd4753256b')

build() {
  cd "$pkgname-$pkgver"

  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd "$pkgname-$pkgver"

  make INSTALL_ROOT="$pkgdir/" install
}
