# Contributor: Tambra Wilcox <Tambra@J30AD.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=scummvm
pkgver=2.1.0
pkgrel=0
pkgdesc="Allows running classic point-and-click adventure games"
url="https://www.scummvm.org/"
arch="all"
options="!check"  # No tests provided.
license="GPL-2.0+"
depends=""
makedepends="alsa-lib-dev curl-dev flac-dev fluidsynth-dev freetype-dev
	libjpeg-turbo-dev libmpeg2-dev libogg-dev libpng-dev libvorbis-dev
	sdl-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://www.scummvm.org/frs/scummvm/$pkgver/scummvm-$pkgver.tar.bz2
	fluidsynth.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--disable-readline
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5f91a65cdde62e6f996ae8a983d212f3d04edcf1ce3ab0e5273f1dfce155724912f386025959f5b2cc6ba566432845d929503f80f0cee513c774d5e04dafde1f  scummvm-2.1.0.tar.bz2
20b20a68263c691efb7db83aa8132ec980f2732af728300a641d30c4035d4aa8fcf6efdcebb8c5b924e68fafb50e39ed1825cd64d1f81145259493e858bd50f4  fluidsynth.patch"