PKGBUILDs/extra/vbam/PKGBUILD

105 lines
2 KiB
Bash
Raw Normal View History

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
2023-12-13 20:10:19 +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=(
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
doctest
2019-03-03 20:42:31 +00:00
ffmpeg
git
libglvnd
ninja
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}")
2022-12-28 17:13:53 +00:00
b2sums=('SKIP')
2023-07-10 12:35:42 +00:00
validpgpkeys=(A0C0E526E36FD2138C149D4D08AB596679D86240) # Rafael Kitover <rkitover@gmail.com>
2019-10-06 17:48:47 +00:00
prepare() {
2023-03-09 19:06:56 +00:00
cd ${_pkgname}
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
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: