PKGBUILDs/extra/vbam/PKGBUILD

99 lines
2 KiB
Bash
Raw Normal View History

2023-03-09 19:06:56 +00:00
# Maintainer: T.J. Townsend <blakkheim@archlinux.org>
2024-09-09 15:45:54 +00:00
# Contributor: Maxime Gauduin <alucryd@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
)
2024-09-15 13:24:03 +00:00
pkgver=2.1.11
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)
2024-05-01 16:44:40 +00:00
url='https://visualboyadvance-m.org'
2019-03-03 20:42:31 +00:00
license=(GPL2)
depends=(
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
ffmpeg
git
libglvnd
ninja
wxwidgets-gtk3
2019-03-03 20:42:31 +00:00
zip
)
2024-09-09 15:45:54 +00:00
_pkgname=visualboyadvance-m
2023-12-13 20:10:19 +00:00
source=("git+https://github.com/${_pkgname}/${_pkgname}.git?signed#tag=v${pkgver}")
2024-09-15 13:24:03 +00:00
b2sums=('caa270b95f5fa1ea543d57d9ed4309b7bdb345b421d91c4fd1511b8918997339a3143333bad08ce754207ea38f4686d7f7b594b951ea1636a5e7a99a7db4790a')
2024-09-09 15:33:46 +00:00
validpgpkeys=('A0C0E526E36FD2138C149D4D08AB596679D86240' # Rafael Kitover <rkitover@gmail.com>
'0662A706ABE516087A23D1B9F2E06F4EE438BE81' # Zach Bacon <zachbacon@vba-m.com>
)
2019-10-06 17:48:47 +00:00
prepare() {
2023-03-09 19:06:56 +00:00
cd ${_pkgname}
2019-10-06 17:48:47 +00:00
}
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
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
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
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
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
DESTDIR="${pkgdir}" cmake --install build-wx
2017-12-31 15:49:08 +00:00
}
# vim: ts=2 sw=2 et: