PKGBUILDs/community/vbam/PKGBUILD

105 lines
1.8 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
)
2019-10-06 17:48:47 +00:00
pkgver=2.1.4
2019-04-07 16:53:06 +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=(
libgl
libpng
sdl2
sfml
zlib
)
makedepends=(
cmake
ffmpeg
git
libglvnd
wxgtk3
zip
)
2019-10-06 17:48:47 +00:00
source=(git+https://github.com/visualboyadvance-m/visualboyadvance-m.git#tag=09fbcbac07148ea32add848722dab34a7eb4f6b5)
sha256sums=(SKIP)
validpgpkeys=(A0C0E526E36FD2138C149D4D08AB596679D86240) # Rafael Kitover <rkitover@gmail.com>
pkgver() {
cd visualboyadvance-m
git describe --tags | sed 's/^v//'
}
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: