diff options
author | Eric Hameleers <alien@slackware.com> | 2008-06-13 09:09:32 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2008-06-13 09:09:32 +0000 |
commit | 30aa5c98efbc298557772486df32e313626dce4b (patch) | |
tree | 1e8a825d5ca4b75a1db66ebe6827fa6fc94f7598 /schrodinger | |
parent | 137c6837fca61e39de73a9a031f62c3780d4e502 (diff) | |
download | asb-30aa5c98efbc298557772486df32e313626dce4b.tar.gz asb-30aa5c98efbc298557772486df32e313626dce4b.tar.xz |
Updated script only
Diffstat (limited to 'schrodinger')
-rwxr-xr-x | schrodinger/build/schrodinger.SlackBuild | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/schrodinger/build/schrodinger.SlackBuild b/schrodinger/build/schrodinger.SlackBuild index 7bea5be0..2705af4f 100755 --- a/schrodinger/build/schrodinger.SlackBuild +++ b/schrodinger/build/schrodinger.SlackBuild @@ -46,13 +46,12 @@ SRCNAM=schroedinger VERSION=${VERSION:-1.0.0} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} +TAG=${TAG:-alien} DOCS="AUTHORS COPYING* NEWS TODO" # Where do we look for sources? -CWD=$(pwd) -SRCDIR=$(dirname $0) -[ "${SRCDIR:0:1}" == "." ] && SRCDIR=${CWD}/${SRCDIR} +SRCDIR=$(cd $(dirname $0); pwd) # Place to build (TMP) package (PKG) and output (OUTPUT) the program: TMP=${TMP:-/tmp/build} @@ -81,9 +80,6 @@ else fi case "$ARCH" in - i386) SLKCFLAGS="-O2 -march=i386 -m${MOPT}=i686" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; i486) SLKCFLAGS="-O2 -march=i486 -m${MOPT}=i686" SLKLDFLAGS=""; LIBDIRSUFFIX="" ;; @@ -106,11 +102,7 @@ mkdir -p $OUTPUT # place for the package to be saved mkdir -p $TMP/tmp-$PRGNAM # location to build the source mkdir -p $PKG # place for the package to be built rm -rf $PKG/* # always erase old package's contents -if [ "$P1" != "--oldbuild" ]; then - # Use the "--oldbuild" parameter to keep old build files and continue; - # By default we remove the remnants of previous build and continue. - rm -rf $TMP/tmp-$PRGNAM/* -fi +rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build # Source file availability: if ! [ -f ${SOURCE} ]; then @@ -182,6 +174,8 @@ fi # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true +cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION find $PKG/usr/doc -type f -exec chmod 644 {} \; # Compress the man page(s): @@ -208,13 +202,13 @@ fi # Build the package: cd $PKG -makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log +makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log cd $OUTPUT -md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz.md5 +md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.tgz.md5 cd - -cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.txt +cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt if [ -f $PKG/install/slack-required ]; then - cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.dep + cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.dep fi # Clean up the extra stuff: |