From 0d5e3cee3bacba5e41898e599f189bb6ee0381c5 Mon Sep 17 00:00:00 2001 From: rudson Date: Sun, 21 Oct 2007 23:26:09 +0000 Subject: atualizações ao mkbuild e ao modelo .mkSlackBuild MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@450 04377dda-e619-0410-9926-eae83683ac58 --- trunk/mkbuild/generic.mkSlackBuild | 20 ++++++++++---------- trunk/mkbuild/model.mkbuild | 30 +++++++++++++++--------------- trunk/mkbuild/sample-Pyrex-large.mkbuild | 28 ++++++++++++++-------------- trunk/mkbuild/sample-Pyrex-small.mkbuild | 10 +++++++++- 4 files changed, 48 insertions(+), 40 deletions(-) (limited to 'trunk/mkbuild') 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) ## ################################################### - all + off #!/bin/bash # # [[PROGRAM NAME]].SlackBuild is free software; you can redistribute @@ -36,7 +36,7 @@ elif [ -f /etc/slackbuildrc ]; then fi - all + 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]]"} - all + 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 - all + 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 - all + off # Untar cd "$TMP" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR cd "$PKG_SRC" - off + 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 - + off # Configure @@ -165,12 +165,12 @@ CFLAGS="$SLKCFLAGS" \ --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF - all + off # Compile make $NUMJOBS || exit $ERROR_MAKE - all + off # Install make install DESTDIR="$PKG" || exit $ERROR_INSTALL @@ -256,7 +256,7 @@ config path/to/config_file.new EOSCRIPT - all + 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 -- cgit v1.2.3