# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Renato Garcia <fgarcia.renato@gmail.com>
# Contributor: Tiago Camargo <tcamargo@gmail.com>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>

pkgname=stella
pkgver=6.5.2
pkgrel=1
pkgdesc="Atari 2600 VCS emulator"
arch=('x86_64')
url="https://stella-emu.github.io/"
license=('GPL2')
depends=('sdl2' 'gtk-update-icon-cache')
makedepends=('glu')
source=(https://github.com/stella-emu/stella/releases/download/$pkgver/$pkgname-$pkgver-src.tar.xz)
md5sums=('22a43426684996d558fa07e7477d3b9a')

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr

  make
}

package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
}
