# Maintainer: jc_gargma # Maintainer (Arch): Sven-Hendrik Haase # Contributor (Arch): juergen # Contributor (Arch): Manolis Tzanidakis, Petter Gundersen # # I maintain this because: # Arch version does not build all game engines # Arch version lacks additional optimization and hardening flags pkgname=scummvm pkgver=2.1.0 pkgrel=2 pkgdesc="A 'virtual machine' for several classic graphical point-and-click adventure games." arch=('x86_64') license=('GPL') url="http://www.scummvm.org/" depends=('libpng' 'libtheora' 'sdl2' 'sdl2_net' 'fluidsynth' 'flac' 'faad2' 'libvorbis' 'libmad' 'freetype2' 'libgl' 'glu' 'libjpeg-turbo' 'libmpeg2' 'curl' 'a52dec') makedepends=('mesa') source=("https://scummvm.org/frs/scummvm/${pkgver}/${pkgname}-${pkgver}.tar.xz") sha512sums=('9a03cf207660aa49e49f53e1df10b774b7c9711dffd527e00518015e7e7057f25538a7dd89e248e9237434cf08a9f7ea6b215805fb65a770fb20596f5e713218') build() { cd "${srcdir}"/${pkgname}-${pkgver} # -flto=4 breaks compilation export CFLAGS="$CFLAGS -O3 -fPIE" export CXXFLAGS="$CXXFLAGS -O3 -fPIE" export LDFLAGS="$LDFLAGS,-pie" ./configure \ --enable-all-engines \ --enable-c++11 \ --enable-release \ --prefix=/usr make } package() { cd "${srcdir}"/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -Dm644 dists/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop }