aboutsummaryrefslogtreecommitdiff
path: root/trunk/mkbuild
diff options
context:
space:
mode:
authorrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>2007-10-21 23:26:09 +0000
committerrudson <rudson@04377dda-e619-0410-9926-eae83683ac58>2007-10-21 23:26:09 +0000
commit0d5e3cee3bacba5e41898e599f189bb6ee0381c5 (patch)
tree0c733d1691fdcdd6ce51685b6aff1a495377fb57 /trunk/mkbuild
parent38ecbdc3e1d7bb4bda83538d3b0dfd00ac55f7e9 (diff)
downloadsimplepkg-0d5e3cee3bacba5e41898e599f189bb6ee0381c5.tar.gz
simplepkg-0d5e3cee3bacba5e41898e599f189bb6ee0381c5.tar.bz2
atualizações ao mkbuild e ao modelo .mkSlackBuild
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@450 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/mkbuild')
-rw-r--r--trunk/mkbuild/generic.mkSlackBuild20
-rw-r--r--trunk/mkbuild/model.mkbuild30
-rw-r--r--trunk/mkbuild/sample-Pyrex-large.mkbuild28
-rw-r--r--trunk/mkbuild/sample-Pyrex-small.mkbuild10
4 files changed, 48 insertions, 40 deletions
diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild
index 7c8620c..777deac 100644
--- a/trunk/mkbuild/generic.mkSlackBuild
+++ b/trunk/mkbuild/generic.mkSlackBuild
@@ -4,7 +4,7 @@
## Version 0.8.1 - Luis ( luis at riseup d0t net)
##
###################################################
-<head> all
+<head> off
#!/bin/bash
#
# [[PROGRAM NAME]].SlackBuild is free software; you can redistribute
@@ -36,7 +36,7 @@ elif [ -f /etc/slackbuildrc ]; then
fi
</slackbuildrc>
-<set_variables> all
+<set_variables> off
# Set variables
CWD="$(pwd)"
SRC_NAME="[[SOURCE NAME]]"
@@ -55,7 +55,7 @@ CONF_OPTIONS=${CONF_OPTIONS:="[[OTHER CONFIGURE ARGS]]"}
NUMJOBS=${NUMJOBS:="[[NUMBER OF JOBS]]"}
</set_variables>
-<slkflags> all
+<slkflags> off
# Set system libraries' path and optmization flags based on $ARCH
LIBDIR="$PREFIX/lib"
@@ -81,7 +81,7 @@ ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
</error_codes>
-<start_structure> all
+<start_structure> off
# Clean up any leftovers of previous builds
rm -rf "$PKG_SRC" 2> /dev/null
rm -rf "$PKG" 2> /dev/null
@@ -136,14 +136,14 @@ fi
gpg --verify "$SRC_DIR/$SRC.sig" "$SRC_DIR/$SRC" || exit $ERROR_GPG
</gpg_signature_check>
-<untar_source> all
+<untar_source> off
# Untar
cd "$TMP"
tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
cd "$PKG_SRC"
</untar_source>
-<path_source> off
+<patch_source> off
# Patch source
patches="[[PATCH FILES]]
$PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff
@@ -155,7 +155,7 @@ for patch in $patches; do
patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$CWD/patches/$patch" || exit $ERROR_PATCH
fi
done
-</path_source>
+</patch_source>
<configure> off
# Configure
@@ -165,12 +165,12 @@ CFLAGS="$SLKCFLAGS" \
--prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF
</configure>
-<make_package> all
+<make_package> off
# Compile
make $NUMJOBS || exit $ERROR_MAKE
</make_package>
-<install_package> all
+<install_package> off
# Install
make install DESTDIR="$PKG" || exit $ERROR_INSTALL
</install_package>
@@ -256,7 +256,7 @@ config path/to/config_file.new
EOSCRIPT
</postinstall_script>
-<build_package> all
+<build_package> off
# Build the package
cd "$PKG"
makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
diff --git a/trunk/mkbuild/model.mkbuild b/trunk/mkbuild/model.mkbuild
index 02877f8..3fb88c0 100644
--- a/trunk/mkbuild/model.mkbuild
+++ b/trunk/mkbuild/model.mkbuild
@@ -91,33 +91,33 @@
#---------------------
# SlackBuild Sections
#---------------------
-# Default enable sections:
+# Default sections:
# head, set_variables, slkflags, start_structure, untar_source,
# make_package, install_package, build_package
# Warning: don't remove '#>>' and "#<<" tags.
#>> Start SlackBuild Sections:
-#all: head
+ on: head
on: slackbuildrc
-#all: set_variables
+ on: set_variables
on: slkflags
on: error_codes
-#all: start_structure
+ on: start_structure
on: download_source
-#off: md5sum_download_and_check_0
-#off: md5sum_download_and_check_1
-#off: gpg_signature_check
-#all: untar_source
-#off: path_source
+off: md5sum_download_and_check_0
+off: md5sum_download_and_check_1
+off: gpg_signature_check
+ on: untar_source
+off: patch_source
on: configure
-#all: make_package
-#all: install_package
+ on: make_package
+ on: install_package
on: strip_binaries
-#off: compress_manpages
-#off: compress_info_files
+off: compress_manpages
+off: compress_info_files
on: install_documentation
on: slackdesc
-#off: postinstall_script
-#all: build_package
+off: postinstall_script
+ on: build_package
on: clean_builds
#<< End SlackBuild Sections
diff --git a/trunk/mkbuild/sample-Pyrex-large.mkbuild b/trunk/mkbuild/sample-Pyrex-large.mkbuild
index 4001238..bbcf7e6 100644
--- a/trunk/mkbuild/sample-Pyrex-large.mkbuild
+++ b/trunk/mkbuild/sample-Pyrex-large.mkbuild
@@ -108,33 +108,33 @@
#---------------------
# SlackBuild Sections
#---------------------
-# Default enable sections:
+# Default sections:
# head, set_variables, slkflags, start_structure, untar_source,
# make_package, install_package, build_package
# Warning: don't remove '#>>' and "#<<" tags.
#>> Start SlackBuild Sections:
-#all: head
+ on: head
on: slackbuildrc
-#all: set_variables
+ on: set_variables
on: slkflags
on: error_codes
-#all: start_structure
+ on: start_structure
on: download_source
on: md5sum_download_and_check_0
-#off: md5sum_download_and_check_1
-#off: gpg_signature_check
-#all: untar_source
-#off: path_source
+off: md5sum_download_and_check_1
+off: gpg_signature_check
+ on: untar_source
+off: path_source
on: configure
-#all: make_package
-#all: install_package
+ on: make_package
+ on: install_package
on: strip_binaries
-#off: compress_manpages
-#off: compress_info_files
+off: compress_manpages
+off: compress_info_files
on: install_documentation
on: slackdesc
-#off: postinstall_script
-#all: build_package
+off: postinstall_script
+ on: build_package
on: clean_builds
#<< End SlackBuild Sections
diff --git a/trunk/mkbuild/sample-Pyrex-small.mkbuild b/trunk/mkbuild/sample-Pyrex-small.mkbuild
index 83dfca9..5dcd4b4 100644
--- a/trunk/mkbuild/sample-Pyrex-small.mkbuild
+++ b/trunk/mkbuild/sample-Pyrex-small.mkbuild
@@ -23,19 +23,27 @@
[[DOWNLOAD FOLDER URL]]="http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/Pyrex-0.9.5.1a.tar.gz"
#
-# Default enable sections:
+# Default sections:
# head, set_variables, slkflags, start_structure, untar_source,
# make_package, install_package, build_package
# Warning: don't remove '#>>' and "#<<" tags.
#>> Start SlackBuild Sections:
+ on: head
on: slackbuildrc
+ on: set_variables
on: slkflags
on: error_codes
+ on: start_structure
on: download_source
+ on: md5sum_download_and_check_0
+ on: untar_source
on: configure
+ on: make_package
+ on: install_package
on: strip_binaries
on: install_documentation
on: slackdesc
+ on: build_package
on: clean_builds
#<< End SlackBuild Sections