PKGBUILDs/community/vbam/PKGBUILD

98 lines
1.6 KiB
Bash
Raw Normal View History

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
)
pkgver=2.1.1
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=(
libgl
libpng
sdl2
sfml
zlib
)
makedepends=(
cmake
ffmpeg
git
libglvnd
wxgtk3
zip
)
source=(git+https://github.com/visualboyadvance-m/visualboyadvance-m.git#tag=v${pkgver})
sha256sums=(SKIP)
2017-12-31 15:49:08 +00:00
prepare() {
for p in sdl wx; do
if [[ -d build-$p ]]; then
rm -rf build-$p
fi
mkdir build-$p
done
}
build() {
cd build-sdl
2018-07-02 14:17:45 +00:00
cmake ../visualboyadvance-m \
2019-03-03 20:42:31 +00:00
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=TRUE \
-DENABLE_SDL=TRUE \
-DENABLE_WX=FALSE \
-DENABLE_LINK=TRUE \
-DENABLE_LTO=FALSE
2017-12-31 15:49:08 +00:00
make
cd ../build-wx
2018-07-02 14:17:45 +00:00
cmake ../visualboyadvance-m \
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 \
-DENABLE_LTO=FALSE \
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3
2017-12-31 15:49:08 +00:00
make
}
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
2018-07-02 14:17:45 +00:00
make DESTDIR="${pkgdir}" -C build-sdl install
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
libavcodec.so
libavformat.so
libavutil.so
libswscale.so
openal
wxgtk3
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
2018-07-02 14:17:45 +00:00
make DESTDIR="${pkgdir}" -C build-wx install
2017-12-31 15:49:08 +00:00
}
# vim: ts=2 sw=2 et: