[arch-commits] Commit in mgba/repos (8 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Dec 6 16:22:40 UTC 2015
Date: Sunday, December 6, 2015 @ 17:22:39
Author: foutrelis
Revision: 148865
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
mgba/repos/community-staging-i686/
mgba/repos/community-staging-i686/PKGBUILD
(from rev 148864, mgba/trunk/PKGBUILD)
mgba/repos/community-staging-i686/mgba.desktop
(from rev 148864, mgba/trunk/mgba.desktop)
mgba/repos/community-staging-i686/mgba.install
(from rev 148864, mgba/trunk/mgba.install)
mgba/repos/community-staging-x86_64/
mgba/repos/community-staging-x86_64/PKGBUILD
(from rev 148864, mgba/trunk/PKGBUILD)
mgba/repos/community-staging-x86_64/mgba.desktop
(from rev 148864, mgba/trunk/mgba.desktop)
mgba/repos/community-staging-x86_64/mgba.install
(from rev 148864, mgba/trunk/mgba.install)
---------------------------------------+
community-staging-i686/PKGBUILD | 66 ++++++++++++++++++++++++++++++++
community-staging-i686/mgba.desktop | 10 ++++
community-staging-i686/mgba.install | 11 +++++
community-staging-x86_64/PKGBUILD | 66 ++++++++++++++++++++++++++++++++
community-staging-x86_64/mgba.desktop | 10 ++++
community-staging-x86_64/mgba.install | 11 +++++
6 files changed, 174 insertions(+)
Copied: mgba/repos/community-staging-i686/PKGBUILD (from rev 148864, mgba/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-12-06 16:22:39 UTC (rev 148865)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Duck Hunt <vaporeon at tfwno.gf>
+
+pkgbase=mgba
+pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
+pkgver=0.3.1
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://mgba.io'
+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=('870f516bd5433f01fec4fa4c26079e0f'
+ '8639165ead14363de45c0f9db3b7d97a')
+
+prepare() {
+ [[ ! -d build ]] && mkdir build || rm -rf build
+
+ cd mgba-$pkgver/res
+ convert mgba-1024.png -resize 256x256 mgba-256.png
+}
+
+build() {
+ cd build
+ cmake "$srcdir"/mgba-$pkgver -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package_libmgba() {
+ pkgdesc='Shared library of mGBA'
+ depends=('zlib' 'libpng' 'libzip' 'libedit' 'ffmpeg' 'imagemagick')
+
+ cmake -DCOMPONENT=libmgba mgba-$pkgver -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
+ -P build/cmake_install.cmake
+ install -Dm644 mgba-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_mgba-sdl() {
+ pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy'
+ depends=('libmgba' 'sdl2')
+
+ cmake -DCOMPONENT=mgba-sdl mgba-$pkgver -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
+ -P build/cmake_install.cmake
+
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_mgba-qt() {
+ pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy. Qt5 UI.'
+ depends=('libmgba' 'qt5-multimedia' 'sdl2')
+
+ 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/
+ install -Dm644 mgba-$pkgver/res/mgba-256.png "$pkgdir"/usr/share/pixmaps/mgba.png
+
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: mgba/repos/community-staging-i686/mgba.desktop (from rev 148864, mgba/trunk/mgba.desktop)
===================================================================
--- community-staging-i686/mgba.desktop (rev 0)
+++ community-staging-i686/mgba.desktop 2015-12-06 16:22:39 UTC (rev 148865)
@@ -0,0 +1,10 @@
+[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
Copied: mgba/repos/community-staging-i686/mgba.install (from rev 148864, mgba/trunk/mgba.install)
===================================================================
--- community-staging-i686/mgba.install (rev 0)
+++ community-staging-i686/mgba.install 2015-12-06 16:22:39 UTC (rev 148865)
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
Copied: mgba/repos/community-staging-x86_64/PKGBUILD (from rev 148864, mgba/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-12-06 16:22:39 UTC (rev 148865)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Duck Hunt <vaporeon at tfwno.gf>
+
+pkgbase=mgba
+pkgname=('libmgba' 'mgba-sdl' 'mgba-qt')
+pkgver=0.3.1
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://mgba.io'
+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=('870f516bd5433f01fec4fa4c26079e0f'
+ '8639165ead14363de45c0f9db3b7d97a')
+
+prepare() {
+ [[ ! -d build ]] && mkdir build || rm -rf build
+
+ cd mgba-$pkgver/res
+ convert mgba-1024.png -resize 256x256 mgba-256.png
+}
+
+build() {
+ cd build
+ cmake "$srcdir"/mgba-$pkgver -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package_libmgba() {
+ pkgdesc='Shared library of mGBA'
+ depends=('zlib' 'libpng' 'libzip' 'libedit' 'ffmpeg' 'imagemagick')
+
+ cmake -DCOMPONENT=libmgba mgba-$pkgver -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
+ -P build/cmake_install.cmake
+ install -Dm644 mgba-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_mgba-sdl() {
+ pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy'
+ depends=('libmgba' 'sdl2')
+
+ cmake -DCOMPONENT=mgba-sdl mgba-$pkgver -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
+ -P build/cmake_install.cmake
+
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_mgba-qt() {
+ pkgdesc='A Nintendo Gameboy Advance Emulator focusing on both speed and accuracy. Qt5 UI.'
+ depends=('libmgba' 'qt5-multimedia' 'sdl2')
+
+ 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/
+ install -Dm644 mgba-$pkgver/res/mgba-256.png "$pkgdir"/usr/share/pixmaps/mgba.png
+
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s /usr/share/licenses/libmgba/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: mgba/repos/community-staging-x86_64/mgba.desktop (from rev 148864, mgba/trunk/mgba.desktop)
===================================================================
--- community-staging-x86_64/mgba.desktop (rev 0)
+++ community-staging-x86_64/mgba.desktop 2015-12-06 16:22:39 UTC (rev 148865)
@@ -0,0 +1,10 @@
+[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
Copied: mgba/repos/community-staging-x86_64/mgba.install (from rev 148864, mgba/trunk/mgba.install)
===================================================================
--- community-staging-x86_64/mgba.install (rev 0)
+++ community-staging-x86_64/mgba.install 2015-12-06 16:22:39 UTC (rev 148865)
@@ -0,0 +1,11 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list