diff options
author | Eric Hameleers <alien@slackware.com> | 2006-01-13 15:06:46 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2006-01-13 15:06:46 +0000 |
commit | 9cb8b4c8a8f4ce13d9ccddbfae7017c321266238 (patch) | |
tree | ea90a99f42b66673c062207c657a70dea9c84661 /psi | |
parent | 9122e37fd56d6a60690ec3c03f77d731c83c773b (diff) | |
download | asb-9cb8b4c8a8f4ce13d9ccddbfae7017c321266238.tar.gz asb-9cb8b4c8a8f4ce13d9ccddbfae7017c321266238.tar.xz |
UPdated to the final 0.10 release (incl language packs);
The script will now automatically download everything.
Diffstat (limited to 'psi')
-rwxr-xr-x | psi/build/psi.SlackBuild | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/psi/build/psi.SlackBuild b/psi/build/psi.SlackBuild index 560cfb8c..8667f0ae 100755 --- a/psi/build/psi.SlackBuild +++ b/psi/build/psi.SlackBuild @@ -1,12 +1,14 @@ #!/bin/sh +# Copyright (c) 2006 Eric Hameleers <alien@slackware.com> +# Distributed under the terms of the GNU General Public License, Version 2 # $Id$ # ----------------------------------------------------------------------------- # # Slackware SlackBuild script # =========================== -# By: Eric Hameleers +# By: Eric Hameleers <alien@slackware.com> # For: psi -# URL: http://psi.affinix.com/ +# URL: http://psi-im.org/ # Needs: Qt 3.1.0 *mulithreaded* # zlib 1.1.4 # Optional: qca 1.0, qca-tls 1.0 (for SLL/TLS connections to the server) @@ -25,6 +27,8 @@ # * Test-2. # 0.10-test3:28/nov/2005 by Eric Hameleers # * Test-3. +# 0.10-1: 13/jan/2006 by Eric Hameleers <alien@slackware.com> +# * The final release is here (including laguage packs). # # Run 'sh SlackBuild --cleanup' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -40,8 +44,7 @@ if [ "$TMP" = "" ]; then fi PRGNAM=psi -SRCVER=0.10-test3 -VERSION=0.10.test3 +VERSION=0.10 ARCH=${ARCH:-i486} BUILD=1 @@ -59,11 +62,23 @@ PKG=$TMP/package-$PRGNAM if [ ! -d $TMP/tmp-$PRGNAM ]; then mkdir -p $TMP/tmp-$PRGNAM # location to build the source +else + rm -rf $TMP/tmp-$PRGNAM/* fi if [ ! -d $PKG ]; then mkdir -p $PKG # place for the package to be built +else + rm -rf $PKG/* + rm -rf $PKG-lang/* fi +# Get the source archive if not yet present +if ! [ -f ${PRGNAM}-${VERSION}.tar.bz2 ]; then + echo "Downloading source archive for $PRGNAM - ${VERSION}" + URL="http://ovh.dl.sourceforge.net/sourceforge/${PRGNAM}/${PRGNAM}-${VERSION}.tar.bz2" + wget -nv "$URL" + if [ $? -ne 0 ]; then echo "Download failed! Aborting the build."; exit 1; fi +fi # --- PACKAGE BUILDING --- @@ -71,7 +86,6 @@ echo "++" echo "|| $PRGNAM-$VERSION" echo "++" -rm -rf $PKG/* cd $PKG @@ -86,9 +100,9 @@ cd $TMP/tmp-$PRGNAM # --- TARBALL EXTRACTION,PATCH,MODIFY --- echo "Extracting the program tarball for $PRGNAM..." -tar -xjvf $CWD/${PRGNAM}-${SRCVER}.tar.bz2 +tar -xjvf $CWD/${PRGNAM}-${VERSION}.tar.bz2 -cd ${PRGNAM}-${SRCVER} +cd ${PRGNAM}-${VERSION} chown -R root.root * @@ -158,6 +172,15 @@ fi # Separate package "psi-lang" for the language translation files # --- language pack build --- # +LANG="es eo fr hu nl pl pt_BR sl vi bg mk" +for NN in $LANG; do + if ! [ -f ${PRGNAM}_${NN}.qm ]; then + echo "Getting language pack '$NN' for $PRGNAM - version ${VERSION}" + URL="http://psi-im.org/files/translation/${VERSION}/${PRGNAM}_${NN}.qm" + wget -nv "$URL" + fi +done + # Add some translations mkdir -p ${PKG}-lang/usr/share/psi @@ -176,19 +199,19 @@ cat <<-ENDDESC > ${PKG}-lang/install/slack-desc psi-lang: Psi is a multi-platform Jabber client. psi-lang: This package adds several translations as a package to the Psi psi-lang: installation (release ${VERSION}) + psi-lang: Available are: ${LANG} psi-lang: psi-lang: psi-lang: - psi-lang: - psi-lang: Homepage is http://psi.affinix.com/ + psi-lang: Homepage is http://psi-im.org/ psi-lang: ENDDESC cd ${PKG}-lang -makepkg --linkadd y --chown n $TMP/${PRGNAM}-lang-$VERSION-$ARCH-$BUILD.tgz \ +makepkg --linkadd y --chown n $TMP/${PRGNAM}-lang-$VERSION-noarch-$BUILD.tgz \ 2>&1 | tee $CWD/makepkg-${PRGNAM}-lang.log -(cd $TMP && md5sum ${PRGNAM}-lang-$VERSION-$ARCH-$BUILD.tgz > ${PRGNAM}-lang-$VERSION-$ARCH-$BUILD.tgz.md5) -cat install/slack-desc | grep "^${PRGNAM}" > $TMP/${PRGNAM}-lang-$VERSION-$ARCH-$BUILD.txt +(cd $TMP && md5sum ${PRGNAM}-lang-$VERSION-noarch-$BUILD.tgz > ${PRGNAM}-lang-$VERSION-noarch-$BUILD.tgz.md5) +cat install/slack-desc | grep "^${PRGNAM}" > $TMP/${PRGNAM}-lang-$VERSION-noarch-$BUILD.txt # --- end language pack build --- @@ -206,4 +229,5 @@ cat $CWD/slack-desc | grep "^${PRGNAM}" > $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.txt if [ "$1" = "--cleanup" ]; then rm -rf $TMP/tmp-$PRGNAM rm -rf $PKG + rm -rf $PKG-lang fi |