2017-12-31 15:49:08 +00:00
|
|
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
|
2023-03-09 19:06:56 +00:00
|
|
|
# Maintainer: T.J. Townsend <blakkheim@archlinux.org>
|
2017-12-31 15:49:08 +00:00
|
|
|
# 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
|
|
|
|
)
|
2023-03-09 19:06:56 +00:00
|
|
|
_pkgname=visualboyadvance-m
|
2024-02-04 01:06:57 +00:00
|
|
|
pkgver=2.1.9
|
2024-06-21 23:03:18 +00:00
|
|
|
pkgrel=3
|
2017-12-31 15:49:08 +00:00
|
|
|
pkgdesc='Nintendo GameBoy Advance emulator'
|
2019-03-03 20:42:31 +00:00
|
|
|
arch=(x86_64)
|
2024-05-01 16:44:40 +00:00
|
|
|
url='https://visualboyadvance-m.org'
|
2019-03-03 20:42:31 +00:00
|
|
|
license=(GPL2)
|
|
|
|
depends=(
|
2022-08-18 23:11:03 +00:00
|
|
|
glu
|
2023-07-01 00:15:17 +00:00
|
|
|
libsfml-network.so
|
|
|
|
libsfml-system.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
|
|
|
|
)
|
2023-12-13 20:10:19 +00:00
|
|
|
source=("git+https://github.com/${_pkgname}/${_pkgname}.git?signed#tag=v${pkgver}")
|
2024-05-01 16:44:40 +00:00
|
|
|
b2sums=('dc81587a63b823217d86274e79d78f764a82c1244965646be41e9bfd382d9b457f695d95ba873c6a5150184dc0555d482d8db1f4aa0917e4342d9baa2c36def1')
|
2023-07-10 12:35:42 +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() {
|
2023-03-09 19:06:56 +00:00
|
|
|
cd ${_pkgname}
|
2024-06-21 23:03:18 +00:00
|
|
|
git cherry-pick -n 6766b9ca54e736e200ec652b4d4ff78fca6326dd
|
2022-12-28 17:13:53 +00:00
|
|
|
# Unbundle doctest (bundled one is not glibc 2.34 compatible)
|
|
|
|
sed -e 's|${CMAKE_SOURCE_DIR}/third_party|/usr|' -i src/wx/tests/CMakeLists.txt
|
2019-10-06 17:48:47 +00:00
|
|
|
}
|
2017-12-31 15:49:08 +00:00
|
|
|
|
2023-07-10 12:35:42 +00:00
|
|
|
#pkgver() {
|
|
|
|
# cd ${_pkgname}
|
|
|
|
# git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./'
|
|
|
|
#}
|
2017-12-31 15:49:08 +00:00
|
|
|
|
|
|
|
build() {
|
2023-03-09 19:06:56 +00:00
|
|
|
cmake -S ${_pkgname} -B build-sdl -G Ninja \
|
2023-07-10 12:35:42 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
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 \
|
2023-03-09 19:06:56 +00:00
|
|
|
-DENABLE_LTO=FALSE \
|
|
|
|
-Wno-dev
|
2022-02-17 19:37:07 +00:00
|
|
|
cmake --build build-sdl
|
2023-03-09 19:06:56 +00:00
|
|
|
|
|
|
|
cmake -S ${_pkgname} -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 \
|
2023-03-09 19:06:56 +00:00
|
|
|
-DENABLE_LTO=FALSE \
|
|
|
|
-Wno-dev
|
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
|
2023-10-24 23:22:37 +00:00
|
|
|
libavcodec.so
|
|
|
|
libavformat.so
|
|
|
|
libavutil.so
|
|
|
|
libswscale.so
|
2019-03-03 20:42:31 +00:00
|
|
|
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:
|