PKGBUILDs/extra/vbam/PKGBUILD

108 lines
2.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
2023-06-24 03:13:49 +00:00
pkgver=2.1.5.r109.79061810
2023-07-01 00:15:17 +00:00
pkgrel=2
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
libavcodec.so
libavformat.so
libavutil.so
2023-07-01 00:15:17 +00:00
libsfml-network.so
libsfml-system.so
libswscale.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-06-24 03:13:49 +00:00
#_tag=a964f4a5c69ce30d124bd6dcf987bdedc82f3928 # git rev-parse v${pkgver}
#source=("git+https://github.com/${_pkgname}/${_pkgname}.git?signed#tag=${_tag}")
_commit=790618102dea1a4c94a115e4f3e8b432eb53adee # master
source=("git+https://github.com/${_pkgname}/${_pkgname}.git?#commit=${_commit}")
2022-12-28 17:13:53 +00:00
b2sums=('SKIP')
2023-06-24 03:13:49 +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-06-24 03:13:49 +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 \
-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 \
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
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: