Initial import of pkgfs, aka package from sources.
It's a simple wrapper to shell scripts to allow building source distribution files through an easy cli. For now it's only able to fetch/build/install a package into a destination directory. Goal is to be able to have same functionality like GNU's stow. I added three template files to allow building: glib2, gmake and libtool. --HG-- extra : convert_revision : 5e52738f97edc0ff4a9e5de48a75834bf0916651
This commit is contained in:
51
templates/glib2-2.18.1.pkgfs.tmpl
Executable file
51
templates/glib2-2.18.1.pkgfs.tmpl
Executable file
@@ -0,0 +1,51 @@
|
||||
# ----*---- ----*-----
|
||||
# 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
|
||||
|
||||
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
|
||||
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://ftp.gnome.org/pub/gnome/sources/glib/2.18
|
||||
|
||||
# Arguments passed to configure if $build_style = {,gnu_}configure.
|
||||
#configure_args=""
|
||||
|
||||
# Arguments passed to configure through the environment
|
||||
configure_env="ac_cv_func_statfs=no"
|
||||
|
||||
# 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=""
|
||||
|
||||
# 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"
|
||||
|
||||
# Maintainer of this pkg: name <email>.
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
||||
# Checksum of file with rmd160.
|
||||
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="
|
||||
GLib is a library containing many useful C routines for things such
|
||||
as trees, hashes, lists and strings. It is a useful general purpose
|
||||
C library used by projects such as GTK+, GIMP and GNOME."
|
||||
48
templates/gmake-3.81.pkgfs.tmpl
Executable file
48
templates/gmake-3.81.pkgfs.tmpl
Executable file
@@ -0,0 +1,48 @@
|
||||
# ----*---- ----*-----
|
||||
# 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
|
||||
|
||||
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
|
||||
extract_sufx=".tar.bz2"
|
||||
|
||||
# Use this if pkgname doesn't match or if there are multiple
|
||||
# source distribution files.
|
||||
distfiles="make-3.81"
|
||||
|
||||
# URL to fetch
|
||||
url=http://ftp.gnu.org/pub/gnu/make
|
||||
|
||||
# Arguments passed to configure if $build_style = {,gnu_}configure.
|
||||
configure_args="--program-prefix=g"
|
||||
|
||||
# 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=""
|
||||
|
||||
# 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"
|
||||
|
||||
# Maintainer of this pkg: name <email>.
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
||||
# Checksum of file with rmd160.
|
||||
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="
|
||||
GNU Make is a program that determines which pieces of a large
|
||||
program need to be recompiled and issues the commands to
|
||||
recompile them, when necessary."
|
||||
51
templates/libtool-2.2.6a.pkgfs.tmpl
Executable file
51
templates/libtool-2.2.6a.pkgfs.tmpl
Executable file
@@ -0,0 +1,51 @@
|
||||
# ----*---- ----*-----
|
||||
# Template build file for 'libtool-2.2.6a'
|
||||
# ----*---- ----*-----
|
||||
#
|
||||
# Local variable only used in this template.
|
||||
_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
|
||||
|
||||
# Suffix extraction, only supported: zip and tar/tar+(gz|bzip2).
|
||||
extract_sufx=".tar.gz"
|
||||
|
||||
# Use this if extracted directory from source distribution file
|
||||
# is not the same than pkgname.
|
||||
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
|
||||
|
||||
# Arguments passed to configure if $build_style = {,gnu_}configure.
|
||||
#configure_args=""
|
||||
|
||||
# Build style: gnu_configure, bsd-makefile, gnu-makefile, 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"
|
||||
|
||||
# Maintainer of this pkg: name <email>.
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
||||
# Checksum of file with rmd160.
|
||||
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="
|
||||
This is GNU libtool, a generic library support script. Libtool hides
|
||||
the complexity of generating special library types (such as shared
|
||||
libraries) befind a consistent interface."
|
||||
Reference in New Issue
Block a user