void-packages/srcpkgs/makeself/template

44 lines
1.4 KiB
Text
Raw Normal View History

2010-12-23 01:12:47 +00:00
# Template file for 'makeself'
pkgname=makeself
version=2.1.5
distfiles="http://megastep.org/$pkgname/$pkgname-$version.run"
build_style=custom-install
short_desc="Make self-extractable archives on Unix"
maintainer="Juan RP <xtraeme@gmail.com>"
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)."
noarch=yes
noextract=yes
Add_dependency full tar
Add_dependency full gzip
Add_dependency full bzip2 ">=0"
do_build()
{
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}.run .
chmod +x ${pkgname}-${version}.run
./${pkgname}-${version}.run
}
do_install()
{
local f
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
}