Major changes adding new targets and supporting build phases.
New changes include adding the following targets: build, configure, extract, fetch and install. Those targets replace the not very understood old flags. Also the code has been restructured to really understand what's going on all the time. --HG-- extra : convert_revision : c591d7ffd5251b7bb80e5e56bf2f4a7909c887dc
This commit is contained in:
parent
f0890caaba
commit
b53922a2ec
8
README
8
README
@ -65,9 +65,9 @@ To list installed (stowned) packages, use this:
|
||||
|
||||
$ pkgfs.sh list
|
||||
|
||||
To only extract the distfile, without configuring/building/installing:
|
||||
To only extract the distfiles, without configuring/building/installing:
|
||||
|
||||
$ pkgfs.sh -i install foo
|
||||
$ pkgfs.sh extract foo
|
||||
|
||||
To not remove the build directory after successful installation:
|
||||
|
||||
@ -75,11 +75,11 @@ To not remove the build directory after successful installation:
|
||||
|
||||
To only fetch the distfile:
|
||||
|
||||
$ pkgfs.sh -e install blah
|
||||
$ pkgfs.sh fetch blah
|
||||
|
||||
To only install the package, _without_ stowning it into the master directory:
|
||||
|
||||
$ pkgfs.sh -i install blob
|
||||
$ pkgfs.sh install-destdir blob
|
||||
|
||||
That's all for now folks. I hope you find it useful, as I do.
|
||||
|
||||
|
@ -4,22 +4,29 @@
|
||||
# and sets the unzip_cmd/extract_cmd variables appropiately.
|
||||
#
|
||||
# If unzip is already installed just return immediately.
|
||||
if [ ! -x $PKGFS_MASTERDIR/bin/unzip ]; then
|
||||
|
||||
if [ ! -x "$PKGFS_MASTERDIR/bin/unzip" ]; then
|
||||
unzip_version="5.52"
|
||||
|
||||
# Save pkgname before installing unzip.
|
||||
save_pkgname=$pkgname
|
||||
|
||||
check_installed_tmpl unzip $unzip_version
|
||||
if [ "$?" -ne 0 ]; then
|
||||
echo "=> unzip not installed, will install it."
|
||||
install_tmpl unzip
|
||||
check_installed_pkg unzip $unzip_version
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "=> \`\`$pkg´´ package requires unzip for extraction."
|
||||
#
|
||||
# Install dependencies required by unzip.
|
||||
#
|
||||
install_builddeps_required_pkg unzip-$unzip_version
|
||||
#
|
||||
# Install the unzip package now.
|
||||
#
|
||||
install_pkg unzip
|
||||
#
|
||||
# Continue with previous template that called us.
|
||||
#
|
||||
reset_tmpl_vars
|
||||
run_file $PKGFS_TEMPLATESDIR/$save_pkgname.tmpl
|
||||
check_tmpl_vars $save_pkgname
|
||||
setup_tmpl $save_pkgname
|
||||
fi
|
||||
|
||||
unset save_pkgname
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Template build file for 'gmake'
|
||||
pkgname=gmake
|
||||
version=3.81
|
||||
wrksrc="make-$version"
|
||||
extract_sufx=".tar.bz2"
|
||||
distfiles="make-$version"
|
||||
url=http://ftp.gnu.org/pub/gnu/make
|
||||
|
@ -1,9 +1,9 @@
|
||||
# Template build file for 'libtool'
|
||||
pkgname=libtool
|
||||
version=2.2.6a
|
||||
wrksrc="$pkgname-2.2.6"
|
||||
extract_sufx=".tar.gz"
|
||||
patch_files="libtool-fix-ltmain.sh.diff"
|
||||
wrksrc=$pkgname-2.2.6
|
||||
url=http://ftp.gnu.org/pub/gnu/libtool
|
||||
build_style=gnu_configure
|
||||
short_desc="Generic library support"
|
||||
|
@ -1,8 +1,8 @@
|
||||
# Template file for 'unzip'
|
||||
pkgname=unzip
|
||||
version=5.52
|
||||
patch_files=$pkgname-fix-unzipsfx.diff
|
||||
wrksrc=$pkgname-$version
|
||||
patch_files=$pkgname-fix-unzipsfx.diff
|
||||
distfiles=unzip552
|
||||
extract_sufx=".tgz"
|
||||
url=ftp://ftp.info-zip.org/pub/infozip/src/
|
||||
|
@ -1,7 +1,6 @@
|
||||
# Template build file for 'zip'.
|
||||
pkgname=zip
|
||||
version=2.32
|
||||
wrksrc="$pkgname-$version"
|
||||
distfiles="zip232"
|
||||
extract_sufx=".tgz"
|
||||
url=ftp://ftp.info-zip.org/pub/infozip/src
|
||||
|
Loading…
Reference in New Issue
Block a user