From 5f71011cb96066ece74c6138978d1aa0611544e9 Mon Sep 17 00:00:00 2001 From: rhatto Date: Wed, 14 Oct 2009 17:57:29 +0000 Subject: new mkbuild sections acting as hooks git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@824 04377dda-e619-0410-9926-eae83683ac58 --- trunk/doc/CHANGELOG | 12 ++++++++++++ trunk/mkbuild/generic.mkSlackBuild | 16 ++++++++++++++++ trunk/mkbuild/kde4.mkSlackBuild | 24 ++++++++++++++++++++---- trunk/mkbuild/model.mkbuild | 4 ++++ trunk/mkbuild/perl.mkSlackBuild | 16 ++++++++++++++++ trunk/mkbuild/python.mkSlackBuild | 16 ++++++++++++++++ 6 files changed, 84 insertions(+), 4 deletions(-) diff --git a/trunk/doc/CHANGELOG b/trunk/doc/CHANGELOG index f6d68e8..68cecf2 100644 --- a/trunk/doc/CHANGELOG +++ b/trunk/doc/CHANGELOG @@ -1,6 +1,18 @@ simplepkg changelog =================== +current +======= + + - new mkbuild sections acting as hooks: + - pre_configure + - configure + - pre_make_package + - make_package + - pre_install_package + - install_package + - post_install_package + 0.6 === diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild index 8d98026..985485a 100644 --- a/trunk/mkbuild/generic.mkSlackBuild +++ b/trunk/mkbuild/generic.mkSlackBuild @@ -357,6 +357,10 @@ find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 644 {} \; + off +# Placeholder for customization + + off # Configure CFLAGS="$SLKCFLAGS" \ @@ -365,16 +369,28 @@ CFLAGS="$SLKCFLAGS" \ --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF + off +# Placeholder for customization + + off # Compile make $NUMJOBS || exit $ERROR_MAKE + off +# Placeholder for customization + + off # Install make install DESTDIR="$PKG" || exit $ERROR_INSTALL + off +# Placeholder for customization + + off # Strip binaries ( cd "$PKG" diff --git a/trunk/mkbuild/kde4.mkSlackBuild b/trunk/mkbuild/kde4.mkSlackBuild index 0052319..ac42474 100644 --- a/trunk/mkbuild/kde4.mkSlackBuild +++ b/trunk/mkbuild/kde4.mkSlackBuild @@ -344,6 +344,10 @@ find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 644 {} \; + off +# Placeholder for customization + + off # Configure mkdir -p build @@ -359,17 +363,29 @@ cd build .. + off +# Placeholder for customization + + off - # Compile - make $NUMJOBS || exit $ERROR_MAKE +# Compile +make $NUMJOBS || exit $ERROR_MAKE + off +# Placeholder for customization + + off - # Install - make install DESTDIR=$PKG || exit $ERROR_INSTALL +# Install +make install DESTDIR=$PKG || exit $ERROR_INSTALL cd - + off +# Placeholder for customization + + off # Strip binaries ( cd "$PKG" diff --git a/trunk/mkbuild/model.mkbuild b/trunk/mkbuild/model.mkbuild index d5f05f0..cb3d980 100644 --- a/trunk/mkbuild/model.mkbuild +++ b/trunk/mkbuild/model.mkbuild @@ -150,9 +150,13 @@ off: gpg_signature_check on: manifest_check on: untar_source off: patch_source +off: pre_configure on: configure +off: pre_make_package on: make_package +off: pre_install_package on: install_package +off: post_install_package on: strip_binaries off: compress_manpages off: compress_info_files diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild index 9e07195..ea2451c 100644 --- a/trunk/mkbuild/perl.mkSlackBuild +++ b/trunk/mkbuild/perl.mkSlackBuild @@ -296,11 +296,19 @@ for patch in $patches; do done + off +# Placeholder for customization + + off # Configure perl Makefile.PL || exit $ERROR_CONF + off +# Placeholder for customization + + off # Compile make $NUMJOBS || exit $ERROR_MAKE @@ -311,6 +319,10 @@ make $NUMJOBS || exit $ERROR_MAKE make test + off +# Placeholder for customization + + off # Install make install DESTDIR="$PKG" || exit $ERROR_INSTALL @@ -323,6 +335,10 @@ for file in `find $PKG -name .packlist`; do done + off +# Placeholder for customization + + off # Strip binaries ( cd "$PKG" diff --git a/trunk/mkbuild/python.mkSlackBuild b/trunk/mkbuild/python.mkSlackBuild index 46fec30..9ca43a8 100644 --- a/trunk/mkbuild/python.mkSlackBuild +++ b/trunk/mkbuild/python.mkSlackBuild @@ -357,21 +357,37 @@ find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 644 {} \; + off +# Placeholder for customization + + off # Configure #python setup.py + off +# Placeholder for customization + + off # Compile python setup.py build || exit $ERROR_MAKE + off +# Placeholder for customization + + off # Install python setup.py install --root=$PKG || exit $ERROR_INSTALL + off +# Placeholder for customization + + off # Strip binaries ( cd "$PKG" -- cgit v1.2.3