diff options
Diffstat (limited to 'system/hal-flash')
-rw-r--r-- | system/hal-flash/hal-flash.SlackBuild | 26 | ||||
-rw-r--r-- | system/hal-flash/hal-flash.info | 2 |
2 files changed, 20 insertions, 8 deletions
diff --git a/system/hal-flash/hal-flash.SlackBuild b/system/hal-flash/hal-flash.SlackBuild index a93b051b78..4aa8fa3e84 100644 --- a/system/hal-flash/hal-flash.SlackBuild +++ b/system/hal-flash/hal-flash.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for hal-flash. @@ -22,26 +22,36 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=hal-flash VERSION=${VERSION:-0.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} 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" @@ -98,8 +108,10 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + 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/system/hal-flash/hal-flash.info b/system/hal-flash/hal-flash.info index 60d1882fea..89cb966297 100644 --- a/system/hal-flash/hal-flash.info +++ b/system/hal-flash/hal-flash.info @@ -1,7 +1,7 @@ PRGNAM="hal-flash" VERSION="0.1" HOMEPAGE="https://github.com/cshorler/hal-flash" -DOWNLOAD="https://github.com/cshorler/hal-flash/archive/v0.1.tar.gz" +DOWNLOAD="https://github.com/cshorler/hal-flash/archive/v0.1/hal-flash-0.1.tar.gz" MD5SUM="0b44c2521c2a58fca5fed817e565c0d7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |