Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: etlegacy-2.77.1
@ 2021-09-03 19:07 biopsin
  2021-09-03 19:34 ` [PR PATCH] [Updated] " biopsin
                   ` (38 more replies)
  0 siblings, 39 replies; 40+ messages in thread
From: biopsin @ 2021-09-03 19:07 UTC (permalink / raw)
  To: ml

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

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

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 2dcd71af2c5bb65f0ca4c1b2db8f98a6ca599898 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL  | 19 +++++++++++++++++++
 srcpkgs/etlegacy/REMOVE   |  8 ++++++++
 srcpkgs/etlegacy/template | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..fd472dede498
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,19 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "Game depends on original package blobs to run, so lets fetch them"
+			echo ""
+			curl -o /usr/lib/etlegacy/etmain/pak0.pk3 "https://mirror.etlegacy.com/etmain/pak0.pk3" && \
+			curl -o /usr/lib/etlegacy/etmain/pak1.pk3 "https://mirror.etlegacy.com/etmain/pak1.pk3" && \
+			curl -o /usr/lib/etlegacy/etmain/pak2.pk3 "https://mirror.etlegacy.com/etmain/pak2.pk3"
+			res=$?
+			if test "$res" != "0"; then
+				echo ""
+				echo "Download failed, sorry game won't run: exit code $res"
+				echo ""
+			fi
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..9f48de65c9e2
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,32 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release  -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0"
+hostmakedepends="libtool pkg-config curl"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+depends="curl"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+
+case "${XBPS_TARGET_MACHINE}" in
+		x86_64*) configure_args+=" -DCROSS_COMPILE32=0";;
+		i686*) configure_args+=" -DCROSS_COMPILE32=1";;
+		*) broken="This architecture is not currently supported";;
+esac
+
+post_install() {
+	mkdir ${DESTDIR}/usr/share
+	mv ${DESTDIR}/usr/lib/${pkgname}/share ${DESTDIR}/usr/share/etlegacy
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
@ 2021-09-03 19:34 ` biopsin
  2021-09-03 20:05 ` [PR REVIEW] " Chocimier
                   ` (37 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-03 19:34 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From 239f4c0253e55a8d38d97a396ab943017a7ba206 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL  | 19 +++++++++++++++++++
 srcpkgs/etlegacy/REMOVE   |  8 ++++++++
 srcpkgs/etlegacy/template | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..fd472dede498
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,19 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "Game depends on original package blobs to run, so lets fetch them"
+			echo ""
+			curl -o /usr/lib/etlegacy/etmain/pak0.pk3 "https://mirror.etlegacy.com/etmain/pak0.pk3" && \
+			curl -o /usr/lib/etlegacy/etmain/pak1.pk3 "https://mirror.etlegacy.com/etmain/pak1.pk3" && \
+			curl -o /usr/lib/etlegacy/etmain/pak2.pk3 "https://mirror.etlegacy.com/etmain/pak2.pk3"
+			res=$?
+			if test "$res" != "0"; then
+				echo ""
+				echo "Download failed, sorry game won't run: exit code $res"
+				echo ""
+			fi
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..29da064b4a93
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,32 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release  -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+depends="curl"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+
+case "${XBPS_TARGET_MACHINE}" in
+		x86_64*) configure_args+=" -DCROSS_COMPILE32=0";;
+		i686*) configure_args+=" -DCROSS_COMPILE32=1";;
+		*) broken="This architecture is not currently supported";;
+esac
+
+post_install() {
+	mkdir ${DESTDIR}/usr/share
+	mv ${DESTDIR}/usr/lib/${pkgname}/share ${DESTDIR}/usr/share/etlegacy
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
  2021-09-03 19:34 ` [PR PATCH] [Updated] " biopsin
@ 2021-09-03 20:05 ` Chocimier
  2021-09-03 20:05 ` Chocimier
                   ` (36 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-03 20:05 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r702136019

Comment:
vmkdir, vcopy

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
  2021-09-03 19:34 ` [PR PATCH] [Updated] " biopsin
  2021-09-03 20:05 ` [PR REVIEW] " Chocimier
@ 2021-09-03 20:05 ` Chocimier
  2021-09-03 20:05 ` Chocimier
                   ` (35 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-03 20:05 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r702135875

Comment:
Build files suggest that cross compiling for arm is an option.

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (2 preceding siblings ...)
  2021-09-03 20:05 ` Chocimier
@ 2021-09-03 20:05 ` Chocimier
  2021-09-03 20:11 ` biopsin
                   ` (34 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-03 20:05 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r702135302

Comment:
Doing that install time is bad idea. This should be left as exercise to the player, or buildtime by restricted package.

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (3 preceding siblings ...)
  2021-09-03 20:05 ` Chocimier
@ 2021-09-03 20:11 ` biopsin
  2021-09-04 18:17 ` biopsin
                   ` (33 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-03 20:11 UTC (permalink / raw)
  To: ml

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

New review comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r702138851

Comment:
Yea, I knew this would be a wrestle of sort, I'll take a new swing at it :)

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (4 preceding siblings ...)
  2021-09-03 20:11 ` biopsin
@ 2021-09-04 18:17 ` biopsin
  2021-09-04 18:24 ` Chocimier
                   ` (32 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-04 18:17 UTC (permalink / raw)
  To: ml

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

New review comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r702313337

Comment:
@Chocimier is it doable to vendor a script for the enduser to manually execute post install time? 
Im hesitant to restrict it as a first resort, since its expected to know xbps-src.
I eyeballed a just nonfree option; would also be considered a misuse and 219MB of bloat.

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (5 preceding siblings ...)
  2021-09-04 18:17 ` biopsin
@ 2021-09-04 18:24 ` Chocimier
  2021-09-04 18:27 ` [PR REVIEW] " q66
                   ` (31 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-04 18:24 UTC (permalink / raw)
  To: ml

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

New comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-913017924

Comment:
> vendor a script for the enduser to manually execute post install time

Fine. Try to use xbps-fetch to minimize dependencies. Please don't call sudo/doas/... on people's behalf.


^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (6 preceding siblings ...)
  2021-09-04 18:24 ` Chocimier
@ 2021-09-04 18:27 ` q66
  2021-09-04 18:38 ` biopsin
                   ` (30 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-04 18:27 UTC (permalink / raw)
  To: ml

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

New review comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r702314238

Comment:
this whole block just looks wrong

the purpose of CROSS_COMPILE32 as far as I can tell is to force a 32-bit build on a 64-bit x86 host, since x86_64 game is not compatible with 32-bit x86 binary mods

I also don't see anything blocking function on other CPU archs

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (7 preceding siblings ...)
  2021-09-04 18:27 ` [PR REVIEW] " q66
@ 2021-09-04 18:38 ` biopsin
  2021-09-04 20:16 ` ericonr
                   ` (29 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-04 18:38 UTC (permalink / raw)
  To: ml

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

New review comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r702315367

Comment:
Ive added the blocking function, just strugling wrapping my head around the cross compile block.
I'll ponder some more, thank you for the comment.

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (8 preceding siblings ...)
  2021-09-04 18:38 ` biopsin
@ 2021-09-04 20:16 ` ericonr
  2021-09-04 20:47 ` biopsin
                   ` (28 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: ericonr @ 2021-09-04 20:16 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-913034726

Comment:
Have you considered making it restricted? Then the game files could be fetched at build time just fine.

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (9 preceding siblings ...)
  2021-09-04 20:16 ` ericonr
@ 2021-09-04 20:47 ` biopsin
  2021-09-04 20:50 ` biopsin
                   ` (27 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-04 20:47 UTC (permalink / raw)
  To: ml

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

New comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-913038584

Comment:
@ericonr `Im hesitant to restrict it as a first resort, since its expected to know xbps-src.`
or do I Interpreting it wrongly?

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (10 preceding siblings ...)
  2021-09-04 20:47 ` biopsin
@ 2021-09-04 20:50 ` biopsin
  2021-09-07 13:54 ` [PR REVIEW] " biopsin
                   ` (26 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-04 20:50 UTC (permalink / raw)
  To: ml

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

New comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-913038584

Comment:
@ericonr `Im hesitant to restrict it as a first resort, since its expected to know xbps-src.`
or do I Interpreting it wrongly? However if its the most sensable approach I'll fly with it. 

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (11 preceding siblings ...)
  2021-09-04 20:50 ` biopsin
@ 2021-09-07 13:54 ` biopsin
  2021-09-11 15:09 ` [PR PATCH] [Updated] " biopsin
                   ` (25 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-07 13:54 UTC (permalink / raw)
  To: ml

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

New review comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r703533085

Comment:
@q66 mind eyeball this block once more before push..
This eliminates the "--Forcing i386 to cross compile 32bit" build i686 on x86_64 host, 
however I have'nt tested other way around.
```
archs="i686* x86_64*"
if [ -z "$CROSS_BUILD" ] && [ "$XBPS_WORDSIZE" = 32 ]; then
	configure_args+=" -DCROSS_COMPILE32=1"
else
	configure_args+=" -DCROSS_COMPILE32=0"
fi
```


^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (12 preceding siblings ...)
  2021-09-07 13:54 ` [PR REVIEW] " biopsin
@ 2021-09-11 15:09 ` biopsin
  2021-09-11 15:20 ` [PR PATCH] [Updated] [WIP] " biopsin
                   ` (24 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-11 15:09 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From 60f03dc3bcc3ad88ad83474c402f78c5282b0671 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL          | 14 ++++++++++++
 srcpkgs/etlegacy/REMOVE           |  8 +++++++
 srcpkgs/etlegacy/files/get-pak.sh | 23 +++++++++++++++++++
 srcpkgs/etlegacy/template         | 38 +++++++++++++++++++++++++++++++
 4 files changed, 83 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100755 srcpkgs/etlegacy/files/get-pak.sh
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..e28b3c9bfbe0
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,14 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "*********************************************************************"
+			echo "                          !! Important read !!												"
+			echo "   The game depends on original package assets to run and must		"
+			echo "     be downloaded manually by executing the provided script in		"
+			echo "                  /usr/lib/etlegacy/get-pak.sh as root.								"
+			echo "*********************************************************************"
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/files/get-pak.sh b/srcpkgs/etlegacy/files/get-pak.sh
new file mode 100755
index 000000000000..d0d0c7a70b21
--- /dev/null
+++ b/srcpkgs/etlegacy/files/get-pak.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+echo ""
+echo "Game depends on original package blobs to run, so lets fetch 219MB.."
+echo ""
+
+if [[ $EUID != 0 ]]; then
+   echo "..and the script must be run as root" 
+   exit 1
+fi
+
+for i in {0..2}; do
+	xbps-fetch -o /usr/lib/etlegacy/etmain/pak$i.pk3 https://mirror.etlegacy.com/etmain/pak$i.pk3
+done
+
+res=$?
+if [[ "$res" != "0" ]]; then
+	echo ""
+	echo "Download failed, sorry the game won't run."
+else
+	echo ""
+	echo "Done. Start game with 'etl'"
+fi
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..0b99612b8347
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,38 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+restricted=yes
+
+archs="i686* x86_64*"
+if [ -z "$CROSS_BUILD" ] && [ "$XBPS_WORDSIZE" = 32 ]; then
+	configure_args+=" -DCROSS_COMPILE32=1"
+else
+	configure_args+=" -DCROSS_COMPILE32=0"
+fi
+
+post_install() {
+	vlicense COPYING.txt LICENSE
+
+	vcopy ${DESTDIR}/usr/lib/${pkgname}/share usr/share/${pkgname}
+	rm -rf ${DESTDIR}/usr/lib/${pkgname}/share
+
+	# Vendored script to fetch original pkg blobs
+	vcopy ${FILESDIR}/get-pak.sh usr/lib/${pkgname}
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (13 preceding siblings ...)
  2021-09-11 15:09 ` [PR PATCH] [Updated] " biopsin
@ 2021-09-11 15:20 ` biopsin
  2021-09-11 15:28 ` biopsin
                   ` (23 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-11 15:20 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

[WIP] New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From 2bc84c9f8141a0756614bfe20265309ffac37e1f Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL          | 14 ++++++++++++
 srcpkgs/etlegacy/REMOVE           |  8 +++++++
 srcpkgs/etlegacy/files/get-pak.sh | 23 +++++++++++++++++++
 srcpkgs/etlegacy/template         | 37 +++++++++++++++++++++++++++++++
 4 files changed, 82 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100755 srcpkgs/etlegacy/files/get-pak.sh
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..e28b3c9bfbe0
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,14 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "*********************************************************************"
+			echo "                          !! Important read !!												"
+			echo "   The game depends on original package assets to run and must		"
+			echo "     be downloaded manually by executing the provided script in		"
+			echo "                  /usr/lib/etlegacy/get-pak.sh as root.								"
+			echo "*********************************************************************"
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/files/get-pak.sh b/srcpkgs/etlegacy/files/get-pak.sh
new file mode 100755
index 000000000000..d0d0c7a70b21
--- /dev/null
+++ b/srcpkgs/etlegacy/files/get-pak.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+echo ""
+echo "Game depends on original package blobs to run, so lets fetch 219MB.."
+echo ""
+
+if [[ $EUID != 0 ]]; then
+   echo "..and the script must be run as root" 
+   exit 1
+fi
+
+for i in {0..2}; do
+	xbps-fetch -o /usr/lib/etlegacy/etmain/pak$i.pk3 https://mirror.etlegacy.com/etmain/pak$i.pk3
+done
+
+res=$?
+if [[ "$res" != "0" ]]; then
+	echo ""
+	echo "Download failed, sorry the game won't run."
+else
+	echo ""
+	echo "Done. Start game with 'etl'"
+fi
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..a52157839fe6
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,37 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+restricted=yes
+
+archs="i686* x86_64*"
+if [ -z "$CROSS_BUILD" ]; then
+	configure_args+=" -DCROSS_COMPILE32=1"
+else
+	configure_args+=" -DCROSS_COMPILE32=0"
+fi
+
+post_install() {
+	vmkdir usr/share
+	vcopy ${DESTDIR}/usr/lib/${pkgname}/share usr/share/${pkgname}
+	rm -rf ${DESTDIR}/usr/lib/${pkgname}/share
+
+	# Vendored script to fetch original pkg blobs
+	vcopy ${FILESDIR}/get-pak.sh usr/lib/${pkgname}
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (14 preceding siblings ...)
  2021-09-11 15:20 ` [PR PATCH] [Updated] [WIP] " biopsin
@ 2021-09-11 15:28 ` biopsin
  2021-09-12  9:02 ` biopsin
                   ` (22 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-11 15:28 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

[WIP] New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From 7be288f3c2e8fc3e43b478b96ce75d304e163ce7 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL          | 14 ++++++++++++
 srcpkgs/etlegacy/REMOVE           |  8 +++++++
 srcpkgs/etlegacy/files/get-pak.sh | 23 ++++++++++++++++++++
 srcpkgs/etlegacy/template         | 36 +++++++++++++++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100755 srcpkgs/etlegacy/files/get-pak.sh
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..e28b3c9bfbe0
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,14 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "*********************************************************************"
+			echo "                          !! Important read !!												"
+			echo "   The game depends on original package assets to run and must		"
+			echo "     be downloaded manually by executing the provided script in		"
+			echo "                  /usr/lib/etlegacy/get-pak.sh as root.								"
+			echo "*********************************************************************"
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/files/get-pak.sh b/srcpkgs/etlegacy/files/get-pak.sh
new file mode 100755
index 000000000000..d0d0c7a70b21
--- /dev/null
+++ b/srcpkgs/etlegacy/files/get-pak.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+echo ""
+echo "Game depends on original package blobs to run, so lets fetch 219MB.."
+echo ""
+
+if [[ $EUID != 0 ]]; then
+   echo "..and the script must be run as root" 
+   exit 1
+fi
+
+for i in {0..2}; do
+	xbps-fetch -o /usr/lib/etlegacy/etmain/pak$i.pk3 https://mirror.etlegacy.com/etmain/pak$i.pk3
+done
+
+res=$?
+if [[ "$res" != "0" ]]; then
+	echo ""
+	echo "Download failed, sorry the game won't run."
+else
+	echo ""
+	echo "Done. Start game with 'etl'"
+fi
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..06c6fd82cf85
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,36 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+
+archs="i686* x86_64*"
+if [ -z "$CROSS_BUILD" ]; then
+	configure_args+=" -DCROSS_COMPILE32=0"
+else
+	configure_args+=" -DCROSS_COMPILE32=1"
+fi
+
+post_install() {
+	vmkdir usr/share
+	vcopy ${DESTDIR}/usr/lib/${pkgname}/share usr/share/${pkgname}
+	rm -rf ${DESTDIR}/usr/lib/${pkgname}/share
+
+	# Vendored script to fetch original pkg blobs
+	vcopy ${FILESDIR}/get-pak.sh usr/lib/${pkgname}
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (15 preceding siblings ...)
  2021-09-11 15:28 ` biopsin
@ 2021-09-12  9:02 ` biopsin
  2021-09-12  9:03 ` biopsin
                   ` (21 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-12  9:02 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

[WIP] New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From 4d672f570f3a95153a2750593a79d5f1a6b0f390 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL          | 14 ++++++++++++
 srcpkgs/etlegacy/REMOVE           |  8 +++++++
 srcpkgs/etlegacy/files/get-pak.sh | 23 ++++++++++++++++++++
 srcpkgs/etlegacy/template         | 36 +++++++++++++++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100755 srcpkgs/etlegacy/files/get-pak.sh
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..e28b3c9bfbe0
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,14 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "*********************************************************************"
+			echo "                          !! Important read !!												"
+			echo "   The game depends on original package assets to run and must		"
+			echo "     be downloaded manually by executing the provided script in		"
+			echo "                  /usr/lib/etlegacy/get-pak.sh as root.								"
+			echo "*********************************************************************"
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/files/get-pak.sh b/srcpkgs/etlegacy/files/get-pak.sh
new file mode 100755
index 000000000000..d0d0c7a70b21
--- /dev/null
+++ b/srcpkgs/etlegacy/files/get-pak.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+echo ""
+echo "Game depends on original package blobs to run, so lets fetch 219MB.."
+echo ""
+
+if [[ $EUID != 0 ]]; then
+   echo "..and the script must be run as root" 
+   exit 1
+fi
+
+for i in {0..2}; do
+	xbps-fetch -o /usr/lib/etlegacy/etmain/pak$i.pk3 https://mirror.etlegacy.com/etmain/pak$i.pk3
+done
+
+res=$?
+if [[ "$res" != "0" ]]; then
+	echo ""
+	echo "Download failed, sorry the game won't run."
+else
+	echo ""
+	echo "Done. Start game with 'etl'"
+fi
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..b6c4cf5adaa7
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,36 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+archs="arm* i686 x86_64*"
+configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+
+if [ "$CROSS_BUILD" ] || [ "$XBPS_TARGET_WORDSIZE" != 32 ]; then
+	configure_args+=" -DCROSS_COMPILE32=0"
+else
+	configure_args+=" -DCROSS_COMPILE32=1"
+fi
+
+post_install() {
+	vmkdir usr/share
+	vcopy ${DESTDIR}/usr/lib/${pkgname}/share usr/share/${pkgname}
+	rm -rf ${DESTDIR}/usr/lib/${pkgname}/share
+
+	# Vendored script to fetch original pkg blobs
+	vcopy ${FILESDIR}/get-pak.sh usr/lib/${pkgname}
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (16 preceding siblings ...)
  2021-09-12  9:02 ` biopsin
@ 2021-09-12  9:03 ` biopsin
  2021-09-12 16:31 ` [PR REVIEW] " q66
                   ` (20 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-12  9:03 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

[WIP] New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From 418a5e92ecc2de8fcf1fd071c2ba616c10cb38b1 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL          | 14 ++++++++++++
 srcpkgs/etlegacy/REMOVE           |  8 +++++++
 srcpkgs/etlegacy/files/get-pak.sh | 23 ++++++++++++++++++++
 srcpkgs/etlegacy/template         | 36 +++++++++++++++++++++++++++++++
 4 files changed, 81 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100755 srcpkgs/etlegacy/files/get-pak.sh
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..e28b3c9bfbe0
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,14 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "*********************************************************************"
+			echo "                          !! Important read !!												"
+			echo "   The game depends on original package assets to run and must		"
+			echo "     be downloaded manually by executing the provided script in		"
+			echo "                  /usr/lib/etlegacy/get-pak.sh as root.								"
+			echo "*********************************************************************"
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/files/get-pak.sh b/srcpkgs/etlegacy/files/get-pak.sh
new file mode 100755
index 000000000000..d0d0c7a70b21
--- /dev/null
+++ b/srcpkgs/etlegacy/files/get-pak.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+echo ""
+echo "Game depends on original package blobs to run, so lets fetch 219MB.."
+echo ""
+
+if [[ $EUID != 0 ]]; then
+   echo "..and the script must be run as root" 
+   exit 1
+fi
+
+for i in {0..2}; do
+	xbps-fetch -o /usr/lib/etlegacy/etmain/pak$i.pk3 https://mirror.etlegacy.com/etmain/pak$i.pk3
+done
+
+res=$?
+if [[ "$res" != "0" ]]; then
+	echo ""
+	echo "Download failed, sorry the game won't run."
+else
+	echo ""
+	echo "Done. Start game with 'etl'"
+fi
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..174ba0d96675
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,36 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+archs="arm* i686 x86_64*"
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+
+if [ "$CROSS_BUILD" ] || [ "$XBPS_TARGET_WORDSIZE" != 32 ]; then
+	configure_args+=" -DCROSS_COMPILE32=0"
+else
+	configure_args+=" -DCROSS_COMPILE32=1"
+fi
+
+post_install() {
+	vmkdir usr/share
+	vcopy ${DESTDIR}/usr/lib/${pkgname}/share usr/share/${pkgname}
+	rm -rf ${DESTDIR}/usr/lib/${pkgname}/share
+
+	# Vendored script to fetch original pkg blobs
+	vcopy ${FILESDIR}/get-pak.sh usr/lib/${pkgname}
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (17 preceding siblings ...)
  2021-09-12  9:03 ` biopsin
@ 2021-09-12 16:31 ` q66
  2021-09-12 16:31 ` q66
                   ` (19 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-12 16:31 UTC (permalink / raw)
  To: ml

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

New review comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r706861725

Comment:
remove

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (18 preceding siblings ...)
  2021-09-12 16:31 ` [PR REVIEW] " q66
@ 2021-09-12 16:31 ` q66
  2021-09-12 18:21 ` [PR PATCH] [Updated] " biopsin
                   ` (18 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-12 16:31 UTC (permalink / raw)
  To: ml

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

New review comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r706861698

Comment:
remove

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (19 preceding siblings ...)
  2021-09-12 16:31 ` q66
@ 2021-09-12 18:21 ` biopsin
  2021-09-12 18:23 ` [PR REVIEW] " biopsin
                   ` (17 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-12 18:21 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

[WIP] New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From eda210d5b782dae1f8bce8c44f66159c4dcea2e4 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL          | 14 ++++++++++++++
 srcpkgs/etlegacy/REMOVE           |  8 ++++++++
 srcpkgs/etlegacy/files/get-pak.sh | 23 +++++++++++++++++++++++
 srcpkgs/etlegacy/template         | 29 +++++++++++++++++++++++++++++
 4 files changed, 74 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100755 srcpkgs/etlegacy/files/get-pak.sh
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..e28b3c9bfbe0
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,14 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "*********************************************************************"
+			echo "                          !! Important read !!												"
+			echo "   The game depends on original package assets to run and must		"
+			echo "     be downloaded manually by executing the provided script in		"
+			echo "                  /usr/lib/etlegacy/get-pak.sh as root.								"
+			echo "*********************************************************************"
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/files/get-pak.sh b/srcpkgs/etlegacy/files/get-pak.sh
new file mode 100755
index 000000000000..d0d0c7a70b21
--- /dev/null
+++ b/srcpkgs/etlegacy/files/get-pak.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+echo ""
+echo "Game depends on original package blobs to run, so lets fetch 219MB.."
+echo ""
+
+if [[ $EUID != 0 ]]; then
+   echo "..and the script must be run as root" 
+   exit 1
+fi
+
+for i in {0..2}; do
+	xbps-fetch -o /usr/lib/etlegacy/etmain/pak$i.pk3 https://mirror.etlegacy.com/etmain/pak$i.pk3
+done
+
+res=$?
+if [[ "$res" != "0" ]]; then
+	echo ""
+	echo "Download failed, sorry the game won't run."
+else
+	echo ""
+	echo "Done. Start game with 'etl'"
+fi
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..e1e9130905c4
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,29 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+
+post_install() {
+	vmkdir usr/share
+	vcopy ${DESTDIR}/usr/lib/${pkgname}/share usr/share/${pkgname}
+	rm -rf ${DESTDIR}/usr/lib/${pkgname}/share
+
+	# Vendored script to fetch original pkg blobs
+	vcopy ${FILESDIR}/get-pak.sh usr/lib/${pkgname}
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (20 preceding siblings ...)
  2021-09-12 18:21 ` [PR PATCH] [Updated] " biopsin
@ 2021-09-12 18:23 ` biopsin
  2021-09-12 18:26 ` biopsin
                   ` (16 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-12 18:23 UTC (permalink / raw)
  To: ml

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

New review comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r706874893

Comment:
Sorry, the -DCROSS_COMPILE32 flag has me completely confused.
Pushed again omiting flag.

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (21 preceding siblings ...)
  2021-09-12 18:23 ` [PR REVIEW] " biopsin
@ 2021-09-12 18:26 ` biopsin
  2021-09-12 21:26 ` q66
                   ` (15 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-12 18:26 UTC (permalink / raw)
  To: ml

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

New review comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r706875281

Comment:
It defaults to 32-bit without -DCROSS_COMPILE32=0

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (22 preceding siblings ...)
  2021-09-12 18:26 ` biopsin
@ 2021-09-12 21:26 ` q66
  2021-09-12 21:26 ` q66
                   ` (14 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-12 21:26 UTC (permalink / raw)
  To: ml

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

New review comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r706914932

Comment:
then always use -DCROSS_COMPILE32 without any condition 

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (23 preceding siblings ...)
  2021-09-12 21:26 ` q66
@ 2021-09-12 21:26 ` q66
  2021-09-13  5:45 ` [PR PATCH] [Updated] " biopsin
                   ` (13 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-12 21:26 UTC (permalink / raw)
  To: ml

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

New review comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r706914932

Comment:
then always use -DCROSS_COMPILE32=0 without any condition 

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (24 preceding siblings ...)
  2021-09-12 21:26 ` q66
@ 2021-09-13  5:45 ` biopsin
  2021-09-13  6:16 ` biopsin
                   ` (12 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-13  5:45 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

[WIP] New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From 62c524874d4a6cbf5e194f65db3ee3155898ddd4 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL          | 14 ++++++++++++++
 srcpkgs/etlegacy/REMOVE           |  8 ++++++++
 srcpkgs/etlegacy/files/get-pak.sh | 23 +++++++++++++++++++++++
 srcpkgs/etlegacy/template         | 29 +++++++++++++++++++++++++++++
 4 files changed, 74 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100755 srcpkgs/etlegacy/files/get-pak.sh
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL b/srcpkgs/etlegacy/INSTALL
new file mode 100644
index 000000000000..e28b3c9bfbe0
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL
@@ -0,0 +1,14 @@
+# INSTALL
+case "${ACTION}" in
+	post)
+		if [ "${UPDATE}" = "no" ]; then
+			echo ""
+			echo "*********************************************************************"
+			echo "                          !! Important read !!												"
+			echo "   The game depends on original package assets to run and must		"
+			echo "     be downloaded manually by executing the provided script in		"
+			echo "                  /usr/lib/etlegacy/get-pak.sh as root.								"
+			echo "*********************************************************************"
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/files/get-pak.sh b/srcpkgs/etlegacy/files/get-pak.sh
new file mode 100755
index 000000000000..d0d0c7a70b21
--- /dev/null
+++ b/srcpkgs/etlegacy/files/get-pak.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+echo ""
+echo "Game depends on original package blobs to run, so lets fetch 219MB.."
+echo ""
+
+if [[ $EUID != 0 ]]; then
+   echo "..and the script must be run as root" 
+   exit 1
+fi
+
+for i in {0..2}; do
+	xbps-fetch -o /usr/lib/etlegacy/etmain/pak$i.pk3 https://mirror.etlegacy.com/etmain/pak$i.pk3
+done
+
+res=$?
+if [[ "$res" != "0" ]]; then
+	echo ""
+	echo "Download failed, sorry the game won't run."
+else
+	echo ""
+	echo "Done. Start game with 'etl'"
+fi
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..25f20158d39d
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,29 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0 -DCROSS_COMPILE32=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+
+post_install() {
+	vmkdir usr/share
+	vcopy ${DESTDIR}/usr/lib/${pkgname}/share usr/share/${pkgname}
+	rm -rf ${DESTDIR}/usr/lib/${pkgname}/share
+
+	# Vendored script to fetch original pkg blobs
+	vcopy ${FILESDIR}/get-pak.sh usr/lib/${pkgname}
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (25 preceding siblings ...)
  2021-09-13  5:45 ` [PR PATCH] [Updated] " biopsin
@ 2021-09-13  6:16 ` biopsin
  2021-09-13 12:39 ` q66
                   ` (11 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-13  6:16 UTC (permalink / raw)
  To: ml

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

New comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-917875214

Comment:
The i686 becomes a multilib x86_64 pkg, I understand this is wrong.
I've being strugling isolating this outcome without any sound logic,
makes me wonder if I should just override the compiler and the -m32 flag
and pass it conditionaly.

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (26 preceding siblings ...)
  2021-09-13  6:16 ` biopsin
@ 2021-09-13 12:39 ` q66
  2021-09-13 12:42 ` q66
                   ` (10 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-13 12:39 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-918149767

Comment:
you should set `lib32disabled=yes` in the template (see other templates that set it)

the default behavior of xbps-src is to take 32-bit binaries when building for i686 and make them into x86_64 multilib packages; it's not a property of the build

you should also create a patch for this file's section and add it into the PR https://github.com/etlegacy/etlegacy/blob/master/src/qcommon/q_platform.h#L220

the patch should add a new conditional branch:

```
#elif defined __aarch64__
#define ARCH_STRING "aarch64"
```

also, this part of the file should get patched https://github.com/etlegacy/etlegacy/blob/master/src/qcommon/q_platform.h#L231 as `__FLOAT_WORD_ORDER` does not exist on musl - so the `__FLOAT_WORD_ORDER == __BIG_ENDIAN` should get changed to `__BYTE_ORDER == __BIG_ENDIAN`

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (27 preceding siblings ...)
  2021-09-13 12:39 ` q66
@ 2021-09-13 12:42 ` q66
  2021-09-13 12:44 ` q66
                   ` (9 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-13 12:42 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-918149767

Comment:
you should set `lib32disabled=yes` in the template (see other templates that set it)

the default behavior of xbps-src is to take 32-bit binaries when building for i686 and make them into x86_64 multilib packages; it's not a property of the build

you should also create a patch for this file's section and add it into the PR https://github.com/etlegacy/etlegacy/blob/master/src/qcommon/q_platform.h#L220

the patch should add a new conditional branch:

```
#elif defined __aarch64__
#define ARCH_STRING "arm64-v8a"
```

also, this part of the file should get patched https://github.com/etlegacy/etlegacy/blob/master/src/qcommon/q_platform.h#L231 as `__FLOAT_WORD_ORDER` does not exist on musl - so the `__FLOAT_WORD_ORDER == __BIG_ENDIAN` should get changed to `__BYTE_ORDER == __BIG_ENDIAN`

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (28 preceding siblings ...)
  2021-09-13 12:42 ` q66
@ 2021-09-13 12:44 ` q66
  2021-09-13 12:46 ` q66
                   ` (8 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-13 12:44 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-918153662

Comment:
you should also patch a new conditional branch here: https://github.com/etlegacy/etlegacy/blob/master/cmake/ETLPlatform.cmake#L282

```
	elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "ppc64*")
		set(ARCH "ppc64")
	elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc*")
		set(ARCH "ppc")
```

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (29 preceding siblings ...)
  2021-09-13 12:44 ` q66
@ 2021-09-13 12:46 ` q66
  2021-09-13 16:15 ` biopsin
                   ` (7 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: q66 @ 2021-09-13 12:46 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-918153662

Comment:
you should also patch a new conditional branch here: https://github.com/etlegacy/etlegacy/blob/master/cmake/ETLPlatform.cmake#L282

```
	elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "ppc64*")
		set(ARCH "ppc64")
	elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "ppc*")
		set(ARCH "ppc")
```

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (30 preceding siblings ...)
  2021-09-13 12:46 ` q66
@ 2021-09-13 16:15 ` biopsin
  2021-09-13 17:16 ` [PR REVIEW] " Chocimier
                   ` (6 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-13 16:15 UTC (permalink / raw)
  To: ml

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

New comment by biopsin on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#issuecomment-918353702

Comment:
q66 Thank you for the big help, elaborate explanation and spoonfeed!
`lib32disabled=yes` and `CROSS_COMPILE32=0` produces the correct outputs for i686 and x86_64-glibc.
I will take the patch suggestions up with upstream as well ,hopefully it will make the next release.

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (31 preceding siblings ...)
  2021-09-13 16:15 ` biopsin
@ 2021-09-13 17:16 ` Chocimier
  2021-09-13 17:16 ` Chocimier
                   ` (5 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-13 17:16 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r707530801

Comment:
This fits more into readme.voidlinux

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (35 preceding siblings ...)
  2021-09-13 17:16 ` Chocimier
@ 2021-09-13 17:16 ` Chocimier
  2021-09-13 17:16 ` Chocimier
  2021-09-14  6:57 ` [PR PATCH] [Updated] " biopsin
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-13 17:16 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r707532359

Comment:
 changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog.md"

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (33 preceding siblings ...)
  2021-09-13 17:16 ` Chocimier
@ 2021-09-13 17:16 ` Chocimier
  2021-09-13 17:16 ` Chocimier
                   ` (3 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-13 17:16 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r707531024

Comment:
 #!/bin/sh

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (32 preceding siblings ...)
  2021-09-13 17:16 ` [PR REVIEW] " Chocimier
@ 2021-09-13 17:16 ` Chocimier
  2021-09-13 17:16 ` Chocimier
                   ` (4 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-13 17:16 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r707531297

Comment:
if [ "$EUID" != 0 ]; then

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (34 preceding siblings ...)
  2021-09-13 17:16 ` Chocimier
@ 2021-09-13 17:16 ` Chocimier
  2021-09-13 17:16 ` Chocimier
                   ` (2 subsequent siblings)
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-13 17:16 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r707531452

Comment:
 for i in 0 1 2; do

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR REVIEW] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (36 preceding siblings ...)
  2021-09-13 17:16 ` Chocimier
@ 2021-09-13 17:16 ` Chocimier
  2021-09-14  6:57 ` [PR PATCH] [Updated] " biopsin
  38 siblings, 0 replies; 40+ messages in thread
From: Chocimier @ 2021-09-13 17:16 UTC (permalink / raw)
  To: ml

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

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/32824#discussion_r707531624

Comment:
 if [ "$res" != "0" ]; then

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] New package: etlegacy-2.77.1
  2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
                   ` (37 preceding siblings ...)
  2021-09-13 17:16 ` Chocimier
@ 2021-09-14  6:57 ` biopsin
  38 siblings, 0 replies; 40+ messages in thread
From: biopsin @ 2021-09-14  6:57 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages etlegacy
https://github.com/void-linux/void-packages/pull/32824

[WIP] New package: etlegacy-2.77.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glib)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
[closes https://github.com/void-linux/void-packages/issues/32406]

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

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

From 6c515ce0fa13576df734d66a5f614f54f709f17e Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Sun, 8 Aug 2021 10:16:06 +0000
Subject: [PATCH] New package: etlegacy-2.77.1

---
 srcpkgs/etlegacy/INSTALL.msg                  |  2 ++
 srcpkgs/etlegacy/REMOVE                       |  8 +++++
 srcpkgs/etlegacy/files/README.voidlinux       | 14 +++++++++
 srcpkgs/etlegacy/files/get-pak.sh             | 16 ++++++++++
 .../etlegacy/patches/expand_arch_branch.patch | 29 +++++++++++++++++
 srcpkgs/etlegacy/patches/fix_musl.patch       | 11 +++++++
 srcpkgs/etlegacy/template                     | 31 +++++++++++++++++++
 7 files changed, 111 insertions(+)
 create mode 100644 srcpkgs/etlegacy/INSTALL.msg
 create mode 100644 srcpkgs/etlegacy/REMOVE
 create mode 100644 srcpkgs/etlegacy/files/README.voidlinux
 create mode 100755 srcpkgs/etlegacy/files/get-pak.sh
 create mode 100644 srcpkgs/etlegacy/patches/expand_arch_branch.patch
 create mode 100644 srcpkgs/etlegacy/patches/fix_musl.patch
 create mode 100644 srcpkgs/etlegacy/template

diff --git a/srcpkgs/etlegacy/INSTALL.msg b/srcpkgs/etlegacy/INSTALL.msg
new file mode 100644
index 000000000000..bf134e9dd5ea
--- /dev/null
+++ b/srcpkgs/etlegacy/INSTALL.msg
@@ -0,0 +1,2 @@
+See /usr/share/doc/etlegacy/README.voidlinux for further 
+installation instructions and troubleshooting information.
diff --git a/srcpkgs/etlegacy/REMOVE b/srcpkgs/etlegacy/REMOVE
new file mode 100644
index 000000000000..5241941773ad
--- /dev/null
+++ b/srcpkgs/etlegacy/REMOVE
@@ -0,0 +1,8 @@
+# REMOVE
+case "${ACTION}" in
+	pre)
+		if [ "${UPDATE}" = "no" ]; then
+			rm /usr/lib/etlegacy/etmain/pak*.pk3
+		fi
+		;;
+esac
diff --git a/srcpkgs/etlegacy/files/README.voidlinux b/srcpkgs/etlegacy/files/README.voidlinux
new file mode 100644
index 000000000000..97c15ba29cec
--- /dev/null
+++ b/srcpkgs/etlegacy/files/README.voidlinux
@@ -0,0 +1,14 @@
+Game depends on original package assets to run and must be
+downloaded manually after the install by executing the 
+provided script in /usr/lib/etlegacy/get-pak.sh as root
+
+    # /usr/lib/etlegacy/get-pak.sh
+
+If download fails, check if host server is reachable
+
+    $  ping -c3 mirror.etlegacy.com 
+
+please reach out on https://teammuppet.com/home/forums/
+for any game issues or just for a general chat.
+
+Have a nice game!
diff --git a/srcpkgs/etlegacy/files/get-pak.sh b/srcpkgs/etlegacy/files/get-pak.sh
new file mode 100755
index 000000000000..c85daa96a91e
--- /dev/null
+++ b/srcpkgs/etlegacy/files/get-pak.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+[ "$(id -u)" -ne 0 ] && echo "Run as root" && exit 1
+
+echo "Downloading 219MB package asset files to run"
+for i in 0 1 2; do
+	xbps-fetch -o /usr/lib/etlegacy/etmain/pak$i.pk3 https://mirror.etlegacy.com/etmain/pak$i.pk3
+done
+
+if [ "$?" -ne 0 ]; then
+	echo ""
+	echo "See /usr/share/doc/etlegacy/README.voidlinux"
+else
+	echo ""
+	echo "Start game with 'etl'"
+fi
diff --git a/srcpkgs/etlegacy/patches/expand_arch_branch.patch b/srcpkgs/etlegacy/patches/expand_arch_branch.patch
new file mode 100644
index 000000000000..352355a09f1b
--- /dev/null
+++ b/srcpkgs/etlegacy/patches/expand_arch_branch.patch
@@ -0,0 +1,29 @@
+--- a/cmake/ETLPlatform.cmake.ori	2021-03-17 09:51:48.000000000 +0100
++++ b/cmake/ETLPlatform.cmake	2021-09-13 21:57:30.274791781 +0200
+@@ -259,6 +259,14 @@
+ 		message(STATUS "Detected ARMV7 target processor")
+ 		set(ARCH "arm")
+ 		#add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV7=1)
++	elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7-a")
++		set(ARCH "armeabi-v7a")
++	elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
++		set(ARCH "arm64-v8a")
++	elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "ppc64*")
++		set(ARCH "ppc64")
++	elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "ppc*")
++		set(ARCH "ppc")
+ 	else()
+ 		set(ARCH "${CMAKE_SYSTEM_PROCESSOR}")
+ 		message(STATUS "Warning: processor architecture not recognised (${CMAKE_SYSTEM_PROCESSOR})")
+
+--- a/src/qcommon/q_platform.h.ori	2021-03-17 09:51:48.000000000 +0100
++++ b/src/qcommon/q_platform.h	2021-09-13 22:17:09.146901486 +0200
+@@ -218,6 +218,8 @@
+ #define ARCH_STRING "sparc"
+ #elif defined __arm__
+ #define ARCH_STRING "arm" // __ARM_ARCH_'V'__ FIXME: add ARM version to the ARCH_STRING
++#elif defined __aarch64__
++#define ARCH_STRING "arm64-v8a"
+ #elif defined __cris__
+ #define ARCH_STRING "cris"
+ #elif defined __hppa__
diff --git a/srcpkgs/etlegacy/patches/fix_musl.patch b/srcpkgs/etlegacy/patches/fix_musl.patch
new file mode 100644
index 000000000000..9ac2c2f6a6a1
--- /dev/null
+++ b/srcpkgs/etlegacy/patches/fix_musl.patch
@@ -0,0 +1,11 @@
+--- a/src/qcommon/q_platform.h.ori	2021-03-17 09:51:48.000000000 +0100
++++ b/src/qcommon/q_platform.h	2021-09-13 22:14:56.029889098 +0200
+@@ -228,7 +228,7 @@
+ #define ARCH_STRING "sh"
+ #endif
+ 
+-#if __FLOAT_WORD_ORDER == __BIG_ENDIAN
++#if __BYTE_ORDER == __BIG_ENDIAN
+ #define Q3_BIG_ENDIAN
+ #else
+ #define Q3_LITTLE_ENDIAN
diff --git a/srcpkgs/etlegacy/template b/srcpkgs/etlegacy/template
new file mode 100644
index 000000000000..237b5748b308
--- /dev/null
+++ b/srcpkgs/etlegacy/template
@@ -0,0 +1,31 @@
+# Template file for 'etlegacy'
+pkgname=etlegacy
+version=2.77.1
+revision=1
+build_style=cmake
+configure_args="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr \
+ -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_DEFAULT_BASEDIR=/usr/lib/etlegacy \
+ -DCLIENT_GLVND=1 -DBUNDLED_LIBS=0 -DFEATURE_AUTOUPDATE=0 \
+ -DINSTALL_OMNIBOT=0 -DCROSS_COMPILE32=0"
+hostmakedepends="libtool pkg-config"
+makedepends="libglvnd-devel glew-devel SDL2-devel zlib-devel minizip-devel
+ libjpeg-turbo-devel libcurl-devel lua54-devel libvorbis-devel libtheora-devel freetype-devel
+ libpng-devel sqlite-devel libopenal-devel"
+short_desc="Project based on Wolfenstein: Enemy Territory"
+maintainer="biopsin <biopsin@teknik.io>"
+license="GPL-3.0-or-later"
+homepage="https://www.etlegacy.com"
+changelog="https://github.com/etlegacy/etlegacy/wiki/Changelog.md"
+distfiles="https://github.com/etlegacy/etlegacy/archive/refs/tags/v${version}.tar.gz"
+checksum=730a8a52435884b922d8c280fcdeace648902399798c7a973da72fbc4163ebe2
+lib32disabled=yes
+
+post_install() {
+	vmkdir usr/share
+	vcopy ${DESTDIR}/usr/lib/${pkgname}/share usr/share/${pkgname}
+	rm -rf ${DESTDIR}/usr/lib/${pkgname}/share
+
+	# Readme and vendor script to fetch original pkg assets
+	vdoc $FILESDIR/README.voidlinux
+	vcopy $FILESDIR/get-pak.sh usr/lib/${pkgname}
+}

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2021-09-14  6:57 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 19:07 [PR PATCH] New package: etlegacy-2.77.1 biopsin
2021-09-03 19:34 ` [PR PATCH] [Updated] " biopsin
2021-09-03 20:05 ` [PR REVIEW] " Chocimier
2021-09-03 20:05 ` Chocimier
2021-09-03 20:05 ` Chocimier
2021-09-03 20:11 ` biopsin
2021-09-04 18:17 ` biopsin
2021-09-04 18:24 ` Chocimier
2021-09-04 18:27 ` [PR REVIEW] " q66
2021-09-04 18:38 ` biopsin
2021-09-04 20:16 ` ericonr
2021-09-04 20:47 ` biopsin
2021-09-04 20:50 ` biopsin
2021-09-07 13:54 ` [PR REVIEW] " biopsin
2021-09-11 15:09 ` [PR PATCH] [Updated] " biopsin
2021-09-11 15:20 ` [PR PATCH] [Updated] [WIP] " biopsin
2021-09-11 15:28 ` biopsin
2021-09-12  9:02 ` biopsin
2021-09-12  9:03 ` biopsin
2021-09-12 16:31 ` [PR REVIEW] " q66
2021-09-12 16:31 ` q66
2021-09-12 18:21 ` [PR PATCH] [Updated] " biopsin
2021-09-12 18:23 ` [PR REVIEW] " biopsin
2021-09-12 18:26 ` biopsin
2021-09-12 21:26 ` q66
2021-09-12 21:26 ` q66
2021-09-13  5:45 ` [PR PATCH] [Updated] " biopsin
2021-09-13  6:16 ` biopsin
2021-09-13 12:39 ` q66
2021-09-13 12:42 ` q66
2021-09-13 12:44 ` q66
2021-09-13 12:46 ` q66
2021-09-13 16:15 ` biopsin
2021-09-13 17:16 ` [PR REVIEW] " Chocimier
2021-09-13 17:16 ` Chocimier
2021-09-13 17:16 ` Chocimier
2021-09-13 17:16 ` Chocimier
2021-09-13 17:16 ` Chocimier
2021-09-13 17:16 ` Chocimier
2021-09-14  6:57 ` [PR PATCH] [Updated] " biopsin

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/voidlinux-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ https://inbox.vuxu.org/voidlinux-github \
		voidlinux-github@inbox.vuxu.org
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git