Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] makeself: common build, patch instead of sed
Date: Thu, 13 Jun 2019 17:06:56 +0200	[thread overview]
Message-ID: <20190613150656.yOycWeh7UVSMnSdPxUrPbwg-YwdKdQGdO1DAkSNlFz4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12440@inbox.vuxu.org>

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

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

https://github.com/innerspacepilot/void-packages makeself
https://github.com/void-linux/void-packages/pull/12440

makeself: common build, patch instead of sed


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

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

From 6c4af8e82158c9ea5e062a48decde8d5f9710af0 Mon Sep 17 00:00:00 2001
From: innerspacepilot <innerspacepilot@gmx.com>
Date: Thu, 13 Jun 2019 08:05:12 +0000
Subject: [PATCH] makeself: common build, patch instead of sed

---
 srcpkgs/makeself/patches/header.patch | 11 +++++++++++
 srcpkgs/makeself/template             | 21 +++++----------------
 2 files changed, 16 insertions(+), 16 deletions(-)
 create mode 100644 srcpkgs/makeself/patches/header.patch

diff --git a/srcpkgs/makeself/patches/header.patch b/srcpkgs/makeself/patches/header.patch
new file mode 100644
index 00000000000..75c8cc8cd4e
--- /dev/null
+++ b/srcpkgs/makeself/patches/header.patch
@@ -0,0 +1,11 @@
+--- makeself.sh.orig	2019-06-13 07:22:52.406415309 +0000
++++ makeself.sh		2019-06-13 07:23:10.116346635 +0000
+@@ -185,7 +185,7 @@
+ TAR_EXTRA=""
+ GPG_EXTRA=""
+ DU_ARGS=-ks
+-HEADER=`dirname "$0"`/makeself-header.sh
++HEADER=`dirname "$0"`/makeself-header
+ TARGETDIR=""
+ NOOVERWRITE=n
+ DATE=`LC_ALL=C date`
diff --git a/srcpkgs/makeself/template b/srcpkgs/makeself/template
index 99494b26321..eace65a192d 100644
--- a/srcpkgs/makeself/template
+++ b/srcpkgs/makeself/template
@@ -1,34 +1,23 @@
 # Template file for 'makeself'
 pkgname=makeself
 version=2.4.0
-revision=2
+revision=3
 archs=noarch
-create_wrksrc=yes
+wrksrc="${pkgname}-release-${version}"
 makedepends="tar gzip bzip2"
 depends="${makedepends}"
 short_desc="Make self-extractable archives on Unix"
 maintainer="Juan RP <xtraeme@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="http://makeself.io"
-distfiles="https://github.com/megastep/$pkgname/releases/download/release-$version/$pkgname-$version.run"
-checksum=ca66a6113ce98152b85c8d847949f8c90ab9ba798e106bfc225d4ed3c2e2e3e2
-skip_extraction="${pkgname}-${version}.run"
-
-do_build() {
-	cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.run .
-	chmod +x ${pkgname}-${version}.run
-	./${pkgname}-${version}.run --target ${pkgname}-${version}
-}
+distfiles="https://github.com/megastep/$pkgname/archive/release-$version.tar.gz"
+checksum=76a8c3f3fad1b55c39ba2904a19e74962151f9481df03091d4e54938bdd13f50
 
 do_install() {
-	cd ${wrksrc}/${pkgname}-${version}
-
-	# rename makeself-header.sh to makeself-header inside makeself.sh because it will be renamed later
-	sed -i 's/^HEADER=\`dirname "$0"\`\/makeself-header.sh$/HEADER=\`dirname "$0"\`\/makeself-header/' makeself.sh
-
 	vmkdir usr/share/man/man1
 	for f in makeself makeself-header; do
 		vbin ${f}.sh ${f}
 	done
 	install -m644 *.1 ${DESTDIR}/usr/share/man/man1
 }
+

  parent reply	other threads:[~2019-06-13 15:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-13 13:24 [PR PATCH] " voidlinux-github
2019-06-13 15:06 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-13 15:06 ` voidlinux-github [this message]
2019-06-14 12:28 ` voidlinux-github
2019-06-14 12:28 ` voidlinux-github
2019-06-14 19:01 ` voidlinux-github
2019-06-14 19:01 ` voidlinux-github
2019-06-14 20:40 ` [PR PATCH] [Merged]: " voidlinux-github

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=20190613150656.yOycWeh7UVSMnSdPxUrPbwg-YwdKdQGdO1DAkSNlFz4@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).