From: fosslinux <fosslinux@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] boswars: move binary out of /usr/share.
Date: Sat, 05 Sep 2020 01:12:03 +0200 [thread overview]
Message-ID: <20200904231203.hzc-N2iiQb0jHEBSemxVyq3QnyQ_sHntgTKQ4xZF4t0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24658@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
There is an updated pull request by fosslinux against master on the void-packages repository
https://github.com/fosslinux/void-packages boswars-fix
https://github.com/void-linux/void-packages/pull/24658
boswars: move binary out of /usr/share.
Fixes lint error. Has been tested.
Required for noarch rebuild.
A patch file from https://github.com/void-linux/void-packages/pull/24658.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-boswars-fix-24658.patch --]
[-- Type: text/x-diff, Size: 2468 bytes --]
From 7509c02303fdf226f00b2f511f3c175239692b00 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Fri, 4 Sep 2020 21:20:52 +1000
Subject: [PATCH] boswars: move binary out of /usr/share, remove noarch.
---
srcpkgs/boswars/files/boswars | 2 +-
srcpkgs/boswars/template | 13 ++++++++-----
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/boswars/files/boswars b/srcpkgs/boswars/files/boswars
index 19d73751c7a..aebbf50ba40 100644
--- a/srcpkgs/boswars/files/boswars
+++ b/srcpkgs/boswars/files/boswars
@@ -1,2 +1,2 @@
#!/bin/sh
-exec /usr/share/boswars/boswars -d /usr/share/boswars ${1+"$@"}
+exec /usr/libexec/boswars/boswars -d /usr/share/boswars ${1+"$@"}
diff --git a/srcpkgs/boswars/template b/srcpkgs/boswars/template
index 4587f93cfd0..db713cd559a 100644
--- a/srcpkgs/boswars/template
+++ b/srcpkgs/boswars/template
@@ -1,18 +1,18 @@
# Template file for 'boswars'
pkgname=boswars
version=2.7
-revision=5
+revision=6
wrksrc="${pkgname}-${version}-src"
hostmakedepends="pkg-config libpng-progs python"
makedepends="SDL-devel glu-devel libpng-devel libtheora-devel libvorbis-devel lua51-devel"
depends="${pkgname}-data"
-short_desc="A futuristic real-time strategy game (RTS)"
+short_desc="Futuristic real-time strategy game (RTS)"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-2.0-or-later"
homepage="http://boswars.org"
distfiles="${homepage}/dist/releases/boswars-${version}-src.tar.gz"
checksum=dc3718f531e9ea413cf37e1333b62a4c5e69f1405502d9c59b9e424635135e3e
-broken="fails lint (ELF in /usr/share)"
+python_version=2
post_extract() {
#png bugfix for version 2.7, https://savannah.nongnu.org/bugs/?39610
@@ -37,8 +37,10 @@ do_build() {
}
do_install() {
+ vmkdir usr/libexec/boswars
+ vcopy fbuild/release/boswars usr/libexec/boswars/
+
vmkdir usr/share/boswars
- vcopy fbuild/release/boswars usr/share/boswars/
vcopy campaigns usr/share/boswars/
vcopy doc usr/share/boswars/
vcopy graphics usr/share/boswars/
@@ -49,14 +51,15 @@ do_install() {
vcopy scripts usr/share/boswars/
vcopy sounds usr/share/boswars/
vcopy units usr/share/boswars/
+
vbin ${FILESDIR}/boswars
+
vinstall ${FILESDIR}/boswars.desktop 644 usr/share/applications/
vinstall ${FILESDIR}/boswars.png 644 usr/share/pixmaps/
}
boswars-data_package() {
short_desc+=" - data files"
- archs=noarch
pkg_install() {
vmove usr/share/boswars/campaigns
vmove usr/share/boswars/doc
prev parent reply other threads:[~2020-09-04 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-04 11:23 [PR PATCH] " fosslinux
2020-09-04 11:40 ` [PR PATCH] [Updated] " fosslinux
2020-09-04 23:12 ` fosslinux [this message]
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=20200904231203.hzc-N2iiQb0jHEBSemxVyq3QnyQ_sHntgTKQ4xZF4t0@z \
--to=fosslinux@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).