I know this is opening up an old thread but I have, at long last, had the time and courage to package BibleTime. Thanks for the help Uelsk8s, I couldn't have done anything without it.
I have several questions.... but first the results. Here is my bibletime.SlackBuild :
!/bin/sh
# Heavily based on the Slackware 12.0 SlackBuild
# Requirements: sword, clucene-core
# http://www.bibletime.info
# Packager Vincenzi Loris - slacky@slacky.it
# modified for Vector Linux 5.9 by no2thesame
CWD=`pwd`
TMP=${TMP:-/tmp/tgz}
PKG=$TMP/package-bibletime
NAME=bibletime
VERSION=1.6.5
#CHOST=i486
ARCH=$(uname -m)
BUILD=1vl59
CONFIGURE_TRIPLATE=i486-slackware-linux
if [ "$ARCH" = "i?86" ]; then
SLKCFLAGS="-O2 -march=i586 -mcpu=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fpic"
CONFIGURE_TRIPLATE=x86_64-pc-linux
fi
if [ ! -d $TMP ]; then
mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
mkdir -p $PKG
fi
cd $TMP
tar xjvf $CWD/$NAME-$VERSION.tar.bz2
cd $NAME-$VERSION
find . \( -perm 777 -o -perm 775 -o -perm 711 \) -exec chmod 755 {} \;
find . \( -perm 700 -o -perm 555 -o -perm 511 \) -exec chmod 755 {} \;
find . \( -perm 666 -o -perm 664 -o -perm 600 \) -exec chmod 644 {} \;
find . \( -perm 444 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
chown -R root:root .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
--disable-debug \
--program-prefix= \
--program-suffix= \
--build=$CONFIGURE_TRIPLATE
#--build=$CHOST-slackware-linux
make -j4 || exit 1
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a INSTALL LICENSE README $PKG/usr/doc/$NAME-$VERSION
tar xjvf $CWD/$NAME-i18n-$VERSION.tar.bz2
cd $NAME-i18n-$VERSION
find . \( -perm 777 -o -perm 775 -o -perm 711 \) -exec chmod 755 {} \;
find . \( -perm 700 -o -perm 555 -o -perm 511 \) -exec chmod 755 {} \;
find . \( -perm 666 -o -perm 664 -o -perm 600 \) -exec chmod 644 {} \;
find . \( -perm 444 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \
chown -R root:root .
./configure --prefix=/usr \
--disable-debug \
--program-prefix= \
--program-suffix= \
--build=$CONFIGURE_TRIPLATE
#--build=$CHOST-slackware-linux
make -j4 || exit 1
make install DESTDIR=$PKG
cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
requiredbuilder -v -y -s $CWD $PKG
makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz
if [ "$1" = "--cleanup" ]; then
rm -rf $TMP
fi
A few issues:
the version is more recent than the one you demonstrated, have I altered the slackbuild correctly? I am not confident with my bash abilities.
The resulting file is bibletime-1.6.5-i686-1vl59.tgz is i686 correct?
While it is building I get a lot of lines saying I don't have permission to chown. Should I be in root when I do this?
Installing and testing
I downloaded, modified the Slackbuild, packaged and installed clucene-core and sword as required, then installed BibleTime. It worked perfectly (amazingly!!). I like this version a lot.
I made a description-pak is this correct?:
pkg-name (bibletime-1.6.5-i686-1vl59.tgz)
Description: BibleTime
BibleTime is a Bible study application for Linux. It is based on the
K Desktop Environment and uses the Sword programming library to work
with Bible texts, commentaries, dictionaries and books provided by
the Crosswire Bible Society.
Required: sword, clucene-core
Website: http://www.bibletime.info
License: GNU GPL
Author: Joachim Ansorg, Martin Gruner, James Ots
Please correct anything you see here.
What is my next step?
no2