community/mgba to 0.4.0-1

This commit is contained in:
Kevin Mihelich 2016-02-05 00:37:08 +00:00
parent d459fcc63f
commit 05f9cf1051
2 changed files with 4 additions and 19 deletions

View file

@ -9,7 +9,7 @@
pkgbase=mgba
pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
pkgver=0.3.2
pkgver=0.4.0
pkgrel=1
arch=('i686' 'x86_64')
url='http://mgba.io'
@ -17,16 +17,11 @@ license=('custom:MPL2')
makedepends=('cmake' 'qt5-multimedia' 'sdl2' 'zlib' 'libpng' 'libzip' 'libedit'
'ffmpeg' 'imagemagick' 'desktop-file-utils')
install=$pkgbase.install
source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz
mgba.desktop)
md5sums=('04d111daa79b21b96219f7e884245ddc'
'8639165ead14363de45c0f9db3b7d97a')
source=($pkgbase-$pkgver.tar.gz::https://github.com/mgba-emu/mgba/archive/$pkgver.tar.gz)
md5sums=('b37fcab5e7139b7c161d880576d2d1cc')
prepare() {
[[ ! -d build ]] && mkdir build || rm -rf build
cd mgba-$pkgver/res
convert mgba-1024.png -resize 256x256 mgba-256.png
}
build() {
@ -63,7 +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.desktop --dir "$pkgdir"/usr/share/applications/
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 -d "$pkgdir"/usr/share/licenses/$pkgname

View file

@ -1,10 +0,0 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=mGBA
Comment=mGBA Game Boy Advance Emulator
Icon=mgba.png
Exec=mgba-qt
Categories=Game;Emulator;
Terminal=false
StartupNotify=false