Github messages for voidlinux
 help / color / mirror / Atom feed
From: JohnKallimanis <JohnKallimanis@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: love07
Date: Mon, 30 Mar 2020 20:40:12 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20470@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 363 bytes --]

There is a new pull request by JohnKallimanis against master on the void-packages repository

https://github.com/JohnKallimanis/void-packages love07
https://github.com/void-linux/void-packages/pull/20470

New package: love07
Legacy love required for games by stabyourself

A patch file from https://github.com/void-linux/void-packages/pull/20470.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-love07-20470.patch --]
[-- Type: text/x-diff, Size: 3620 bytes --]

From 3d714f0ec0ff466b50ae4d984e6b72ca4ca3148e Mon Sep 17 00:00:00 2001
From: John Kallimanis <johnkall007@gmail.com>
Date: Mon, 30 Mar 2020 21:11:01 +0300
Subject: [PATCH] New package: love07

Legacy love required for games by stabyourself
---
 srcpkgs/love07/patches/love07.patch      | 22 +++++++++++++++++
 srcpkgs/love07/patches/love07.patch.args |  1 +
 srcpkgs/love07/template                  | 30 ++++++++++++++++++++++++
 srcpkgs/love07/update                    |  1 +
 4 files changed, 54 insertions(+)
 create mode 100644 srcpkgs/love07/patches/love07.patch
 create mode 100644 srcpkgs/love07/patches/love07.patch.args
 create mode 100644 srcpkgs/love07/template
 create mode 100644 srcpkgs/love07/update

diff --git a/srcpkgs/love07/patches/love07.patch b/srcpkgs/love07/patches/love07.patch
new file mode 100644
index 00000000000..1c99c6a16e7
--- /dev/null
+++ b/srcpkgs/love07/patches/love07.patch
@@ -0,0 +1,22 @@
+diff --unified --recursive --text love-HEAD.orig/src/modules/graphics/opengl/Framebuffer.cpp love-HEAD.new/src/modules/graphics/opengl/Framebuffer.cpp
+--- love-HEAD.orig/src/modules/graphics/opengl/Framebuffer.cpp	2019-03-14 12:46:55.032982224 -0400
++++ love-HEAD.new/src/modules/graphics/opengl/Framebuffer.cpp	2019-03-14 12:47:22.356175299 -0400
+@@ -1,3 +1,5 @@
++#define GL_GLEXT_PROTOTYPES
++
+ #include "Framebuffer.h"
+ #include <common/Matrix.h>
+ 
+diff --unified --recursive --text love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp love-HEAD.new/src/modules/graphics/opengl/SpriteBatch.cpp
+--- love-HEAD.orig/src/modules/graphics/opengl/SpriteBatch.cpp	2019-03-14 12:46:55.032982224 -0400
++++ love-HEAD.new/src/modules/graphics/opengl/SpriteBatch.cpp	2019-03-14 12:47:33.346119890 -0400
+@@ -18,6 +18,8 @@
+ * 3. This notice may not be removed or altered from any source distribution.
+ **/
+ 
++#define GL_GLEXT_PROTOTYPES
++
+ #include "SpriteBatch.h"
+ 
+ // STD
+
diff --git a/srcpkgs/love07/patches/love07.patch.args b/srcpkgs/love07/patches/love07.patch.args
new file mode 100644
index 00000000000..2eba1cb3c5c
--- /dev/null
+++ b/srcpkgs/love07/patches/love07.patch.args
@@ -0,0 +1 @@
+-Np1
diff --git a/srcpkgs/love07/template b/srcpkgs/love07/template
new file mode 100644
index 00000000000..c9d5b515143
--- /dev/null
+++ b/srcpkgs/love07/template
@@ -0,0 +1,30 @@
+# Template file for 'love07'
+pkgname=love07
+version=0.7.2
+revision=1
+build_style=gnu-configure
+configure_args="--disable-static --program-suffix=07"
+hostmakedepends="pkg-config"
+makedepends="SDL2-devel devil-devel libopenal-devel lua51-devel freetype-devel
+ physfs-devel libmodplug-devel mpg123-devel libvorbis-devel libtheora-devel"
+depends="hicolor-icon-theme desktop-file-utils"
+short_desc="Framework for writing 2D games in lua"
+maintainer="John Kallimanis <johnkall007@gmail.com>"
+license="Zlib"
+homepage="https://love2d.org/"
+distfiles="https://bitbucket.org/rude/love/downloads/love-${version}-linux-src.tar.gz"
+checksum=a57adcb0cbdc390a9bd8e2fe477bc175799b9ffd3486e01f859a36bf27f7f268
+nocross="LuaJIT-devel is nocross"
+lib32disabled=yes
+
+if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
+	broken="Not yet implemented"
+fi
+
+# Needed because old love does this
+wrksrc=love-HEAD
+
+# Patches stolen from relevant AUR package
+post_patch() {
+	sed -i '70itypedef XID GLXContextID;' "src/modules/graphics/opengl/GLee.h"
+}
diff --git a/srcpkgs/love07/update b/srcpkgs/love07/update
new file mode 100644
index 00000000000..fca77c81152
--- /dev/null
+++ b/srcpkgs/love07/update
@@ -0,0 +1 @@
+pattern='/(get|downloads)/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=(-linux-src)?\.tar)'

             reply	other threads:[~2020-03-30 18:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30 18:40 JohnKallimanis [this message]
2020-04-01 14:20 ` JohnKallimanis
2021-11-06 22:20 ` abenson
2021-11-06 22:20 ` [PR PATCH] [Closed]: " abenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20470@inbox.vuxu.org \
    --to=johnkallimanis@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).