void-packages/srcpkgs/makeself/template

43 lines
1.4 KiB
Text

# Template file for 'makeself'
pkgname=makeself
version=2.1.5
revision=2
noextract=yes
short_desc="Make self-extractable archives on Unix"
homepage="http://www.megastep.org/makeself/"
license="GPL-2+"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="http://megastep.org/$pkgname/$pkgname-$version.run"
checksum=8227668bb35c34d86e6f0fe69c7bf4bd2813f51edfcbfc227896b4787b0a1a4e
long_desc="
makeself.sh is a small shell script that generates a self-extractable tar.gz
archive from a directory. The resulting file appears as a shell script
(many of those have a .run suffix), and can be launched as is. The archive
will then uncompress itself to a temporary directory and an optional arbitrary
command will be executed (for example an installation script). This is pretty
similar to archives generated with WinZip Self-Extractor in the Windows world.
Makeself archives also include checksums for integrity self-validation
(CRC and/or MD5 checksums)."
do_build() {
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}.run .
chmod +x ${pkgname}-${version}.run
./${pkgname}-${version}.run
}
do_install() {
cd ${wrksrc}/${pkgname}-${version}
install -d ${DESTDIR}/usr/share/man/man1
for f in makeself makeself-header; do
install -D -m755 ${f}.sh ${DESTDIR}/usr/bin/${f}
done
install -m644 *.1 ${DESTDIR}/usr/share/man/man1
}
makeself_package() {
depends="tar gzip bzip2"
noarch="yes"
pkg_install() {
vmove usr
}
}