Add the example template file that contains all variables that can be

used in templates.

Remove all comments from the other templates, if you want to know what
are their meaning, look at the example template.

--HG--
extra : convert_revision : 348bbf4b780be0eba186ba2062cecf05cbbf8a69
This commit is contained in:
Juan RP 2008-09-29 17:59:48 +02:00
parent 7abe1ad2af
commit 06ed761de0
9 changed files with 74 additions and 317 deletions

64
templates/example.tmpl Executable file
View file

@ -0,0 +1,64 @@
# 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"
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# 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"
# 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 ..............................................."

View file

@ -1,52 +1,11 @@
# ----*---- ----*----- # Template file for 'expat-2.0.1'
# Example template build file for 'expat-2.0.1'
# ----*---- ----*-----
#
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file.
pkgname=expat-2.0.1 pkgname=expat-2.0.1
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
extract_sufx=".tar.gz" extract_sufx=".tar.gz"
# Use this if pkgname doesn't match or if there are multiple
# source distribution files.
#distfiles=""
#
# URL to fetch. Do not add a slash at the end.
#
url=http://kent.dl.sourceforge.net/sourceforge/expat url=http://kent.dl.sourceforge.net/sourceforge/expat
# Arguments passed to configure if $build_style = {,gnu_}configure.
#configure_args=""
# Arguments passed to configure through the environment
#configure_env=""
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
build_style=gnu_configure build_style=gnu_configure
# Passed flags to the 'make' command before building the package.
#make_build_args=""
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# Short description, max 1 line of 72 chars.
short_desc="XML parser library written in C" short_desc="XML parser library written in C"
# Maintainer of this pkg: name <email>.
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
# Checksum of file with rmd160.
checksum=d31bcb152adaff9e358968be1ea901e1b4ed3b2f checksum=d31bcb152adaff9e358968be1ea901e1b4ed3b2f
# 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=" long_desc="
This is James Clark's expat XML parser library in C. It is a stream This is James Clark's expat XML parser library in C. It is a stream
oriented parser that requires setting handlers to deal with the oriented parser that requires setting handlers to deal with the

View file

@ -1,56 +1,15 @@
# ----*---- ----*-----
# Template build file for 'glib-2.18.1' # Template build file for 'glib-2.18.1'
# ----*---- ----*-----
#
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file.
pkgname=glib-2.18.1 pkgname=glib-2.18.1
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
extract_sufx=".tar.bz2" extract_sufx=".tar.bz2"
# Patches to be applied to the source before building it.
patch_files="glib-2.18.1-fix-statfs-netbsd.diff" patch_files="glib-2.18.1-fix-statfs-netbsd.diff"
# Use this if pkgname doesn't match or if there are multiple
# source distribution files.
#distfiles=""
# URL to fetch
url=http://ftp.gnome.org/pub/gnome/sources/glib/2.18 url=http://ftp.gnome.org/pub/gnome/sources/glib/2.18
make_cmd="$PKGFS_MASTERDIR/bin/gmake" make_cmd="$PKGFS_MASTERDIR/bin/gmake"
# Arguments passed to configure if $build_style = {,gnu_}configure.
#configure_args=""
# Arguments passed to configure through the environment
configure_env="ac_cv_path_PKG_CONFIG=$PKGFS_MASTERDIR/bin/pkg-config configure_env="ac_cv_path_PKG_CONFIG=$PKGFS_MASTERDIR/bin/pkg-config
ac_cv_func_statfs=no" ac_cv_func_statfs=no"
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
build_style=gnu_configure build_style=gnu_configure
# Passed flags to the 'make' command before building the package.
#make_build_args=""
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# Short description, max 1 line of 72 chars.
short_desc="The GNU library of C routines" short_desc="The GNU library of C routines"
# Maintainer of this pkg: name <email>.
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
# Checksum of file with rmd160.
checksum=264b37584419d983685910adde8f7b282eccc1ad checksum=264b37584419d983685910adde8f7b282eccc1ad
# 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=" long_desc="
GLib is a library containing many useful C routines for things such GLib is a library containing many useful C routines for things such
as trees, hashes, lists and strings. It is a useful general purpose as trees, hashes, lists and strings. It is a useful general purpose

View file

@ -1,47 +1,13 @@
# ----*---- ----*-----
# Template build file for 'gmake-3.81' # Template build file for 'gmake-3.81'
# ----*---- ----*-----
#
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file.
pkgname=gmake-3.81 pkgname=gmake-3.81
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
extract_sufx=".tar.bz2" extract_sufx=".tar.bz2"
# Use this if pkgname doesn't match or if there are multiple
# source distribution files.
distfiles="make-3.81" distfiles="make-3.81"
# URL to fetch
url=http://ftp.gnu.org/pub/gnu/make url=http://ftp.gnu.org/pub/gnu/make
# Arguments passed to configure if $build_style = {,gnu_}configure.
configure_args="--program-prefix=g" configure_args="--program-prefix=g"
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
build_style=gnu_configure build_style=gnu_configure
# Passed flags to the 'make' command before building the package.
make_build_args=""
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# Short description, max 1 line of 72 chars.
short_desc="The GNU make system" short_desc="The GNU make system"
# Maintainer of this pkg: name <email>.
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
# Checksum of file with rmd160.
checksum=79d418e1258ec0d6ba08b1431a4ade3fec54c2b2 checksum=79d418e1258ec0d6ba08b1431a4ade3fec54c2b2
# 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=" long_desc="
GNU Make is a program that determines which pieces of a large GNU Make is a program that determines which pieces of a large
program need to be recompiled and issues the commands to program need to be recompiled and issues the commands to

View file

@ -1,53 +1,15 @@
# ----*---- ----*-----
# Template build file for 'irssi-0.8.12' # Template build file for 'irssi-0.8.12'
# ----*---- ----*-----
#
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file.
pkgname=irssi-0.8.12 pkgname=irssi-0.8.12
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
extract_sufx=".tar.bz2" extract_sufx=".tar.bz2"
# Use this if pkgname doesn't match or if there are multiple
# source distribution files.
#distfiles=""
# URL to fetch
url=http://www.irssi.org/files url=http://www.irssi.org/files
# Arguments passed to configure if $build_style = {,gnu_}configure.
configure_args="--with-terminfo --with-proxy --without-curses" configure_args="--with-terminfo --with-proxy --without-curses"
# Arguments passed to configure through the environment
#configure_env=""
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
build_style=gnu_configure build_style=gnu_configure
# Passed flags to the 'make' command before building the package.
#make_build_args=""
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# Short description, max 1 line of 72 chars.
short_desc="Secure and modular IRC client with text mode user interface" short_desc="Secure and modular IRC client with text mode user interface"
# Maintainer of this pkg: name <email>.
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
# Checksum of file with rmd160.
checksum=0588e6c2df0425c4f36bd84c1621d9ad170b6a81 checksum=0588e6c2df0425c4f36bd84c1621d9ad170b6a81
# 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=" long_desc="
Irssi is a modular IRC client that currently has only text mode user Irssi is a modular IRC client that currently has only text mode user
interface, but 80-90% of the code isn't text mode specific, so other UIs interface, but 80-90% of the code isn't text mode specific, so other UIs
could be created pretty easily. Also, Irssi isn't really even IRC specific could be created pretty easily. Also, Irssi isn't really even IRC specific
anymore, there's already a working SILC module available. Support for other anymore, there's already a working SILC module available. Support for other
protocols like ICQ could be created some day too." protocols like ICQ could be created some day too."

View file

@ -1,52 +1,17 @@
# ----*---- ----*-----
# Template build file for 'libtool-2.2.6a' # Template build file for 'libtool-2.2.6a'
# ----*---- ----*-----
# #
# Local variable only used in this template. # Variable only used in this template.
_mypkgname=libtool-2.2.6 _mypkgname=libtool-2.2.6
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file.
pkgname=${_mypkgname}a pkgname=${_mypkgname}a
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
extract_sufx=".tar.gz" extract_sufx=".tar.gz"
patch_files="${_mypkgname}a-fix-ltmain.sh.diff"
patch_files="libtool-2.2.6a-fix-ltmain.sh.diff"
# Use this if extracted directory from source distribution file
# is not the same than pkgname.
wrksrc=${_mypkgname} wrksrc=${_mypkgname}
# Use this if pkgname doesn't match or if there are multiple
# source distribution files.
#distfiles=""
# URL to fetch
url=http://ftp.gnu.org/pub/gnu/libtool url=http://ftp.gnu.org/pub/gnu/libtool
# Arguments passed to configure if $build_style = {,gnu_}configure.
#configure_args=""
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
build_style=gnu_configure build_style=gnu_configure
make_build_flags="-j8"
make_install_flags=""
# Short description, max 1 line of 72 chars.
short_desc="Generic library support" short_desc="Generic library support"
# Maintainer of this pkg: name <email>.
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
# Checksum of file with rmd160.
checksum=f8862338e2c6ea04332fd5aad4aad5bc35d0e152 checksum=f8862338e2c6ea04332fd5aad4aad5bc35d0e152
# 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=" long_desc="
This is GNU libtool, a generic library support script. Libtool hides This is GNU libtool, a generic library support script. Libtool hides
the complexity of generating special library types (such as shared the complexity of generating special library types (such as shared

View file

@ -1,54 +1,14 @@
# ----*---- ----*-----
# Example template build file for 'perl-5.10.0'. # Example template build file for 'perl-5.10.0'.
# ----*---- ----*-----
#
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file.
pkgname=perl-5.10.0 pkgname=perl-5.10.0
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
extract_sufx=".tar.gz" extract_sufx=".tar.gz"
# Use this if pkgname doesn't match or if there are multiple
# source distribution files.
#distfiles=""
# URL to fetch
url=http://www.cpan.org/src url=http://www.cpan.org/src
# Use this if the configure script is not named 'configure'.
configure_script="Configure" configure_script="Configure"
# Arguments passed to configure if $build_style = {,gnu_}configure.
configure_args="-Dusethreads -des -Dprefix=$PKGFS_DESTDIR/$pkgname configure_args="-Dusethreads -des -Dprefix=$PKGFS_DESTDIR/$pkgname
-Ui_malloc -Uusemymalloc -Dinstallstyle=lib/perl5" -Ui_malloc -Uusemymalloc -Dinstallstyle=lib/perl5"
# Arguments passed to configure through the environment
#configure_env=""
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
build_style=configure build_style=configure
# Passed flags to the 'make' command before building the package.
#make_build_args=""
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# Short description, max 1 line of 72 chars.
short_desc="Practical Extraction and Report Language" short_desc="Practical Extraction and Report Language"
# Maintainer of this pkg: name <email>.
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
# Checksum of file with rmd160.
checksum=c6614fc99a162790a703f91085b24a60af903ba2 checksum=c6614fc99a162790a703f91085b24a60af903ba2
# 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=" long_desc="
Perl is a general-purpose programming language originally developed Perl is a general-purpose programming language originally developed
for text manipulation and now used for a wide range of tasks including for text manipulation and now used for a wide range of tasks including

View file

@ -1,50 +1,11 @@
# ----*---- ----*-----
# Template build file for 'pkg-config-0.23' # Template build file for 'pkg-config-0.23'
# ----*---- ----*-----
#
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file.
pkgname=pkg-config-0.23 pkgname=pkg-config-0.23
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
extract_sufx=".tar.gz" extract_sufx=".tar.gz"
# Use this if pkgname doesn't match or if there are multiple
# source distribution files.
#distfiles=""
# URL to fetch
url=http://pkgconfig.freedesktop.org/releases url=http://pkgconfig.freedesktop.org/releases
# Arguments passed to configure if $build_style = {,gnu_}configure.
#configure_args=""
# Arguments passed to configure through the environment
#configure_env=""
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
build_style=gnu_configure build_style=gnu_configure
# Passed flags to the 'make' command before building the package.
#make_build_args=""
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# Short description, max 1 line of 72 chars.
short_desc="System for managing library compile/link flags" short_desc="System for managing library compile/link flags"
# Maintainer of this pkg: name <email>.
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
# Checksum of file with rmd160.
checksum=0aa5565430d609319917ac2c8ffeaa5e4a509489 checksum=0aa5565430d609319917ac2c8ffeaa5e4a509489
# 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=" long_desc="
pkg-config is a system for managing library compile/link flags that pkg-config is a system for managing library compile/link flags that
works with automake and autoconf. It replaces the ubiquitous works with automake and autoconf. It replaces the ubiquitous

View file

@ -1,50 +1,11 @@
# ----*---- ----*----- # Template build file for 'xstow-0.6.1-unstable'.
# Example template build file for 'xstow-0.6.1-unstable'.
# ----*---- ----*-----
#
# Name of the package, sometimes you need a different name than
# the one used in the source distribution file.
pkgname=xstow-0.6.1-unstable pkgname=xstow-0.6.1-unstable
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
extract_sufx=".tar.bz2" extract_sufx=".tar.bz2"
# Use this if pkgname doesn't match or if there are multiple
# source distribution files.
#distfiles=""
# URL to fetch
url=http://kent.dl.sourceforge.net/sourceforge/xstow/ url=http://kent.dl.sourceforge.net/sourceforge/xstow/
# Arguments passed to configure if $build_style = {,gnu_}configure.
#configure_args=""
# Arguments passed to configure through the environment
#configure_env=""
# Build style: gnu_configure, bsd-makefile, gnu-makefile, configure.
build_style=gnu_configure build_style=gnu_configure
# Passed flags to the 'make' command before building the package.
#make_build_args=""
# Passed flags to the 'make' command before installing the package.
#make_install_args=""
# Short description, max 1 line of 72 chars.
short_desc="Replacement of GNU Stow written in C++" short_desc="Replacement of GNU Stow written in C++"
# Maintainer of this pkg: name <email>.
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
# Checksum of file with rmd160.
checksum=9b99bd9affe9a841503970e903555ce340fcf296 checksum=9b99bd9affe9a841503970e903555ce340fcf296
# 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=" long_desc="
XStow as GNU Stow, are programs for managing the installation of XStow as GNU Stow, are programs for managing the installation of
software packages, keeping them separate (/usr/local/stow/emacs vs. software packages, keeping them separate (/usr/local/stow/emacs vs.