diff options
Diffstat (limited to 'misc/heyu/heyu.SlackBuild')
-rw-r--r-- | misc/heyu/heyu.SlackBuild | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/misc/heyu/heyu.SlackBuild b/misc/heyu/heyu.SlackBuild index aad68e4ef2..62e646bd9b 100644 --- a/misc/heyu/heyu.SlackBuild +++ b/misc/heyu/heyu.SlackBuild @@ -1,20 +1,20 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for heyu # Written by B. Watson (yalhcru@gmail.com) +# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details. + PRGNAM=heyu -VERSION=${VERSION:-2.9.3} +VERSION=${VERSION:-2.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -53,23 +53,17 @@ find . \ # include a bunch of program-specific defines, so: sed -i 's/-g -O/'"$SLKCFLAGS"/ Makefile -make -strip --strip-unneeded $PRGNAM +# Don't do interactive "where do I install the config file?" step +sed -i '/\.\/install\.sh *$/d' Makefile -# Makefile is non-standard, just install "manually". -# It's just one binary and some man pages. -mkdir -p $PKG/usr/bin -cp $PRGNAM $PKG/usr/bin +make +strip $PRGNAM +make install BIN=$PKG/usr/bin MAN=$PKG/usr/man/man1 MAN5=$PKG/usr/man/man5 -mkdir -p $PKG/usr/man/man1 -for sec in 1 5; do - for page in *.$sec; do - gzip -9c < $page > $PKG/usr/man/man1/$page.gz - done -done +gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp README* *.txt LICENSE $PKG/usr/doc/$PRGNAM-$VERSION +cp README* *.txt COPYING $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/etc/$PRGNAM |