Added support for building packages that use GNU or BSD Makefiles
and extraction of zip distfiles via a new helper: unzip-extraction.sh. When a new template uses extract_sufx=".zip" and the unzip command is not found on PKGFS_MASTERDIR/bin/unzip, the unzip package will be installed automatically. Also add jasper-1.900.1 template that uses a zip distfile. --HG-- extra : convert_revision : a979bdd3aef82d64e490606c21aa8f557d76fdbd
This commit is contained in:
parent
39d7aee194
commit
b1c2d7613a
6 changed files with 121 additions and 8 deletions
19
helper-templates/unzip-extraction.sh
Normal file
19
helper-templates/unzip-extraction.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Helper for templates using extract_sufx=".zip" that installs the unzip
|
||||
# package if it's not available in PKGFS_MASTERDIR.
|
||||
|
||||
unzip_version="5.52"
|
||||
|
||||
# If unzip is already installed just return immediately.
|
||||
check_installed_tmpl unzip-$unzip_version
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "=> unzip not installed, will install it."
|
||||
install_tmpl unzip-$unzip_version
|
||||
#
|
||||
# Continue with origin template that called us.
|
||||
#
|
||||
reset_tmpl_vars
|
||||
run_file ${origin_tmpl}
|
||||
fi
|
||||
|
||||
unset unzip_version
|
||||
unzip_cmd=$PKGFS_MASTERDIR/bin/unzip
|
Loading…
Add table
Add a link
Reference in a new issue