void-packages/srcpkgs/makeself/template
2019-05-07 18:07:29 +02:00

34 lines
1.1 KiB
Bash

# Template file for 'makeself'
pkgname=makeself
version=2.4.0
revision=2
archs=noarch
create_wrksrc=yes
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}
}
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
}