mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/vbam to 2.1.1-1
This commit is contained in:
parent
8e898fbb85
commit
e9d5512955
1 changed files with 54 additions and 36 deletions
|
@ -1,4 +1,3 @@
|
|||
# $Id$
|
||||
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
||||
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
|
||||
|
||||
|
@ -6,17 +5,33 @@
|
|||
# - disable LTO: -DENABLE_LTO='FALSE'
|
||||
|
||||
pkgbase=vbam
|
||||
pkgname=('vbam-sdl' 'vbam-wx')
|
||||
pkgver=2.1.0
|
||||
pkgrel=2
|
||||
pkgname=(
|
||||
vbam-sdl
|
||||
vbam-wx
|
||||
)
|
||||
pkgver=2.1.1
|
||||
pkgrel=1
|
||||
pkgdesc='Nintendo GameBoy Advance emulator'
|
||||
arch=('x86_64')
|
||||
url='http://vba-m.com'
|
||||
license=('GPL2')
|
||||
depends=('gcc-libs' 'glibc' 'libgl' 'libpng' 'sdl2' 'sfml' 'zlib')
|
||||
makedepends=('cmake' 'ffmpeg' 'git' 'libglvnd' 'wxgtk3' 'zip')
|
||||
source=("git+https://github.com/visualboyadvance-m/visualboyadvance-m.git#tag=v${pkgver}")
|
||||
sha256sums=('SKIP')
|
||||
arch=(x86_64)
|
||||
url=https://vba-m.com
|
||||
license=(GPL2)
|
||||
depends=(
|
||||
libgl
|
||||
libpng
|
||||
sdl2
|
||||
sfml
|
||||
zlib
|
||||
)
|
||||
makedepends=(
|
||||
cmake
|
||||
ffmpeg
|
||||
git
|
||||
libglvnd
|
||||
wxgtk3
|
||||
zip
|
||||
)
|
||||
source=(git+https://github.com/visualboyadvance-m/visualboyadvance-m.git#tag=v${pkgver})
|
||||
sha256sums=(SKIP)
|
||||
|
||||
prepare() {
|
||||
for p in sdl wx; do
|
||||
|
@ -25,53 +40,56 @@ prepare() {
|
|||
fi
|
||||
mkdir build-$p
|
||||
done
|
||||
|
||||
cd visualboyadvance-m
|
||||
|
||||
git cherry-pick -n a8d0508cf299a58b2a659d6017b049db121de8ba #FS59479
|
||||
}
|
||||
|
||||
build() {
|
||||
cd build-sdl
|
||||
|
||||
cmake ../visualboyadvance-m \
|
||||
-DCMAKE_BUILD_TYPE='Release' \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DCMAKE_SKIP_RPATH='TRUE' \
|
||||
-DENABLE_SDL='TRUE' \
|
||||
-DENABLE_WX='FALSE' \
|
||||
-DENABLE_LINK='TRUE' \
|
||||
-DENABLE_LTO='FALSE'
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_SKIP_RPATH=TRUE \
|
||||
-DENABLE_SDL=TRUE \
|
||||
-DENABLE_WX=FALSE \
|
||||
-DENABLE_LINK=TRUE \
|
||||
-DENABLE_LTO=FALSE
|
||||
make
|
||||
|
||||
cd ../build-wx
|
||||
|
||||
cmake ../visualboyadvance-m \
|
||||
-DCMAKE_BUILD_TYPE='Release' \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DCMAKE_SKIP_RPATH='TRUE' \
|
||||
-DENABLE_SDL='FALSE' \
|
||||
-DENABLE_WX='TRUE' \
|
||||
-DENABLE_FFMPEG='TRUE' \
|
||||
-DENABLE_LINK='TRUE' \
|
||||
-DENABLE_LTO='FALSE' \
|
||||
-DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config-gtk3'
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_SKIP_RPATH=TRUE \
|
||||
-DENABLE_SDL=FALSE \
|
||||
-DENABLE_WX=TRUE \
|
||||
-DENABLE_FFMPEG=TRUE \
|
||||
-DENABLE_LINK=TRUE \
|
||||
-DENABLE_LTO=FALSE \
|
||||
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3
|
||||
make
|
||||
}
|
||||
|
||||
package_vbam-sdl() {
|
||||
backup=('etc/vbam.cfg')
|
||||
conflicts=('vbam-wx')
|
||||
backup=(etc/vbam.cfg)
|
||||
conflicts=(vbam-wx)
|
||||
|
||||
make DESTDIR="${pkgdir}" -C build-sdl install
|
||||
}
|
||||
|
||||
package_vbam-wx() {
|
||||
depends+=(
|
||||
'glib2' 'gtk3' 'openal' 'wxgtk3' 'zip'
|
||||
'libavcodec.so' 'libavformat.so' 'libavutil.so' 'libswscale.so'
|
||||
glib2
|
||||
gtk3
|
||||
libavcodec.so
|
||||
libavformat.so
|
||||
libavutil.so
|
||||
libswscale.so
|
||||
openal
|
||||
wxgtk3
|
||||
zip
|
||||
)
|
||||
conflicts=('vbam-sdl')
|
||||
conflicts=(vbam-sdl)
|
||||
|
||||
make DESTDIR="${pkgdir}" -C build-wx install
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue