diff options
Diffstat (limited to 'misc/solunar')
-rw-r--r-- | misc/solunar/README | 8 | ||||
-rw-r--r-- | misc/solunar/solunar.SlackBuild | 22 | ||||
-rw-r--r-- | misc/solunar/solunar.info | 2 |
3 files changed, 21 insertions, 11 deletions
diff --git a/misc/solunar/README b/misc/solunar/README index a00192fa67..ba7353a6a2 100644 --- a/misc/solunar/README +++ b/misc/solunar/README @@ -1,4 +1,4 @@ -solunar is a simple, command-line utility for rapidly displaying sun- and -moon-related data, such as sunset times and equinoxes. solunar produces -output that can be readily parsed by scripts, although it is reasonably -human-readable. +solunar is a simple, command-line utility for rapidly displaying sun- +and moon-related data, such as sunset times and equinoxes. solunar +produces output that can be readily parsed by scripts, although it is +reasonably human-readable. diff --git a/misc/solunar/solunar.SlackBuild b/misc/solunar/solunar.SlackBuild index 58b0ffd03d..b5e7df5896 100644 --- a/misc/solunar/solunar.SlackBuild +++ b/misc/solunar/solunar.SlackBuild @@ -1,28 +1,38 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for solunar # Written by Cezary M. Kruk (c.kruk@bigfoot.com) +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=solunar VERSION=${VERSION:-0.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -71,4 +81,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/misc/solunar/solunar.info b/misc/solunar/solunar.info index d15bd8e27a..d3d745719e 100644 --- a/misc/solunar/solunar.info +++ b/misc/solunar/solunar.info @@ -1,7 +1,7 @@ PRGNAM="solunar" VERSION="0.1.0" HOMEPAGE="http://kevinboone.net/README_solunar.html" -DOWNLOAD="http://kevinboone.net/solunar.tar.gz" +DOWNLOAD="https://slackware.uk/sbosrcarch/by-md5/e/2/e264e77db001c5ded56725088db36ac0/solunar.tar.gz" MD5SUM="e264e77db001c5ded56725088db36ac0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |