# Maintainer: jc_gargma # Maintainer (Arch): Sven-Hendrik Haase # Contributor (Arch): juergen # Contributor (Arch): Manolis Tzanidakis, Petter Gundersen # # I maintain this because: # Arch version lacks additional optimization and hardening flags pkgname=scummvm pkgver=2.5.1 pkgrel=1 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' 'giflib' 'glew' 'libspeechd' 'gtk3' 'sndio') makedepends=('mesa') source=("https://downloads.scummvm.org/frs/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz") b2sums=('08fb2fa6cbeec3c1ec24a9b660aab4344f0dbcf4c42655392315aef0ce78105b2a669ef9c82fc09bc389856e592e4e5249d84512b288e7d790914d5caee3972d') build() { cd ${pkgname}-${pkgver} # -flto=4 breaks compilation export CFLAGS="$CFLAGS -O3 -fPIE" export CXXFLAGS="$CXXFLAGS -O3 -fPIE" export LDFLAGS="$LDFLAGS,-pie" ./configure \ --enable-c++11 \ --enable-release \ --enable-all-engines \ --prefix=/usr make } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -Dm644 dists/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop }