summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-09-26 18:09:11 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-09-26 18:09:11 -0700
commiteab8af225e9ba506dd371f23c26a2c6867de636e (patch)
tree28abb7149266f4d7eab1ecf0c1887f137de1d6d3 /PKGBUILD
downloadscummvm-eab8af225e9ba506dd371f23c26a2c6867de636e.tar.xz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..8063dc0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
+# Maintainer (Arch): juergen <juergen@archlinux.org>
+# Contributor (Arch): Manolis Tzanidakis, Petter Gundersen
+
+# # I maintain this because:
+# Arch version lacks additional optimization and hardening flags
+
+pkgname=scummvm
+pkgver=2.0.0
+pkgrel=2.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' 'fluidsynth' 'flac' 'faad2' 'libvorbis' 'libmad' 'freetype2'
+ 'libgl' 'glu' 'libjpeg-turbo' 'libmpeg2')
+makedepends=('mesa')
+source=("https://scummvm.org/frs/scummvm/${pkgver}/${pkgname}-${pkgver}.tar.xz")
+sha512sums=('5f4c11145c5dfcc7ae95d5c0e5ac9e938912cc5060b9d5fdfcb699a745755b31412e44199e487ad388ca5e091afc3366f874610adb44d440f336e26d6cd4812c')
+
+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
+}