Browse Source

d/nsis: Upgraded to nsis-2.45.

slackware-14.2
Damien Goutte-Gattat 13 years ago
parent
commit
170dda7868
  1. 1
      d/nsis/nsis-2.42-src.tar.bz2.sha1
  2. 1
      d/nsis/nsis-2.45-src.tar.bz2.sha1
  3. 26
      d/nsis/nsis.SlackBuild

1
d/nsis/nsis-2.42-src.tar.bz2.sha1

@ -1 +0,0 @@
2087eeb8acc7a8d76b9abb0e4e8828077baeca55 nsis-2.42-src.tar.bz2

1
d/nsis/nsis-2.45-src.tar.bz2.sha1

@ -0,0 +1 @@
ce02adf68dbedc798615ffb212d27a9b03d5defb nsis-2.45-src.tar.bz2

26
d/nsis/nsis.SlackBuild

@ -26,23 +26,29 @@
# <http://nsis.sourceforge.net/>.
#
# Depends: d/scons, d/mingw32
#
# Note: NSIS is a 32-bit program. On Slackware64, you need a compiler
# able to generate 32-bit binaries and the corresponding 32-bit
# libraries; these are provided by Eric Hameleers' "multilib"
# packages: <http://connie.slackware.com/~alien/multilib/>.
# Source package infos
NAMESRC=${NAMESRC:-nsis}
VERSION=${VERSION:-2.42}
VERSION=${VERSION:-2.45}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.tar.bz2}
WGET=${WGET:-http://surfnet.dl.sourceforge.net/sourceforge/nsis/$ARCHIVE}
# Built package infos
NAMETGZ=${NAMETGZ:-nsis}
NAMEPKG=${NAMEPKG:-nsis}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-i486}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -62,6 +68,9 @@ case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
@ -69,7 +78,8 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget "$WGET"
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -82,10 +92,10 @@ cd $NAME
find . -type f -exec chmod 644 {} \;
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
scons -j 3 install \
scons -j $JOBS install \
PREFIX=/usr \
PREFIX_CONF=/etc \
PREFIX_DOC=/usr/doc/$NAMETGZ-$VERSION \
PREFIX_DOC=/usr/doc/$NAMEPKG-$VERSION \
PREFIX_DEST=$PKG
mv $PKG/etc/nsisconf.nsh $PKG/etc/nsisconf.nsh.new
@ -99,7 +109,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save