PKGBUILDs/community/vbam/PKGBUILD

80 lines
1.8 KiB
Bash
Raw Normal View History

2017-12-31 15:49:08 +00:00
# $Id$
# 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
pkgname=('vbam-sdl' 'vbam-wx')
2018-07-02 14:17:45 +00:00
pkgver=2.1.0
2018-08-02 07:46:29 +00:00
pkgrel=2
2017-12-31 15:49:08 +00:00
pkgdesc='Nintendo GameBoy Advance emulator'
arch=('x86_64')
url='http://vba-m.com'
license=('GPL2')
depends=('gcc-libs' 'glibc' 'libgl' 'libpng' 'sdl2' 'sfml' 'zlib')
2018-07-02 14:17:45 +00:00
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
2018-08-02 07:46:29 +00:00
cd visualboyadvance-m
git cherry-pick -n a8d0508cf299a58b2a659d6017b049db121de8ba #FS59479
2017-12-31 15:49:08 +00:00
}
build() {
cd build-sdl
2018-07-02 14:17:45 +00:00
cmake ../visualboyadvance-m \
2017-12-31 15:49:08 +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'
make
cd ../build-wx
2018-07-02 14:17:45 +00:00
cmake ../visualboyadvance-m \
2017-12-31 15:49:08 +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'
make
}
package_vbam-sdl() {
2018-07-02 14:17:45 +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+=(
'glib2' 'gtk3' 'openal' 'wxgtk3' 'zip'
'libavcodec.so' 'libavformat.so' 'libavutil.so' 'libswscale.so'
)
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: