mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
makeself: common build, patch instead of sed
This commit is contained in:
parent
95c9ef42bb
commit
619f256612
2 changed files with 15 additions and 18 deletions
11
srcpkgs/makeself/patches/header.patch
Normal file
11
srcpkgs/makeself/patches/header.patch
Normal file
|
@ -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`
|
|
@ -1,31 +1,17 @@
|
||||||
# Template file for 'makeself'
|
# Template file for 'makeself'
|
||||||
pkgname=makeself
|
pkgname=makeself
|
||||||
version=2.4.0
|
version=2.4.0
|
||||||
revision=2
|
revision=3
|
||||||
archs=noarch
|
archs=noarch
|
||||||
create_wrksrc=yes
|
wrksrc="makeself-release-${version}"
|
||||||
makedepends="tar gzip bzip2"
|
|
||||||
depends="${makedepends}"
|
|
||||||
short_desc="Make self-extractable archives on Unix"
|
short_desc="Make self-extractable archives on Unix"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="http://makeself.io"
|
homepage="http://makeself.io"
|
||||||
distfiles="https://github.com/megastep/$pkgname/releases/download/release-$version/$pkgname-$version.run"
|
distfiles="https://github.com/megastep/makeself/archive/release-$version.tar.gz"
|
||||||
checksum=ca66a6113ce98152b85c8d847949f8c90ab9ba798e106bfc225d4ed3c2e2e3e2
|
checksum=76a8c3f3fad1b55c39ba2904a19e74962151f9481df03091d4e54938bdd13f50
|
||||||
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}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
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
|
vmkdir usr/share/man/man1
|
||||||
for f in makeself makeself-header; do
|
for f in makeself makeself-header; do
|
||||||
vbin ${f}.sh ${f}
|
vbin ${f}.sh ${f}
|
||||||
|
|
Loading…
Add table
Reference in a new issue