diff options
author | Eric Hameleers <alien@slackware.com> | 2009-04-18 12:07:10 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2009-04-18 12:07:10 +0000 |
commit | b53b13117e680ed5285439b59d653960c8a25554 (patch) | |
tree | 193d246ef01c46e3a442d435c56f04907506f083 /unixbench/build | |
parent | 978796ddd04d2a6ac3028d477eaa8f26c36282c6 (diff) | |
download | asb-b53b13117e680ed5285439b59d653960c8a25554.tar.gz asb-b53b13117e680ed5285439b59d653960c8a25554.tar.xz |
This one is final
Diffstat (limited to 'unixbench/build')
-rwxr-xr-x | unixbench/build/unixbench.SlackBuild | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/unixbench/build/unixbench.SlackBuild b/unixbench/build/unixbench.SlackBuild index 134cfade..dc796995 100755 --- a/unixbench/build/unixbench.SlackBuild +++ b/unixbench/build/unixbench.SlackBuild @@ -145,16 +145,29 @@ chown -R root:root . chmod -R u+w,go+r-w,a-s . echo Building ... -export LDFLAGS="$SLKLDFLAGS" -export CXXFLAGS="$SLKCFLAGS" export CFLAGS="$SLKCFLAGS" -make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log +make OPTION="$CFLAGS" 2>&1 | tee $OUTPUT/make-${PRGNAM}.log # Install all the needed stuff to the package dir -install -Dp -m0755 Run $PKG/usr/bin/unixbench - -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/unixbench/ -cp -av pgms/ testdir/ $PKG/usr/lib${LIBDIRSUFFIX}/unixbench/ +mkdir -p $PKG/usr/bin +cat <<EOT > $PKG/usr/bin/unixbench +#!/bin/sh +# Store results and temporary files in the homedirectory +# instead of the unixbench directory (which is readonly for most people) +export UB_TMPDIR=\$HOME/unixbench/tmp +export UB_TESTDIR=\$HOME/unixbench/testdir +export UB_RESULTDIR=\$HOME/unixbench/results +mkdir -p \$UB_TMPDIR \$UB_TESTDIR \$UB_RESULTDIR +cd /usr/lib${LIBDIRSUFFIX}/unixbench +echo +read -p "Writing results to \$UB_RESULTDIR ..." -t 3 +echo +./Run +EOT +chmod 755 $PKG/usr/bin/unixbench + +mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/unixbench/{results,tmp} +cp -av Makefile Run src/ pgms/ testdir/ $PKG/usr/lib${LIBDIRSUFFIX}/unixbench/ # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |