void-packages/templates/example.tmpl
Juan RP 9078783ed1 Added three new helpers to be used by packages requiring GTK+ and
by pango itself.

To be able to run those helpers once the package has been stowned
properly, another variable available for templates has been added:
"postinstall_helpers".

This accepts a list of template helper names, e.g:

postinstall_helpers="gtk-update-gdkpixbufloaders.sh gtk-update-immodules.sh".

Also rather than setting extract_cmd itself in pkgfs.sh when
extract_sufx=".zip", set it in the helper itself.

--HG--
extra : convert_revision : 0f55c35f201daf6ff2e6d18cc808d0a34d8f4ddf
2008-10-03 17:19:37 +02:00

97 lines
3.5 KiB
Cheetah
Executable file

# Example template build file for pkgs.
#
# Use this file to create new templates, as it contains all variables
# that can currently be used with pkgfs.
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file so in that case use
# the $distfiles var.
#pkgname=example-1.0.0
# Suffix extraction, only supported: tar, tar.gz and tar.bz2.
#extract_sufx=".tar.bz2"
# Use this if $pkgname doesn't match or if there are multiple
# source distribution files (not yet supported).
#distfiles="example-dist-1.0.0.tar.bz2 example-dist-data-1.0.0.tar.bz2"
# Use this if the extracted directory doesn't match with $pkgname.
#wrksrc="example-dist-1.0.0"
# Patches to be applied before the package is being built.
# They can be without compression (.diff) or compressed with gzip/bzip2.
#patch_files="example-fix-blah.diff example-fix-blob.diff.bz2"
# URL to fetch. BEWARE: DO NOT ADD A SLASH AT THE END OF THE URL.
#url=http://www.example.org/releases
# Arguments passed to configure if $build_style = {,gnu_}configure.
#configure_args="--with-foo --without-blah"
# Arguments passed to configure through the environment.
#configure_env="ac_cv_enable_foo=yes"
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
#build_style=gnu_configure
# Passed flags to the 'make' command before building the package.
#make_build_args="-j4"
# Target to be used for building. Use it if default is not the one
# that is needed.
#make_build_target="mytarget"
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# Target to be used for installing. Use it if default is not the
# one that is needed.
#make_install_target="install-foo"
# Make command to be used while building, it needs a full path.
# Uncomment the following line to use GNU make.
#make_cmd="$PKGFS_MASTERDIR/bin/gmake"
# List of pkg-config files to be transformed once the package has
# been installed.
#pkgconfig_override="foo.pc blah.pc"
# Short description for this package, max 1 line of 72 chars.
#short_desc="Example template"
# Maintainer for this template.
#maintainer="Blah <foo@blah.org>"
# Checksum of distribution file, with RMD160.
# To generate it use: "cksum -a rmd160 file|awk '{print $4}'".
#checksum=9010291k1111092019209129019201
# Long description. Preferibly first line should be left blank
# and use a whitespace while starting lines.
# Please also respect 72 chars per line if possible (max 80).
#long_desc="
# First line............................................................
# Second Line...........................................................
# Third line... blah blah blah..........................................
# Nth line... blah blah ..............................................."
# Use the following vars to execute arbitrary stuff at some stage
# while installing a package.
#
# There are three stages: configure, build and install; and
# also two states when this are run: before or after.
#
# Please take a look at templates/perl-run-stuff-{before,after}.sh files
# to know what to do with them.
#
#run_stuff_before="configure build install"
#run_stuff_before_configure_file="example-before-configure.sh"
#run_stuff_before_build_file="example-before-build.sh"
#run_stuff_before_install_file="example-before-install.sh"
#run_stuff_after="install"
#run_stuff_after_install_file="example-after-install.sh"
# Run helpers after the package has been installed and stowned.
# Helpers are located at PKGFS_DISTRIBUTIONDIR/helper-templates.
#
#postinstall_helpers="blah.sh"