diff options
Diffstat (limited to 'office/when/when.SlackBuild')
-rw-r--r-- | office/when/when.SlackBuild | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/office/when/when.SlackBuild b/office/when/when.SlackBuild index 69d9c535ec9c2..5e744b4b047c5 100644 --- a/office/when/when.SlackBuild +++ b/office/when/when.SlackBuild @@ -22,8 +22,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Modified by slackbuilds.org + PRGNAM=when -VERSION=${VERSION:-1.1.39} +VERSION=${VERSION:-1.1.40} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,28 +42,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ${PRGNAM}_dist -tar xvf $CWD/$PRGNAM.tar.gz -cd ${PRGNAM}_dist +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -69,12 +57,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir -p $PKG/usr/bin -cp $PRGNAM $PKG/usr/bin - -mkdir -p $PKG/usr/man/man1 -cp $PRGNAM.1 $PKG/usr/man/man1 -gzip -9 $PKG/usr/man/man1/$PRGNAM.1 +make install DESTDIR=$PKG MANDIR=/usr/man/man1 +install -m 755 $PRGNAM $PKG/usr/bin/ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README $PKG/usr/doc/$PRGNAM-$VERSION |