Blame env-builder-data/build/script/packet/nsis-3.02.1.sh

31c087
DEPS="zlib-1.2.11"
31c087
DEPS_NATIVE="scons-3.0.1"
31c087
31c087
PK_DIRNAME="nsis-3.02.1-src"
31c087
PK_ARCHIVE="$PK_DIRNAME.tar.bz2"
31c087
PK_URL="http://prdownloads.sourceforge.net/nsis/$PK_ARCHIVE"
31c087
f0ec65
#TODO: hardcoded path to mingw binaries
f0ec65
#TODO: untracked dependency for zlib win32
f0ec65
f0ec65
PK_PATH="/usr/local/i686-w64-mingw32/sys-root/bin:$PATH"
f0ec65
PK_ZLIB_W32="$PACKET_BUILD_DIR/win-32/zlib-1.2.11/env"
f0ec65
PK_NSIS_MAX_STRLEN=131072
f0ec65
31c087
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
31c087
31c087
pkbuild() {
31c087
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1
f0ec65
    PATH="$PK_PATH" scons \
31c087
        PREFIX="$INSTALL_PACKET_DIR" \
f0ec65
        ZLIB_W32="$PK_ZLIB_W32" \
31c087
        SKIPUTILS="NSIS Menu" \
f0ec65
        NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \
31c087
     || return 1 
31c087
}
31c087
31c087
pkinstall() {
31c087
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
f0ec65
    PATH="$PK_PATH" scons \
31c087
        PREFIX="$INSTALL_PACKET_DIR" \
f0ec65
        ZLIB_W32="$PK_ZLIB_W32" \
31c087
        SKIPUTILS="NSIS Menu" \
f0ec65
        NSIS_MAX_STRLEN=$PK_NSIS_MAX_STRLEN \
31c087
        install \
31c087
     || return 1 
31c087
}