[arch-commits] Commit in vbam/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:47:42 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:47:41
  Author: felixonmars
Revision: 658596

archrelease: copy trunk to community-staging-x86_64

Added:
  vbam/repos/community-staging-x86_64/
  vbam/repos/community-staging-x86_64/PKGBUILD
    (from rev 658595, vbam/trunk/PKGBUILD)

----------+
 PKGBUILD |   99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 99 insertions(+)

Copied: vbam/repos/community-staging-x86_64/PKGBUILD (from rev 658595, vbam/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:47:41 UTC (rev 658596)
@@ -0,0 +1,99 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+
+pkgbase=vbam
+pkgname=(
+  vbam-sdl
+  vbam-wx
+)
+pkgver=2.1.4
+pkgrel=2
+pkgdesc='Nintendo GameBoy Advance emulator'
+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=09fbcbac07148ea32add848722dab34a7eb4f6b5)
+sha256sums=(SKIP)
+validpgpkeys=(A0C0E526E36FD2138C149D4D08AB596679D86240) # Rafael Kitover <rkitover at gmail.com>
+
+pkgver() {
+  cd visualboyadvance-m
+
+  git describe --tags | sed 's/^v//'
+}
+
+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
+
+  cmake ../visualboyadvance-m \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_SKIP_RPATH=TRUE \
+    -DENABLE_SDL=TRUE \
+    -DENABLE_WX=FALSE \
+    -DENABLE_LINK=TRUE
+  make
+
+  cd ../build-wx
+
+  cmake ../visualboyadvance-m \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_SKIP_RPATH=TRUE \
+    -DENABLE_SDL=FALSE \
+    -DENABLE_WX=TRUE \
+    -DENABLE_FFMPEG=TRUE \
+    -DENABLE_LINK=TRUE \
+    -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3
+  make
+}
+
+package_vbam-sdl() {
+  backup=(etc/vbam.cfg)
+  conflicts=(vbam-wx)
+
+  make DESTDIR="${pkgdir}" -C build-sdl install
+}
+
+package_vbam-wx() {
+  depends+=(
+    glib2
+    gtk3
+    libavcodec.so
+    libavformat.so
+    libavutil.so
+    libswscale.so
+    openal
+    wxgtk3
+    zip
+  )
+  conflicts=(vbam-sdl)
+
+  make DESTDIR="${pkgdir}" -C build-wx install
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list