community/mgba to 0.10.1-1

This commit is contained in:
Kevin Mihelich 2023-01-22 18:30:58 +00:00
parent 63488d7bcd
commit adea6c1c0d

View file

@ -7,26 +7,24 @@
pkgbase=mgba
pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
pkgver=0.10.0
pkgrel=2
pkgver=0.10.1
pkgrel=1
arch=('x86_64')
url='http://mgba.io'
license=('custom:MPL2')
makedepends=('cmake' 'qt5-multimedia' 'sdl2' 'zlib' 'libpng' 'libzip' 'libedit'
'ffmpeg' 'desktop-file-utils' 'qt5-tools')
source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz)
md5sums=('6e5fb85135e90492fd32c564c7bfa627')
sha256sums=('e2d66d9ce7c51b1ef3b339b04e871287bf166f6a1d7125ef112dbf53ab8bbd48')
prepare() {
[[ ! -d build ]] && mkdir build || rm -rf build
}
sha256sums=('5fc1d7ac139fe51ef71782d5de12d11246563cdebd685354b6188fdc82a84bdf')
build() {
cd build
cmake "$srcdir"/mgba-$pkgver -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib -DBUILD_LTO=OFF
make
cmake -B build -S mgba-$pkgver \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_LTO=OFF \
-Wno-dev
cmake --build build
}
package_libmgba() {
@ -60,8 +58,7 @@ package_mgba-qt() {
cmake -DCOMPONENT=mgba-qt mgba-$pkgver -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
-P build/cmake_install.cmake
desktop-file-install mgba-$pkgver/res/mgba-qt.desktop --dir "$pkgdir"/usr/share/applications/
install -Dm644 mgba-$pkgver/res/mgba-256.png "$pkgdir"/usr/share/pixmaps/mgba.png
install -Dm644 mgba-$pkgver/res/mgba-256.png "$pkgdir"/usr/share/pixmaps/io.mgba.mGBA.png
install -d "$pkgdir"/usr/share/licenses/$pkgname
ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE