diff options
author | Eric Hameleers <alien@slackware.com> | 2010-06-02 11:28:22 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2010-06-02 11:28:22 +0000 |
commit | 9ac0581cfc719c18bfd0480f5079305c4b82d1bf (patch) | |
tree | eef09b7f0d110addd9fa4abdbe31a07ac422b5c4 /lame/build/lame.SlackBuild | |
parent | 30b55225db71d9ddf9753661caf7a63a1eb784a6 (diff) | |
download | asb-9ac0581cfc719c18bfd0480f5079305c4b82d1bf.tar.gz asb-9ac0581cfc719c18bfd0480f5079305c4b82d1bf.tar.xz |
Updated to 3.98.4
Diffstat (limited to '')
-rwxr-xr-x | lame/build/lame.SlackBuild | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/lame/build/lame.SlackBuild b/lame/build/lame.SlackBuild index 422f3622..989c1865 100755 --- a/lame/build/lame.SlackBuild +++ b/lame/build/lame.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright (c) 2005-2010 Eric Hameleers, Eeeeindhoven, NL +# Copyright (c) 2005-2010 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -38,6 +38,8 @@ # * New stable release. # 3.98.2-2: 30/jan/2010 by Eric Hameleers <alien@slackware.com> # * Rebuild. +# 3.98.4-1: 02/jun/2010 by Eric Hameleers <alien@slackware.com> +# * Updated. # # Run 'sh lame.SlackBuild' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -48,9 +50,9 @@ # Set initial variables: PRGNAM=lame -VERSION=${VERSION:-3.98.2} -SRCVER=${SRCVER:-398-2} -BUILD=${BUILD:-2} +VERSION=${VERSION:-3.98.4} +SRCVER=${SRCVER:-3.98.4} +BUILD=${BUILD:-1} TAG=${TAG:-alien} DOCS="API COPYING ChangeLog* DEFINES HACKING LICENSE README* STYLEGUIDE TODO" @@ -99,12 +101,18 @@ trap 'echo "$0 FAILED at line $LINENO!" | tee $OUTPUT/error-${PRGNAM}.log' ERR set -u P1=${1:-1} +# Save old umask and set to 0022: +_UMASK_=$(umask) +umask 0022 + # Create working directories: +mkdir -p $OUTPUT # place for the package to be saved mkdir -p $TMP/tmp-$PRGNAM # location to build the source -rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build: mkdir -p $PKG # place for the package to be built -rm -rf $PKG/* # erase old package's contents -mkdir -p $OUTPUT # place for the package to be saved +rm -rf $PKG/* # always erase old package's contents +rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build +rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log + # remove old log files # Source file availability: if ! [ -f ${SOURCE} ]; then @@ -140,10 +148,9 @@ cd $TMP/tmp-$PRGNAM echo "Extracting the source archive(s) for $PRGNAM..." tar -xvf ${SOURCE} -mv ${PRGNAM}-${SRCVER} ${PRGNAM}-${VERSION} -cd ${PRGNAM}-${VERSION} +cd ${PRGNAM}-${SRCVER} chown -R root:root . -chmod -R u+w,go+r-w,a-s . +chmod -R u+w,go+r-w,a+X-s . echo Building ... LDFLAGS="$SLKLDFLAGS" \ @@ -201,3 +208,6 @@ md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt +# Restore the original umask: +umask ${_UMASK_} + |