# Maintainer: jc_gargma # # I maintain this because: # Arch version lacks additional optimization and hardening flags pkgname=mupen64plus-qt pkgver=1.15 pkgrel=3.3 pkgdesc="A customizable launcher for Mupen64Plus" arch=('i686' 'x86_64') url="https://github.com/dh4/mupen64plus-qt" license=('BSD') depends=('quazip-qt5' 'mupen64plus' 'hicolor-icon-theme') options=('lto') install=mupen64plus-qt.install source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dh4/${pkgname}/archive/${pkgver}.tar.gz" "quazip-fix.patch") sha256sums=('c41448adb7dd6acb6d4f56f7cdd2f25a8fd9a9e9ee23e334c0969b835802f20a' 'b1a04d37fbd5f548c1d23824ab1553064cb5f9ffba218b08e951d61dfa756ef2') b2sums=('9db7c5c7fefa99466933e4526338487b138eb970595d0ac92aedb1649e9786785b2472b7716cd24080e99cddda9d434207d2387515a62f6b2c111076bdcb10ed' '48f974eec41dcbd928a0e8c70ab56bcc5234b91d12d791ca5cb8cb8757f3cc35c7bafe1237c657c9cea9a078dca9f4da2b88b3b4f0a3b4182562b6b5b68801fd') prepare() { cd "$srcdir/$pkgname-$pkgver" patch -Np1 -i "$srcdir"/quazip-fix.patch } build() { cd "$srcdir/$pkgname-$pkgver" export CFLAGS="$CFLAGS -O3 -fPIE" export CXXFLAGS="$CXXFLAGS -O3 -fPIE" export LDFLAGS="$LDFLAGS,-pie" qmake-qt5 make } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm755 "mupen64plus-qt" "$pkgdir/usr/bin/mupen64plus-qt" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 "resources/mupen64plus-qt.desktop" "$pkgdir/usr/share/applications/mupen64plus-qt.desktop" install -Dm644 "resources/images/mupen64plus.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/mupen64plus-qt.png" }