mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/mgba to 0.10.1-1
This commit is contained in:
parent
63488d7bcd
commit
adea6c1c0d
1 changed files with 11 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue