blob: 4fb649c6b4b37be1b6212c7cbecf0976bad96f09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor (Arch): Thomas Dziedzic < gostrc at gmail >
# Contributor (Arch): Laurent Carlier <lordheavym@gmail.com>
# Contributor (Arch): Allan McRae <allan@archlinux.org>
# Contributor (Arch): Zephyr
# # I maintain this because:
# Arch version lacks additional optimization and hardening flags
pkgname=mupen64plus
pkgver=2.5
pkgrel=14.4
pkgdesc='Nintendo64 Emulator'
arch=('x86_64')
url='https://github.com/mupen64plus/mupen64plus-core'
license=('GPL')
depends=('glu' 'libsamplerate' 'libpng' 'sdl' 'freetype2' 'boost-libs')
makedepends=('mesa' 'boost')
source=("https://github.com/mupen64plus/mupen64plus-core/releases/download/2.5/mupen64plus-bundle-src-${pkgver}.tar.gz"
'ui-console-pic.patch')
sha256sums=('9c75b9d826f2d24666175f723a97369b3a6ee159b307f7cc876bbb4facdbba66'
'bb4784de177aaa4c0b4f5d07b14ae020f3b47e6aa524df65366ac00eb169ee8f')
prepare() {
cd mupen64plus-bundle-src-$pkgver
patch -p1 -i ../ui-console-pic.patch
}
build() {
cd mupen64plus-bundle-src-${pkgver}
# -fPIE breaks libmupen64plus.so.2
export CFLAGS="$CFLAGS -O3 -flto=4 -fPIC"
export CXXFLAGS="$CXXFLAGS -O3 -flto=4 -fPIC"
if [[ $CARCH = 'i686' ]]; then
export CFLAGS="${CFLAGS/-fno-plt/}"
export CXXFLAGS="${CXXFLAGS/-fno-plt/}"
fi
sh m64p_build.sh
}
package() {
cd mupen64plus-bundle-src-$pkgver
# set LDCONFIG since we are using fakeroot and scripts run root commands by checking the uid
./m64p_install.sh DESTDIR="$pkgdir" PREFIX='/usr' MANDIR='/usr/share/man' LDCONFIG='true'
}
|