2017-12-31 15:49:08 +00:00
|
|
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
|
|
|
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable LTO: -DENABLE_LTO='FALSE'
|
|
|
|
|
|
|
|
pkgbase=vbam
|
2019-03-03 20:42:31 +00:00
|
|
|
pkgname=(
|
|
|
|
vbam-sdl
|
|
|
|
vbam-wx
|
|
|
|
)
|
2022-10-24 12:39:41 +00:00
|
|
|
pkgver=2.1.4.r637.ea2a929f
|
2022-08-18 23:11:03 +00:00
|
|
|
pkgrel=1
|
2017-12-31 15:49:08 +00:00
|
|
|
pkgdesc='Nintendo GameBoy Advance emulator'
|
2019-03-03 20:42:31 +00:00
|
|
|
arch=(x86_64)
|
|
|
|
url=https://vba-m.com
|
|
|
|
license=(GPL2)
|
|
|
|
depends=(
|
2022-08-18 23:11:03 +00:00
|
|
|
glu
|
2022-02-17 19:37:07 +00:00
|
|
|
libavcodec.so
|
|
|
|
libavformat.so
|
|
|
|
libavutil.so
|
|
|
|
libswscale.so
|
2019-03-03 20:42:31 +00:00
|
|
|
libgl
|
|
|
|
libpng
|
|
|
|
sdl2
|
|
|
|
sfml
|
|
|
|
zlib
|
|
|
|
)
|
|
|
|
makedepends=(
|
|
|
|
cmake
|
2022-03-12 17:10:25 +00:00
|
|
|
doctest
|
2019-03-03 20:42:31 +00:00
|
|
|
ffmpeg
|
|
|
|
git
|
|
|
|
libglvnd
|
2022-02-17 19:37:07 +00:00
|
|
|
ninja
|
2022-07-15 00:22:25 +00:00
|
|
|
wxwidgets-gtk3
|
2019-03-03 20:42:31 +00:00
|
|
|
zip
|
|
|
|
)
|
2022-02-17 19:37:07 +00:00
|
|
|
#_tag=8f4862de88de2f95866b7e501304f1e57a4e0abb
|
2022-10-24 12:39:41 +00:00
|
|
|
_commit=ea2a929f5ead619203760644aa1c7f3d4b1e5e1a
|
2022-02-17 19:37:07 +00:00
|
|
|
#source=(git+https://github.com/visualboyadvance-m/visualboyadvance-m.git?signed#tag=${_tag})
|
|
|
|
source=(
|
|
|
|
git+https://github.com/visualboyadvance-m/visualboyadvance-m.git#commit=${_commit}
|
|
|
|
vbam-ffmpeg5.0.patch
|
|
|
|
)
|
|
|
|
b2sums=('SKIP'
|
2022-03-12 17:10:25 +00:00
|
|
|
'c24813fab7a155ac0711e4c5764148d45dae8c1a57938fd8ce253368c31f7d91c2c912f5b0da48c70952f990449315489f175e0894d9f4a75efc53a3e6abd162')
|
2022-07-15 00:22:25 +00:00
|
|
|
#validpgpkeys=(A0C0E526E36FD2138C149D4D08AB596679D86240) # Rafael Kitover <rkitover@gmail.com>
|
2019-10-06 17:48:47 +00:00
|
|
|
|
2022-02-17 19:37:07 +00:00
|
|
|
prepare() {
|
2019-10-06 17:48:47 +00:00
|
|
|
cd visualboyadvance-m
|
2022-08-18 23:11:03 +00:00
|
|
|
#patch -Np1 -i ../vbam-ffmpeg5.0.patch
|
2022-03-12 17:10:25 +00:00
|
|
|
sed -e 's|${CMAKE_SOURCE_DIR}/third_party|/usr|' -i src/wx/tests/CMakeLists.txt # Unbundle doctest (bundled one is not glibc 2.34 compatible)
|
2019-10-06 17:48:47 +00:00
|
|
|
}
|
2017-12-31 15:49:08 +00:00
|
|
|
|
2022-02-17 19:37:07 +00:00
|
|
|
pkgver() {
|
2019-10-06 18:28:31 +00:00
|
|
|
cd visualboyadvance-m
|
2022-02-17 19:37:07 +00:00
|
|
|
git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./'
|
2017-12-31 15:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-02-17 19:37:07 +00:00
|
|
|
cmake -S visualboyadvance-m -B build-sdl -G Ninja \
|
|
|
|
-DCMAKE_BUILD_TYPE='' \
|
2019-03-03 20:42:31 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_SKIP_RPATH=TRUE \
|
|
|
|
-DENABLE_SDL=TRUE \
|
|
|
|
-DENABLE_WX=FALSE \
|
|
|
|
-DENABLE_LINK=TRUE \
|
|
|
|
-DENABLE_LTO=FALSE
|
2022-02-17 19:37:07 +00:00
|
|
|
cmake --build build-sdl
|
|
|
|
cmake -S visualboyadvance-m -B build-wx -G Ninja \
|
2019-03-03 20:42:31 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_SKIP_RPATH=TRUE \
|
|
|
|
-DENABLE_SDL=FALSE \
|
|
|
|
-DENABLE_WX=TRUE \
|
|
|
|
-DENABLE_FFMPEG=TRUE \
|
|
|
|
-DENABLE_LINK=TRUE \
|
2022-07-15 00:22:25 +00:00
|
|
|
-DENABLE_LTO=FALSE
|
2022-02-17 19:37:07 +00:00
|
|
|
cmake --build build-wx
|
2017-12-31 15:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_vbam-sdl() {
|
2019-03-03 20:42:31 +00:00
|
|
|
backup=(etc/vbam.cfg)
|
|
|
|
conflicts=(vbam-wx)
|
2017-12-31 15:49:08 +00:00
|
|
|
|
2022-02-17 19:37:07 +00:00
|
|
|
DESTDIR="${pkgdir}" cmake --install build-sdl
|
2017-12-31 15:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_vbam-wx() {
|
2018-07-02 14:17:45 +00:00
|
|
|
depends+=(
|
2019-03-03 20:42:31 +00:00
|
|
|
glib2
|
|
|
|
gtk3
|
|
|
|
openal
|
2022-07-15 00:22:25 +00:00
|
|
|
wxwidgets-gtk3
|
2019-03-03 20:42:31 +00:00
|
|
|
zip
|
2018-07-02 14:17:45 +00:00
|
|
|
)
|
2019-03-03 20:42:31 +00:00
|
|
|
conflicts=(vbam-sdl)
|
2017-12-31 15:49:08 +00:00
|
|
|
|
2022-02-17 19:37:07 +00:00
|
|
|
DESTDIR="${pkgdir}" cmake --install build-wx
|
2017-12-31 15:49:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|