void-packages/srcpkgs/makeself/template

32 lines
914 B
Bash

# Template file for 'makeself'
pkgname=makeself
version=2.4.0
revision=1
noarch=yes
create_wrksrc=yes
makedepends="tar gzip bzip2"
depends="${makedepends}"
short_desc="Make self-extractable archives on Unix"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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}
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
}