KISS_HOOK: docs
This commit is contained in:
parent
51b02b4c6e
commit
cfa4123121
4
kiss
4
kiss
|
@ -601,7 +601,7 @@ pkg_build() {
|
||||||
|
|
||||||
if [ "$KISS_HOOK" ]; then
|
if [ "$KISS_HOOK" ]; then
|
||||||
log "$pkg" "Running pre-build hook"
|
log "$pkg" "Running pre-build hook"
|
||||||
TYPE=pre PKG=$pkg DEST=$pkg_dir/$pkg . "$KISS_HOOK"
|
TYPE=pre-build PKG=$pkg DEST=$pkg_dir/$pkg . "$KISS_HOOK"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Call the build script, log the output to the terminal
|
# Call the build script, log the output to the terminal
|
||||||
|
@ -626,7 +626,7 @@ pkg_build() {
|
||||||
|
|
||||||
if [ "$KISS_HOOK" ]; then
|
if [ "$KISS_HOOK" ]; then
|
||||||
log "$pkg" "Running post-build hook"
|
log "$pkg" "Running post-build hook"
|
||||||
TYPE=post PKG=$pkg DEST=$pkg_dir/$pkg . "$KISS_HOOK"
|
TYPE=post-build PKG=$pkg DEST=$pkg_dir/$pkg . "$KISS_HOOK"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the manifest file early and make it empty.
|
# Create the manifest file early and make it empty.
|
||||||
|
|
28
kiss.1
28
kiss.1
|
@ -63,6 +63,34 @@ export KISS_RM=usr/share/doc:usr/share/gtk-doc:usr/share/info:usr/share/polkit-1
|
||||||
# Set it to '1' to force.
|
# Set it to '1' to force.
|
||||||
export KISS_FORCE=0
|
export KISS_FORCE=0
|
||||||
|
|
||||||
|
# Hook into kiss through a script.
|
||||||
|
#
|
||||||
|
# This can be used set custom CFLAGS per package, modify builds,
|
||||||
|
# etc. This environment variable must point to a shellscript.
|
||||||
|
#
|
||||||
|
# The script will have the following environment variables set.
|
||||||
|
#
|
||||||
|
# $PKG: Name of the current package .
|
||||||
|
# $TYPE: The type of hook (valid: pre-build, post-build).
|
||||||
|
# $DEST: The full path to where 'make install' will put the package.
|
||||||
|
#
|
||||||
|
# Simple example script:
|
||||||
|
#
|
||||||
|
# case $TYPE in
|
||||||
|
# pre-build)
|
||||||
|
# case $PKG in
|
||||||
|
# zlib) export CFLAGS="-Os -static" ;;
|
||||||
|
# curl) export CFLAGS="-O3" ;;
|
||||||
|
# esac
|
||||||
|
# ;;
|
||||||
|
#
|
||||||
|
# post-build)
|
||||||
|
# # post-build code here.
|
||||||
|
# ;;
|
||||||
|
# esac
|
||||||
|
#
|
||||||
|
export KISS_HOOK=/path/to/script
|
||||||
|
|
||||||
# Root directory.
|
# Root directory.
|
||||||
#
|
#
|
||||||
# Where installed packages will go. You won't ever need
|
# Where installed packages will go. You won't ever need
|
||||||
|
|
Loading…
Reference in New Issue