makedeb


fjordlauncher 9.1.0-1


Prism Launcher fork with support for alternative auth servers

Click here to go back to the commit logs for fjordlauncher.

Commit:


Hash: fd6e0232b3022351cac043d09879add824279a21

Message: add support for riscv64

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 9c9e533..0ef34d4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,13 +2,14 @@ generated-by = makedeb
 pkgname = prismlauncher
 pkgbase = prismlauncher
 pkgdesc = Minecraft launcher with ability to manage multiple instances.
-pkgrel = 1
+pkgrel = 2
 pkgver = 7.2
 url = https://prismlauncher.org
 arch = i686
 arch = amd64
 arch = arm64
 arch = armhf
+arch = riscv64
 depends = libqt5svg5
 depends = qt5-image-formats-plugins
 depends = libqt5xml5
diff --git a/PKGBUILD b/PKGBUILD
index d372cb7..e528a40 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,9 +4,9 @@
 
 pkgname=prismlauncher
 pkgver=7.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Minecraft launcher with ability to manage multiple instances."
-arch=('i686' 'amd64' 'arm64' 'armhf')
+arch=('i686' 'amd64' 'arm64' 'armhf' 'riscv64')
 url="https://prismlauncher.org"
 license=('GPL3')
 depends=('libqt5svg5' 'qt5-image-formats-plugins' 'libqt5xml5' 'libqt5core5a' 'libqt5network5' 'libqt5gui5')
@@ -41,9 +41,11 @@ if [[ ${CFLAGS} != *"-mtune"* && ${CFLAGS} != *"-march"* ]]; then
       CFLAGS+=" -march=armv7-a -mtune=generic"
       CXXFLAGS+=" -march=armv7-a -mtune=generic"
       ;;
-    *)
-      CFLAGS+=" -mtune=generic"
-      CXXFLAGS+=" -mtune=generic"
+    riscv64*)
+      CFLAGS+=" -march=rv64imafdc"
+      CXXFLAGS+=" -march=rv64imafdc"
+      CFLAGS=${CFLAGS/-fcf-protection/}
+      CXXFLAGS=${CXXFLAGS/-fcf-protection/}
       ;;
   esac
 fi