diff options
Diffstat (limited to 'office/hunspell-de/hunspell-de.SlackBuild')
-rw-r--r-- | office/hunspell-de/hunspell-de.SlackBuild | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/office/hunspell-de/hunspell-de.SlackBuild b/office/hunspell-de/hunspell-de.SlackBuild index 26029dfd02..a841c99254 100644 --- a/office/hunspell-de/hunspell-de.SlackBuild +++ b/office/hunspell-de/hunspell-de.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for hunspell-de @@ -22,13 +22,23 @@ # 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=hunspell-de VERSION=${VERSION:-20161207} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -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} @@ -50,15 +60,16 @@ find -L . \ make hunspell/de_DE.aff hunspell/de_DE.dic hunspell/de_AT.aff hunspell/de_AT.dic hunspell/de_CH.aff hunspell/de_CH.dic -pushd hunspell -install -dm755 $PKG/usr/share/hunspell -install -m644 de_*.dic de_*.aff $PKG/usr/share/hunspell -install -dm755 $PKG/usr/share/myspell/dicts -cd $PKG/usr/share/myspell/dicts -for file in $PKGDIR/usr/share/hunspell/*; do - ln -sv ../../hunspell/$(basename $file) . -done -popd +cd hunspell + install -dm755 $PKG/usr/share/hunspell + install -m644 de_*.dic de_*.aff $PKG/usr/share/hunspell + install -dm755 $PKG/usr/share/myspell/dicts + cd $PKG/usr/share/myspell/dicts + for file in $PKGDIR/usr/share/hunspell/*; do + ln -sv ../../hunspell/$(basename $file) . + done + cd - +cd .. mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc @@ -68,4 +79,4 @@ mv Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cd $PKG -/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |