diff options
Diffstat (limited to 'office/bibtex2html/bibtex2html.SlackBuild')
-rw-r--r-- | office/bibtex2html/bibtex2html.SlackBuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/office/bibtex2html/bibtex2html.SlackBuild b/office/bibtex2html/bibtex2html.SlackBuild index 86b38c06fc..2b6dd19485 100644 --- a/office/bibtex2html/bibtex2html.SlackBuild +++ b/office/bibtex2html/bibtex2html.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for bibtex2html @@ -23,10 +23,13 @@ # NEGLIGENCE OR 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=bibtex2html VERSION=${VERSION:-1.99} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,14 @@ if [ -z "$ARCH" ]; then 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} @@ -82,10 +92,12 @@ CXXFLAGS="$SLKCFLAGS" \ # so we need to patch this to be based in ${prefix}, as for `BINDIR`. sed -i 's/MANDIR = \/usr\/man/MANDIR = ${prefix}\/man/' Makefile +###sbolint off # Compile the application and install it into the $PKG directory. As # the Makefile does not support `DESTDIR`, in this case we need to use # `prefix`. Only `/usr/bin` and `/usr/man` are installed, so it is # enough to specify `$PKG/usr`. +###sbolint on make make install prefix=$PKG/usr @@ -106,4 +118,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 |