From d42b9fde38d800bb608fca4d119f5a7324957392 Mon Sep 17 00:00:00 2001 From: rudson Date: Wed, 15 Nov 2006 22:00:45 +0000 Subject: movendo... git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@661 370017ae-e619-0410-ac65-c121f96126d4 --- apps/kde/digikam/digikam.SlackBuild | 207 +++++++++++++++++++++++++++ apps/kde/digikam/slack-required | 7 + digikam/digikam.SlackBuild | 207 --------------------------- digikam/slack-required | 7 - gtkam/gtkam.SlackBuild | 121 ---------------- gtkam/slack-required | 1 - media/gfx/gtkam/gtkam.SlackBuild | 121 ++++++++++++++++ media/gfx/gtkam/slack-required | 1 + media/sound/mp3blaster/mp3blaster.SlackBuild | 119 +++++++++++++++ media/video/mpeg2dec/mpeg2dec.SlackBuild | 119 +++++++++++++++ mp3blaster/mp3blaster.SlackBuild | 119 --------------- mpeg2dec/mpeg2dec.SlackBuild | 119 --------------- network/skype/skype.SlackBuild | 171 ++++++++++++++++++++++ skype/skype.SlackBuild | 171 ---------------------- 14 files changed, 745 insertions(+), 745 deletions(-) create mode 100755 apps/kde/digikam/digikam.SlackBuild create mode 100644 apps/kde/digikam/slack-required delete mode 100755 digikam/digikam.SlackBuild delete mode 100644 digikam/slack-required delete mode 100755 gtkam/gtkam.SlackBuild delete mode 100644 gtkam/slack-required create mode 100755 media/gfx/gtkam/gtkam.SlackBuild create mode 100644 media/gfx/gtkam/slack-required create mode 100755 media/sound/mp3blaster/mp3blaster.SlackBuild create mode 100755 media/video/mpeg2dec/mpeg2dec.SlackBuild delete mode 100755 mp3blaster/mp3blaster.SlackBuild delete mode 100755 mpeg2dec/mpeg2dec.SlackBuild create mode 100755 network/skype/skype.SlackBuild delete mode 100755 skype/skype.SlackBuild diff --git a/apps/kde/digikam/digikam.SlackBuild b/apps/kde/digikam/digikam.SlackBuild new file mode 100755 index 00000000..852ac152 --- /dev/null +++ b/apps/kde/digikam/digikam.SlackBuild @@ -0,0 +1,207 @@ +#!/bin/bash +# +# slackbuild for digikam, by Rudson R. Alves +# requires: none +# tested: digikam-0.9.0-beta3 + +CWD=`pwd` + +# ---- Inicializa variáveis com o slackbuild ------------ +if [ -e "/root/.slackbuildrc" ]; then + source /root/.slackbuildrc +elif [ -e "/etc/slackbuildrc" ]; then + source /etc/slackbuildrc +fi + +# -------- Variáveis de controle de versão -------------- +# Nome da fonte para a qual o slackbuild foi construído e +# o seu md5sum +SRC_ORIG="digikam-0.9.0-beta3.tar.bz2" +MD5_ORIG="4b6ecbe86ba258818b56257dbc851560" +PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\1/'` +VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\2/'` + REVISION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\3/'` + EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\4/'` + +# ------- Códigos de erro para o createpkg -------------- +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 +ERROR_PATCH=40; ERROR_VCS=41 + +# --------- Inicializa variáveis de entrada ------------- +PACKAGE=$PACKAGE_ORIG +ARCH=${ARCH:=i468} +SRC_DIR=${SRC:=$CWD} +if [ "$VERSION" != "" ]; then + REVISION=`echo $VERSION | sed -r 's/(.*)-(.*)$/\2/'` + VERSION=`echo $VERSION | sed -r 's/(.*)-(.*)$/\1/'` +else + VERSION=$VERSION_ORIG +fi +SRC=$PACKAGE-$VERSION-$REVISION.$EXTENSION +BUILD=${BUILD:=1rud} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} +PREFIX=${PREFIX:=/opt/kde} +OPTCONF=${OPTCONF:=""} +MD5=${MD5:=$MD5_ORIG} +URL=${URL:="http://ufpr.dl.sourceforge.net/sourceforge/digikam/$SRC"} + +# ---------------- SlackBuild Help ---------------------- +if [ "$1" = "--help" -o "$1" = "help" ]; then + echo -e "\033[01;32m +Use: var1=\"value 1\" var2=\"value 2\" ... .SlackBuild +where: + ARCH=machine arch (i386, i486, i686, ...) + VERSION=package version + BUILD=package build version (default 1rud) + SRC=source name of package + SRC_DIR=source directory (default $PWD) + TMP=temporary directory (default /tmp) + REPOS=repository directory + PREFIX=prefix from install package + OPTCONF=options to pass from ./configure. To configure + help, use OPTCONF=\"--help\" + MD5=md5sum from package source + URL=url from package source +\033[m" + exit $ERROR_HELP +fi + +# ---------------- Download fontes ---------------------- +# Fonte a ser compilada, com o path +SOURCE=$SRC_DIR/$PACKAGE/$SRC +# Verifica existência do pacote em $SRC em $SRC_DIR +if [ ! -e $SOURCE ]; then + echo -e "\n\n\033[01;32m Download $PACKAGE \n\033[m" + wget "$URL" -P "$SRC_DIR/$PACKAGE" + # Verifica se o + if [ $? -ne 0 ]; then + echo -e "\n\n\033[01;31m No such source file in $URL\n\033[m" + exit $ERROR_WGET + fi +fi + +# ------------------ Checa md5sum ----------------------- +if [ "$SRC_ORIG" = "$SRC" -o "$MD5" != "$MD5_ORIG" -a "$MD5" != "no" ]; then + SUM=`md5sum $SOURCE | awk '{print $1}'` + if [ "$SUM" != "$MD5" ]; then + echo -e "\n\n\033[01;31m MD5SUM error: run Slackbuild again \n\033[m" + echo -e "\033[01;31m Remove $PACKAGE from $SRC_DIR and start Slackbuild again or use MD5=\"no\" \n\033[m" + exit 0 + fi + echo -e "\n\n\033[01;32m Md5sum Ok \n\033[m" +fi + +# ----------------- ARCH e LIBDIR ----------------------- +# Libdir, para arch x86_64 +LIBDIR=$PREFIX/lib +# Seleciona flags para o compilador +if [ "$ARCH" = "i386" ]; then + SLKCFLAGS="-O2 -march=i386 -mcpu=i686" +elif [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mcpu=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2" + LIBDIR="$PREFIX/lib64" +fi + +# -------------- Desempacota fontes --------------------- +# Desempacota fontes em PKG_SRC=$TMP/$PACKAGE-source +PKG_SRC=$TMP/$PACKAGE-source +rm -rf $PKG_SRC 2>/dev/null +mkdir -p $PKG_SRC +# Desempacota $SOURCE em $TMP/$PACKAGE-source +tar xvf $SOURCE -C $PKG_SRC +if [ $? -ne 0 ]; then + echo -e "\n\n\033[01;31m $SOURCE file error \n\033[m" + exit $ERROR_TAR +fi +# Pega o nome do diretório das fontes independente de sua +# estrutura (package-version...) +PKG_DIR="$PKG_SRC/$( ls $PKG_SRC/ )" +cd $PKG_DIR + +# -------------- Configura programa --------------------- +# Configura programa +echo -e "\n\n\033[01;32m CFLAGS=\"$SLKCFLAGS\" ./configure --prefix=$PREFIX --libdir=$LIBDIR $OPTCONF \n\033[m" +CFLAGS="$SLKCFLAGS" ./configure --prefix=$PREFIX --libdir=$LIBDIR $OPTCONF +if [ $? -ne 0 -o "$OPTCONF" = "--help" ]; then + echo -e "\n\n\033[01;31m Configure error \n\033[m" + exit $ERROR_CONF +fi + +# ---------------- Compila programa --------------------- +echo -e "\n\n\033[01;32m make -j3 \n\033[m" +make -j3 +if [ $? -ne 0 ]; then + echo -e "\n\n\033[01;31m Build error \n\033[m" + exit $ERROR_MAKE +fi + +# ------------- Diretório Temporário -------------------- +# Cria diretório temporário para construção do pacote +PKG=$TMP/$PACKAGE +rm -rf $PKG +mkdir -p $PKG + +# --------------- Instala programa ---------------------- +# Instala programa em diretório temporário +echo -e "\n\n\033[01;32m make install DESTDIR=$PKG \n\033[m" +make install DESTDIR=$PKG +if [ $? -ne 0 ]; then + echo -e "\n\n\033[01;31m Install error \n\033[m" + exit $ERROR_INSTALL +fi + +# ----------------- Stripa código ----------------------- +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 + +# ---------------- Cria slack-desc ---------------------- +mkdir $PKG/install +cat << EOF > install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |------handy-ruler------------------------------------------------------| +digikam: DIGIKAM package, by Rudson R. Alves +digikam: +digikam: digiKam is an easy to use and powerful digital photo management +digikam: application, which makes importing, organizing and manipulating +digikam: digital photos a "snap". An easy to use interface is provided +digikam: to connect to your digital camera, preview the images and download +digikam: and/or delete them. +digikam: +digikam: Homepage: http://www.digikam.org/ +digikam: +EOF + +# ----------------- Documentações ----------------------- +# Criar diretório de documentação +PKG_DOC=$PKG/usr/doc/$PACKAGE-$VERSION +mkdir -p $PKG_DOC +cp $PKG_DIR/{AUTHORS,COPYING,ChangeLog,HACKING,INSTALL,NEWS,README,RELEASE.rev,TODO} $PKG_DOC + +# --------------- Constroi o pacote --------------------- +echo -e "\n\n\033[01;32m makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz \n\033[m" +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +if [ $? -ne 0 ]; then + exit $ERROR_MKPKG +fi + +# ----------- Remove arquivos temporários --------------- +if [ "$CLEANUP" = "yes" ]; then + echo -e "\n\n\033[01;32m Remove files... \n\033[m" + rm -rf $PKG $PKG_SRC +fi diff --git a/apps/kde/digikam/slack-required b/apps/kde/digikam/slack-required new file mode 100644 index 00000000..8aaace3b --- /dev/null +++ b/apps/kde/digikam/slack-required @@ -0,0 +1,7 @@ +sqlite +exiv2 +libgphoto2 +libkipi +lcms +libtiff +libpng diff --git a/digikam/digikam.SlackBuild b/digikam/digikam.SlackBuild deleted file mode 100755 index 852ac152..00000000 --- a/digikam/digikam.SlackBuild +++ /dev/null @@ -1,207 +0,0 @@ -#!/bin/bash -# -# slackbuild for digikam, by Rudson R. Alves -# requires: none -# tested: digikam-0.9.0-beta3 - -CWD=`pwd` - -# ---- Inicializa variáveis com o slackbuild ------------ -if [ -e "/root/.slackbuildrc" ]; then - source /root/.slackbuildrc -elif [ -e "/etc/slackbuildrc" ]; then - source /etc/slackbuildrc -fi - -# -------- Variáveis de controle de versão -------------- -# Nome da fonte para a qual o slackbuild foi construído e -# o seu md5sum -SRC_ORIG="digikam-0.9.0-beta3.tar.bz2" -MD5_ORIG="4b6ecbe86ba258818b56257dbc851560" -PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\1/'` -VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\2/'` - REVISION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\3/'` - EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)-(.*)\.(.*\..*)$/\4/'` - -# ------- Códigos de erro para o createpkg -------------- -ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 -ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 -ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 -ERROR_PATCH=40; ERROR_VCS=41 - -# --------- Inicializa variáveis de entrada ------------- -PACKAGE=$PACKAGE_ORIG -ARCH=${ARCH:=i468} -SRC_DIR=${SRC:=$CWD} -if [ "$VERSION" != "" ]; then - REVISION=`echo $VERSION | sed -r 's/(.*)-(.*)$/\2/'` - VERSION=`echo $VERSION | sed -r 's/(.*)-(.*)$/\1/'` -else - VERSION=$VERSION_ORIG -fi -SRC=$PACKAGE-$VERSION-$REVISION.$EXTENSION -BUILD=${BUILD:=1rud} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} -PREFIX=${PREFIX:=/opt/kde} -OPTCONF=${OPTCONF:=""} -MD5=${MD5:=$MD5_ORIG} -URL=${URL:="http://ufpr.dl.sourceforge.net/sourceforge/digikam/$SRC"} - -# ---------------- SlackBuild Help ---------------------- -if [ "$1" = "--help" -o "$1" = "help" ]; then - echo -e "\033[01;32m -Use: var1=\"value 1\" var2=\"value 2\" ... .SlackBuild -where: - ARCH=machine arch (i386, i486, i686, ...) - VERSION=package version - BUILD=package build version (default 1rud) - SRC=source name of package - SRC_DIR=source directory (default $PWD) - TMP=temporary directory (default /tmp) - REPOS=repository directory - PREFIX=prefix from install package - OPTCONF=options to pass from ./configure. To configure - help, use OPTCONF=\"--help\" - MD5=md5sum from package source - URL=url from package source -\033[m" - exit $ERROR_HELP -fi - -# ---------------- Download fontes ---------------------- -# Fonte a ser compilada, com o path -SOURCE=$SRC_DIR/$PACKAGE/$SRC -# Verifica existência do pacote em $SRC em $SRC_DIR -if [ ! -e $SOURCE ]; then - echo -e "\n\n\033[01;32m Download $PACKAGE \n\033[m" - wget "$URL" -P "$SRC_DIR/$PACKAGE" - # Verifica se o - if [ $? -ne 0 ]; then - echo -e "\n\n\033[01;31m No such source file in $URL\n\033[m" - exit $ERROR_WGET - fi -fi - -# ------------------ Checa md5sum ----------------------- -if [ "$SRC_ORIG" = "$SRC" -o "$MD5" != "$MD5_ORIG" -a "$MD5" != "no" ]; then - SUM=`md5sum $SOURCE | awk '{print $1}'` - if [ "$SUM" != "$MD5" ]; then - echo -e "\n\n\033[01;31m MD5SUM error: run Slackbuild again \n\033[m" - echo -e "\033[01;31m Remove $PACKAGE from $SRC_DIR and start Slackbuild again or use MD5=\"no\" \n\033[m" - exit 0 - fi - echo -e "\n\n\033[01;32m Md5sum Ok \n\033[m" -fi - -# ----------------- ARCH e LIBDIR ----------------------- -# Libdir, para arch x86_64 -LIBDIR=$PREFIX/lib -# Seleciona flags para o compilador -if [ "$ARCH" = "i386" ]; then - SLKCFLAGS="-O2 -march=i386 -mcpu=i686" -elif [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mcpu=i686" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686" -elif [ "$ARCH" = "s390" ]; then - SLKCFLAGS="-O2" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2" - LIBDIR="$PREFIX/lib64" -fi - -# -------------- Desempacota fontes --------------------- -# Desempacota fontes em PKG_SRC=$TMP/$PACKAGE-source -PKG_SRC=$TMP/$PACKAGE-source -rm -rf $PKG_SRC 2>/dev/null -mkdir -p $PKG_SRC -# Desempacota $SOURCE em $TMP/$PACKAGE-source -tar xvf $SOURCE -C $PKG_SRC -if [ $? -ne 0 ]; then - echo -e "\n\n\033[01;31m $SOURCE file error \n\033[m" - exit $ERROR_TAR -fi -# Pega o nome do diretório das fontes independente de sua -# estrutura (package-version...) -PKG_DIR="$PKG_SRC/$( ls $PKG_SRC/ )" -cd $PKG_DIR - -# -------------- Configura programa --------------------- -# Configura programa -echo -e "\n\n\033[01;32m CFLAGS=\"$SLKCFLAGS\" ./configure --prefix=$PREFIX --libdir=$LIBDIR $OPTCONF \n\033[m" -CFLAGS="$SLKCFLAGS" ./configure --prefix=$PREFIX --libdir=$LIBDIR $OPTCONF -if [ $? -ne 0 -o "$OPTCONF" = "--help" ]; then - echo -e "\n\n\033[01;31m Configure error \n\033[m" - exit $ERROR_CONF -fi - -# ---------------- Compila programa --------------------- -echo -e "\n\n\033[01;32m make -j3 \n\033[m" -make -j3 -if [ $? -ne 0 ]; then - echo -e "\n\n\033[01;31m Build error \n\033[m" - exit $ERROR_MAKE -fi - -# ------------- Diretório Temporário -------------------- -# Cria diretório temporário para construção do pacote -PKG=$TMP/$PACKAGE -rm -rf $PKG -mkdir -p $PKG - -# --------------- Instala programa ---------------------- -# Instala programa em diretório temporário -echo -e "\n\n\033[01;32m make install DESTDIR=$PKG \n\033[m" -make install DESTDIR=$PKG -if [ $? -ne 0 ]; then - echo -e "\n\n\033[01;31m Install error \n\033[m" - exit $ERROR_INSTALL -fi - -# ----------------- Stripa código ----------------------- -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 - -# ---------------- Cria slack-desc ---------------------- -mkdir $PKG/install -cat << EOF > install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |------handy-ruler------------------------------------------------------| -digikam: DIGIKAM package, by Rudson R. Alves -digikam: -digikam: digiKam is an easy to use and powerful digital photo management -digikam: application, which makes importing, organizing and manipulating -digikam: digital photos a "snap". An easy to use interface is provided -digikam: to connect to your digital camera, preview the images and download -digikam: and/or delete them. -digikam: -digikam: Homepage: http://www.digikam.org/ -digikam: -EOF - -# ----------------- Documentações ----------------------- -# Criar diretório de documentação -PKG_DOC=$PKG/usr/doc/$PACKAGE-$VERSION -mkdir -p $PKG_DOC -cp $PKG_DIR/{AUTHORS,COPYING,ChangeLog,HACKING,INSTALL,NEWS,README,RELEASE.rev,TODO} $PKG_DOC - -# --------------- Constroi o pacote --------------------- -echo -e "\n\n\033[01;32m makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz \n\033[m" -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz -if [ $? -ne 0 ]; then - exit $ERROR_MKPKG -fi - -# ----------- Remove arquivos temporários --------------- -if [ "$CLEANUP" = "yes" ]; then - echo -e "\n\n\033[01;32m Remove files... \n\033[m" - rm -rf $PKG $PKG_SRC -fi diff --git a/digikam/slack-required b/digikam/slack-required deleted file mode 100644 index 8aaace3b..00000000 --- a/digikam/slack-required +++ /dev/null @@ -1,7 +0,0 @@ -sqlite -exiv2 -libgphoto2 -libkipi -lcms -libtiff -libpng diff --git a/gtkam/gtkam.SlackBuild b/gtkam/gtkam.SlackBuild deleted file mode 100755 index 8f057542..00000000 --- a/gtkam/gtkam.SlackBuild +++ /dev/null @@ -1,121 +0,0 @@ -#!/bin/bash -# -# slackbuild script for gtkam -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building gtkam are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="gtkam" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.1.13} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -# ------- error codes for createpkg -------------- -ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 -ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 -ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 -ERROR_PATCH=40 - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://easynews.dl.sourceforge.net/sourceforge/gphoto/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF -make || exit $ERROR_MAKE -make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 install -cat << EOF > install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler-----------------------------------------------------| -gtkam: gtkam (a GTK frontend for gphoto) -gtkam: -gtkam: gtkam is a GNOME front-end for gphoto, which allows you to retrieve -gtkam: photos and movies from over 300 different digital cameras. -gtkam: -gtkam: -gtkam: -gtkam: -gtkam: -gtkam: -gtkam: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" - -for file in $DOCS; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/gtkam/slack-required b/gtkam/slack-required deleted file mode 100644 index 5b4fcf12..00000000 --- a/gtkam/slack-required +++ /dev/null @@ -1 +0,0 @@ -libgphoto2 diff --git a/media/gfx/gtkam/gtkam.SlackBuild b/media/gfx/gtkam/gtkam.SlackBuild new file mode 100755 index 00000000..8f057542 --- /dev/null +++ b/media/gfx/gtkam/gtkam.SlackBuild @@ -0,0 +1,121 @@ +#!/bin/bash +# +# slackbuild script for gtkam +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building gtkam are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="gtkam" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.1.13} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +# ------- error codes for createpkg -------------- +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 +ERROR_PATCH=40 + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://easynews.dl.sourceforge.net/sourceforge/gphoto/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR || exit $ERROR_CONF +make || exit $ERROR_MAKE +make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 install +cat << EOF > install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +gtkam: gtkam (a GTK frontend for gphoto) +gtkam: +gtkam: gtkam is a GNOME front-end for gphoto, which allows you to retrieve +gtkam: photos and movies from over 300 different digital cameras. +gtkam: +gtkam: +gtkam: +gtkam: +gtkam: +gtkam: +gtkam: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" + +for file in $DOCS; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/media/gfx/gtkam/slack-required b/media/gfx/gtkam/slack-required new file mode 100644 index 00000000..5b4fcf12 --- /dev/null +++ b/media/gfx/gtkam/slack-required @@ -0,0 +1 @@ +libgphoto2 diff --git a/media/sound/mp3blaster/mp3blaster.SlackBuild b/media/sound/mp3blaster/mp3blaster.SlackBuild new file mode 100755 index 00000000..067a90f0 --- /dev/null +++ b/media/sound/mp3blaster/mp3blaster.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/bash +# +# slackbuild script for mp3blaster +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building mp3blaster are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="mp3blaster" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=3.2.0} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://www.stack.nl/%7Ebrama/mp3blaster/src/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --enable-newthreads +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 install +cat << EOF > install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +mp3blaster: mp3blaster (a ncurses based audio player) +mp3blaster: +mp3blaster: MP3Blaster is a text console based program for playing mainly mp3 +mp3blaster: audio files. It is very interactive, and has a great list of features. +mp3blaster: Its playlist can be divided in albums or categories (called 'groups'), +mp3blaster: which allows for very sophisticated playback orders. +mp3blaster: +mp3blaster: +mp3blaster: +mp3blaster: +mp3blaster: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS BUGS COPYING CREDITS ChangeLog FAQ NEWS README TODO; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/media/video/mpeg2dec/mpeg2dec.SlackBuild b/media/video/mpeg2dec/mpeg2dec.SlackBuild new file mode 100755 index 00000000..7fc1d9bf --- /dev/null +++ b/media/video/mpeg2dec/mpeg2dec.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/bash +# +# slackbuild script for mpeg2dec +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building mpeg2dec are: + cat slack-required | sed -e 's/^/\t/' + if [ "$INTERACT" != "no" ]; then + echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. + read crap +# else +# echo Sleeping 3 seconds... +# sleep 3 + fi +fi + +CWD="`pwd`" + +if [ -f ~/.slackbuildrc ]; then + source ~/.slackbuildrc +elif [ -f /etc/slackbuildrc ]; then + source /etc/slackbuildrc +fi + +# default settings +PACKAGE="mpeg2dec" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=0.4.1} +BUILD=${BUILD:=1rha} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + export LDFLAGS="-L/lib64 -L/usr/lib64" + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://libmpeg2.sourceforge.net/files/$SRC" + +SRC_DIR="$SRC_DIR/$PACKAGE" +mkdir -p $SRC_DIR + +if [ "$PACKAGE_EXT" == "bz2" ]; then + tarflag="j" +else + tarflag="z" +fi + +if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then + wget "$URL" -O "$SRC_DIR/$SRC" +fi + +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP +cd $TMP + +tar xvf$tarflag $SRC_DIR/$SRC +cd $PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +./configure --prefix=/usr --enable-shared --libdir=$LIBDIR +make || exit 32 +make DESTDIR=$TMP/package-$PACKAGE install + +CWD="`pwd`" + +cd $TMP/package-$PACKAGE + +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 install +cat << EOF > install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +mpeg2dec: mpeg2dec (MPEG-2 decoder) +mpeg2dec: +mpeg2dec: A free MPEG-2 video stream decoder. +mpeg2dec: +mpeg2dec: +mpeg2dec: +mpeg2dec: +mpeg2dec: +mpeg2dec: +mpeg2dec: http://libmpeg2.sourceforge.net/ +mpeg2dec: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog CodingStyle INSTALL NEWS README TODO; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi + diff --git a/mp3blaster/mp3blaster.SlackBuild b/mp3blaster/mp3blaster.SlackBuild deleted file mode 100755 index 067a90f0..00000000 --- a/mp3blaster/mp3blaster.SlackBuild +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/bash -# -# slackbuild script for mp3blaster -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building mp3blaster are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="mp3blaster" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=3.2.0} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://www.stack.nl/%7Ebrama/mp3blaster/src/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --enable-newthreads -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 install -cat << EOF > install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler-----------------------------------------------------| -mp3blaster: mp3blaster (a ncurses based audio player) -mp3blaster: -mp3blaster: MP3Blaster is a text console based program for playing mainly mp3 -mp3blaster: audio files. It is very interactive, and has a great list of features. -mp3blaster: Its playlist can be divided in albums or categories (called 'groups'), -mp3blaster: which allows for very sophisticated playback orders. -mp3blaster: -mp3blaster: -mp3blaster: -mp3blaster: -mp3blaster: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS BUGS COPYING CREDITS ChangeLog FAQ NEWS README TODO; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/mpeg2dec/mpeg2dec.SlackBuild b/mpeg2dec/mpeg2dec.SlackBuild deleted file mode 100755 index 7fc1d9bf..00000000 --- a/mpeg2dec/mpeg2dec.SlackBuild +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/bash -# -# slackbuild script for mpeg2dec -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building mpeg2dec are: - cat slack-required | sed -e 's/^/\t/' - if [ "$INTERACT" != "no" ]; then - echo If you dont have those installed, press Ctrl-C. Otherwise, hit ENTER. - read crap -# else -# echo Sleeping 3 seconds... -# sleep 3 - fi -fi - -CWD="`pwd`" - -if [ -f ~/.slackbuildrc ]; then - source ~/.slackbuildrc -elif [ -f /etc/slackbuildrc ]; then - source /etc/slackbuildrc -fi - -# default settings -PACKAGE="mpeg2dec" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=0.4.1} -BUILD=${BUILD:=1rha} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - export LDFLAGS="-L/lib64 -L/usr/lib64" - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://libmpeg2.sourceforge.net/files/$SRC" - -SRC_DIR="$SRC_DIR/$PACKAGE" -mkdir -p $SRC_DIR - -if [ "$PACKAGE_EXT" == "bz2" ]; then - tarflag="j" -else - tarflag="z" -fi - -if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" -fi - -TMP="$TMP/$PACKAGE" -rm -rf $TMP -mkdir -p $TMP -cd $TMP - -tar xvf$tarflag $SRC_DIR/$SRC -cd $PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -./configure --prefix=/usr --enable-shared --libdir=$LIBDIR -make || exit 32 -make DESTDIR=$TMP/package-$PACKAGE install - -CWD="`pwd`" - -cd $TMP/package-$PACKAGE - -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 install -cat << EOF > install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' -# on the right side marks the last column you can put a character in. You must -# make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':'. - - |-----handy-ruler-----------------------------------------------------| -mpeg2dec: mpeg2dec (MPEG-2 decoder) -mpeg2dec: -mpeg2dec: A free MPEG-2 video stream decoder. -mpeg2dec: -mpeg2dec: -mpeg2dec: -mpeg2dec: -mpeg2dec: -mpeg2dec: -mpeg2dec: http://libmpeg2.sourceforge.net/ -mpeg2dec: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog CodingStyle INSTALL NEWS README TODO; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz - -if [ "$CLEANUP" == "yes" ]; then - rm -rf $TMP -fi - diff --git a/network/skype/skype.SlackBuild b/network/skype/skype.SlackBuild new file mode 100755 index 00000000..e5550d89 --- /dev/null +++ b/network/skype/skype.SlackBuild @@ -0,0 +1,171 @@ +#!/bin/bash +# +# slackbuild for kile, by Rudson R. Alves +# requires: none +# tested: skype_staticQT-1.3.0.53 + +CWD=`pwd` + +# ---- Inicializa variáveis com o slackbuild ------------ +if [ -e "/root/.slackbuildrc" ]; then + source /root/.slackbuildrc +elif [ -e "/etc/slackbuildrc" ]; then + source /etc/slackbuildrc +fi + +# -------- Variáveis de controle de versão -------------- +# Nome da fonte para a qual o slackbuild foi construído e +# o seu md5sum +SRC_ORIG="skype_staticQT-1.3.0.53-generic.tar.bz2" +MD5_ORIG="9ca128f45c73cd76862260bc6b9f196c" +PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\1/'` +VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\2/'` + EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\3/'` + +# ------- Códigos de erro para o createpkg -------------- +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 +ERROR_PATCH=40; ERROR_VCS=41 + +# --------- Inicializa variáveis de entrada ------------- +PACKAGE=$PACKAGE_ORIG +ARCH=${ARCH:=i468} +SRC_DIR=${SRC:=$CWD} +VERSION=${VERSION:=$VERSION_ORIG} +SRC=${PACKAGE}_staticQT-$VERSION-generic.$EXTENSION +BUILD=${BUILD:=1rud} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} +PREFIX=${PREFIX:=/opt/kde} +OPTCONF=${OPTCONF:=""} +MD5=${MD5:=$MD5_ORIG} +URL=${URL:="http://www.skype.com/go/getskype-linux-static"} + +# ---------------- SlackBuild Help ---------------------- +if [ "$1" = "--help" -o "$1" = "help" ]; then + echo -e "\033[01;32m +Use: var1=\"value 1\" var2=\"value 2\" ... .SlackBuild +where: + ARCH=machine arch (i386, i486, i686, ...) + VERSION=package version + BUILD=package build version (default 1rud) + SRC=source name of package + SRC_DIR=source directory (default $PWD) + TMP=temporary directory (default /tmp) + REPOS=repository directory + PREFIX=prefix from install package + OPTCONF=options to pass from ./configure. To configure + help, use OPTCONF=\"--help\" + MD5=md5sum from package source + URL=url from package source +\033[m" + exit $ERROR_HELP +fi + +# ---------------- Download fontes ---------------------- +# Fonte a ser compilada, com o path +SOURCE=$SRC_DIR/$PACKAGE/$SRC +# Verifica existência do pacote em $SRC em $SRC_DIR +if [ ! -e $SOURCE ]; then + echo -e "\n\n\033[01;32m Download $SRC \n\033[m" + wget "$URL" -P "$SRC_DIR/$PACKAGE/" + # Verifica se o + if [ $? -ne 0 ]; then + echo -e "\n\n\033[01;31m No such source file in $URL\n\033[m" + exit $ERROR_WGET + fi +fi + +# ------------------ Checa md5sum ----------------------- +if [ "$SRC_ORIG" = "$SRC" -o "$MD5" != "$MD5_ORIG" -a "$MD5" != "no" ]; then + SUM=`md5sum $SOURCE | awk '{print $1}'` + if [ "$SUM" != "$MD5" ]; then + echo -e "\n\n\033[01;31m MD5SUM error: run Slackbuild again \n\033[m" + echo -e "\033[01;31m Remove $PACKAGE from $SRC_DIR and start Slackbuild again or use MD5=\"no\" \n\033[m" + exit $ERROR_MD5 + fi + echo -e "\n\n\033[01;32m Md5sum Ok \n\033[m" +fi + +# -------------- Desempacota fontes --------------------- +# Desempacota fontes em PKG_SRC=$TMP/$PACKAGE-source +PKG=$TMP/$PACKAGE +rm -rf $PKG 2>/dev/null +mkdir -p $PKG/opt +# Desempacota $SOURCE em $TMP/$PACKAGE-source +tar xvf $SOURCE -C $PKG/opt +if [ $? -ne 0 ]; then + echo -e "\n\n\033[01;31m $SOURCE file error \n\033[m" + exit $ERROR_TAR +fi + +mkdir -p $PKG/usr/share/applications/ +cd $PKG/opt/ +SKYPE_NAME=$( ls ) +SKYPE_DIR=$PKG/opt/$SKYPE_NAME + +# Cria entrada em menu +cp $SKYPE_DIR/skype.desktop $PKG/usr/share/applications/ + +# Cria link para aplicativo +( + mkdir -p $PKG/usr/bin + cd $PKG/usr/bin + ln -s ../../opt/$SKYPE_NAME/skype skype +) + +# Copiar icones +mkdir -p $PKG/opt/kde/share/icons/hicolor/16x16/apps +mkdir -p $PKG/opt/kde/share/icons/hicolor/32x32/apps +mkdir -p $PKG/opt/kde/share/icons/hicolor/48x48/apps +cp $SKYPE_DIR/icons/skype_16_32.png $PKG/opt/kde/share/icons/hicolor/16x16/apps/skype.png +cp $SKYPE_DIR/icons/skype_32_32.png $PKG/opt/kde/share/icons/hicolor/32x32/apps/skype.png +cp $SKYPE_DIR/icons/skype_48_32.png $PKG/opt/kde/share/icons/hicolor/48x48/apps/skype.png + +# ----------------- Stripa código ----------------------- +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 + +# ---------------- Cria slack-desc ---------------------- +mkdir $PKG/install +cat << EOF > install/slack-desc +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |--------handy-ruler------------------------------------------------------| +skype: Skype 1.3.0.53 +skype: +skype: Skype is a little piece of software that lets you talk over the +skype: Internet to anyone, anywhere in the world for free. +skype: +skype: +skype: +skype: +skype: +skype: +EOF + +# ----------------- Documentações ----------------------- +# Criar diretório de documentação +PKG_DOC=$PKG/usr/doc/$PACKAGE-$VERSION +mkdir -p $PKG_DOC +cp $SKYPE_DIR/{LICENSE,README} $PKG_DOC + +# --------------- Constroi o pacote --------------------- +echo -e "\n\n\033[01;32m makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz \n\033[m" +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +if [ $? -ne 0 ]; then + exit $ERROR_MKPKG +fi + +# ----------- Remove arquivos temporários --------------- +if [ "$CLEANUP" = "yes" ]; then + echo -e "\n\n\033[01;32m Remove files... \n\033[m" + rm -rf $PKG $PKG_SRC +fi diff --git a/skype/skype.SlackBuild b/skype/skype.SlackBuild deleted file mode 100755 index e5550d89..00000000 --- a/skype/skype.SlackBuild +++ /dev/null @@ -1,171 +0,0 @@ -#!/bin/bash -# -# slackbuild for kile, by Rudson R. Alves -# requires: none -# tested: skype_staticQT-1.3.0.53 - -CWD=`pwd` - -# ---- Inicializa variáveis com o slackbuild ------------ -if [ -e "/root/.slackbuildrc" ]; then - source /root/.slackbuildrc -elif [ -e "/etc/slackbuildrc" ]; then - source /etc/slackbuildrc -fi - -# -------- Variáveis de controle de versão -------------- -# Nome da fonte para a qual o slackbuild foi construído e -# o seu md5sum -SRC_ORIG="skype_staticQT-1.3.0.53-generic.tar.bz2" -MD5_ORIG="9ca128f45c73cd76862260bc6b9f196c" -PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\1/'` -VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\2/'` - EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)_staticQT-(.*)-.*\.(.*\..*)$/\3/'` - -# ------- Códigos de erro para o createpkg -------------- -ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 -ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 -ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 -ERROR_PATCH=40; ERROR_VCS=41 - -# --------- Inicializa variáveis de entrada ------------- -PACKAGE=$PACKAGE_ORIG -ARCH=${ARCH:=i468} -SRC_DIR=${SRC:=$CWD} -VERSION=${VERSION:=$VERSION_ORIG} -SRC=${PACKAGE}_staticQT-$VERSION-generic.$EXTENSION -BUILD=${BUILD:=1rud} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} -PREFIX=${PREFIX:=/opt/kde} -OPTCONF=${OPTCONF:=""} -MD5=${MD5:=$MD5_ORIG} -URL=${URL:="http://www.skype.com/go/getskype-linux-static"} - -# ---------------- SlackBuild Help ---------------------- -if [ "$1" = "--help" -o "$1" = "help" ]; then - echo -e "\033[01;32m -Use: var1=\"value 1\" var2=\"value 2\" ... .SlackBuild -where: - ARCH=machine arch (i386, i486, i686, ...) - VERSION=package version - BUILD=package build version (default 1rud) - SRC=source name of package - SRC_DIR=source directory (default $PWD) - TMP=temporary directory (default /tmp) - REPOS=repository directory - PREFIX=prefix from install package - OPTCONF=options to pass from ./configure. To configure - help, use OPTCONF=\"--help\" - MD5=md5sum from package source - URL=url from package source -\033[m" - exit $ERROR_HELP -fi - -# ---------------- Download fontes ---------------------- -# Fonte a ser compilada, com o path -SOURCE=$SRC_DIR/$PACKAGE/$SRC -# Verifica existência do pacote em $SRC em $SRC_DIR -if [ ! -e $SOURCE ]; then - echo -e "\n\n\033[01;32m Download $SRC \n\033[m" - wget "$URL" -P "$SRC_DIR/$PACKAGE/" - # Verifica se o - if [ $? -ne 0 ]; then - echo -e "\n\n\033[01;31m No such source file in $URL\n\033[m" - exit $ERROR_WGET - fi -fi - -# ------------------ Checa md5sum ----------------------- -if [ "$SRC_ORIG" = "$SRC" -o "$MD5" != "$MD5_ORIG" -a "$MD5" != "no" ]; then - SUM=`md5sum $SOURCE | awk '{print $1}'` - if [ "$SUM" != "$MD5" ]; then - echo -e "\n\n\033[01;31m MD5SUM error: run Slackbuild again \n\033[m" - echo -e "\033[01;31m Remove $PACKAGE from $SRC_DIR and start Slackbuild again or use MD5=\"no\" \n\033[m" - exit $ERROR_MD5 - fi - echo -e "\n\n\033[01;32m Md5sum Ok \n\033[m" -fi - -# -------------- Desempacota fontes --------------------- -# Desempacota fontes em PKG_SRC=$TMP/$PACKAGE-source -PKG=$TMP/$PACKAGE -rm -rf $PKG 2>/dev/null -mkdir -p $PKG/opt -# Desempacota $SOURCE em $TMP/$PACKAGE-source -tar xvf $SOURCE -C $PKG/opt -if [ $? -ne 0 ]; then - echo -e "\n\n\033[01;31m $SOURCE file error \n\033[m" - exit $ERROR_TAR -fi - -mkdir -p $PKG/usr/share/applications/ -cd $PKG/opt/ -SKYPE_NAME=$( ls ) -SKYPE_DIR=$PKG/opt/$SKYPE_NAME - -# Cria entrada em menu -cp $SKYPE_DIR/skype.desktop $PKG/usr/share/applications/ - -# Cria link para aplicativo -( - mkdir -p $PKG/usr/bin - cd $PKG/usr/bin - ln -s ../../opt/$SKYPE_NAME/skype skype -) - -# Copiar icones -mkdir -p $PKG/opt/kde/share/icons/hicolor/16x16/apps -mkdir -p $PKG/opt/kde/share/icons/hicolor/32x32/apps -mkdir -p $PKG/opt/kde/share/icons/hicolor/48x48/apps -cp $SKYPE_DIR/icons/skype_16_32.png $PKG/opt/kde/share/icons/hicolor/16x16/apps/skype.png -cp $SKYPE_DIR/icons/skype_32_32.png $PKG/opt/kde/share/icons/hicolor/32x32/apps/skype.png -cp $SKYPE_DIR/icons/skype_48_32.png $PKG/opt/kde/share/icons/hicolor/48x48/apps/skype.png - -# ----------------- Stripa código ----------------------- -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 - -# ---------------- Cria slack-desc ---------------------- -mkdir $PKG/install -cat << EOF > install/slack-desc -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |--------handy-ruler------------------------------------------------------| -skype: Skype 1.3.0.53 -skype: -skype: Skype is a little piece of software that lets you talk over the -skype: Internet to anyone, anywhere in the world for free. -skype: -skype: -skype: -skype: -skype: -skype: -EOF - -# ----------------- Documentações ----------------------- -# Criar diretório de documentação -PKG_DOC=$PKG/usr/doc/$PACKAGE-$VERSION -mkdir -p $PKG_DOC -cp $SKYPE_DIR/{LICENSE,README} $PKG_DOC - -# --------------- Constroi o pacote --------------------- -echo -e "\n\n\033[01;32m makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz \n\033[m" -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz -if [ $? -ne 0 ]; then - exit $ERROR_MKPKG -fi - -# ----------- Remove arquivos temporários --------------- -if [ "$CLEANUP" = "yes" ]; then - echo -e "\n\n\033[01;32m Remove files... \n\033[m" - rm -rf $PKG $PKG_SRC -fi -- cgit v1.2.3