# Maintainer: Shinlun Hsieh <yngwiexx@yahoo.com.tw>

pkgname=hatari
pkgver=2.2.1
pkgrel=1
pkgdesc='An Atari ST and STE emulator'
arch=('x86_64')
url='http://hatari.sourceforge.net/'
license=('GPL')
depends=('sdl2' 'libpng' 'portaudio' 'libsystemd' 'hicolor-icon-theme')
makedepends=('cmake' 'systemd')
source=("https://download.tuxfamily.org/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('11afef30a274be84696588583d5a1d65c8046934670f718c311c956ef7106f60')

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

  ./configure --prefix=/usr

  make
}

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

  make DESTDIR=${pkgdir} install
}
