From 7e673fa0af3bc487acfb41d9cb551b2fa146b9f7 Mon Sep 17 00:00:00 2001 From: rudson Date: Wed, 15 Nov 2006 22:45:18 +0000 Subject: movendo... git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@672 370017ae-e619-0410-ac65-c121f96126d4 --- ekiga/ekiga.SlackBuild | 119 --------------- ekiga/slack-required | 3 - envy24control/envy24control.SlackBuild | 121 --------------- exiv2/exiv2.SlackBuild | 204 -------------------------- faac/faac-1.24.diff.gz | Bin 296212 -> 0 bytes faac/faac.SlackBuild | 123 ---------------- faad2/faad2-2.0.diff | 13 -- faad2/faad2.SlackBuild | 120 --------------- feast/feast-03b.diff | 23 --- feast/feast.SlackBuild | 134 ----------------- feast/slack-required | 2 - ffmpeg/ffmpeg.SlackBuild | 122 --------------- ffmpeg/slack-required | 1 - media/gfx/exiv2/exiv2.SlackBuild | 204 ++++++++++++++++++++++++++ media/libs/faac/faac-1.24.diff.gz | Bin 0 -> 296212 bytes media/libs/faac/faac.SlackBuild | 123 ++++++++++++++++ media/libs/faad2/faad2-2.0.diff | 13 ++ media/libs/faad2/faad2.SlackBuild | 120 +++++++++++++++ media/video/ffmpeg/ffmpeg.SlackBuild | 122 +++++++++++++++ media/video/ffmpeg/slack-required | 1 + net/chat/ekiga/ekiga.SlackBuild | 119 +++++++++++++++ net/chat/ekiga/slack-required | 3 + others/envy24control/envy24control.SlackBuild | 121 +++++++++++++++ others/feast/feast-03b.diff | 23 +++ others/feast/feast.SlackBuild | 134 +++++++++++++++++ others/feast/slack-required | 2 + 26 files changed, 985 insertions(+), 985 deletions(-) delete mode 100755 ekiga/ekiga.SlackBuild delete mode 100644 ekiga/slack-required delete mode 100755 envy24control/envy24control.SlackBuild delete mode 100755 exiv2/exiv2.SlackBuild delete mode 100644 faac/faac-1.24.diff.gz delete mode 100755 faac/faac.SlackBuild delete mode 100644 faad2/faad2-2.0.diff delete mode 100755 faad2/faad2.SlackBuild delete mode 100644 feast/feast-03b.diff delete mode 100755 feast/feast.SlackBuild delete mode 100644 feast/slack-required delete mode 100755 ffmpeg/ffmpeg.SlackBuild delete mode 100644 ffmpeg/slack-required create mode 100755 media/gfx/exiv2/exiv2.SlackBuild create mode 100644 media/libs/faac/faac-1.24.diff.gz create mode 100755 media/libs/faac/faac.SlackBuild create mode 100644 media/libs/faad2/faad2-2.0.diff create mode 100755 media/libs/faad2/faad2.SlackBuild create mode 100755 media/video/ffmpeg/ffmpeg.SlackBuild create mode 100644 media/video/ffmpeg/slack-required create mode 100755 net/chat/ekiga/ekiga.SlackBuild create mode 100644 net/chat/ekiga/slack-required create mode 100755 others/envy24control/envy24control.SlackBuild create mode 100644 others/feast/feast-03b.diff create mode 100755 others/feast/feast.SlackBuild create mode 100644 others/feast/slack-required diff --git a/ekiga/ekiga.SlackBuild b/ekiga/ekiga.SlackBuild deleted file mode 100755 index 0c43d9c6..00000000 --- a/ekiga/ekiga.SlackBuild +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/bash -# -# slackbuild script for ekiga -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building ekiga 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="ekiga" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.0.3} -BUILD=${BUILD:=1rd} -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.ekiga.org/admin/downloads/latest/sources/sources/$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 --disable-gnome --disable-avahi --sysconfdir=/etc --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-----------------------------------------------------| -ekiga: ekiga (Ekiga is a VoIP softphone) -ekiga: -ekiga: Ekiga (formely known as GnomeMeeting) is an open source VoIP and -ekiga: video conferencing application for GNOME. Ekiga uses both the H.323 -ekiga: and SIP protocols. It supports many audio and video codecs, and is -ekiga: interoperable with other SIP compliant software and also with -ekiga: Microsoft NetMeeting. -ekiga: -ekiga: -ekiga: http://www.ekiga.org/ -ekiga: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog FAQ 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/ekiga/slack-required b/ekiga/slack-required deleted file mode 100644 index df2d09b1..00000000 --- a/ekiga/slack-required +++ /dev/null @@ -1,3 +0,0 @@ -openldap-client -pwlib -opal diff --git a/envy24control/envy24control.SlackBuild b/envy24control/envy24control.SlackBuild deleted file mode 100755 index 4ba7faa6..00000000 --- a/envy24control/envy24control.SlackBuild +++ /dev/null @@ -1,121 +0,0 @@ -#!/bin/bash -# -# slackbuild script for envy24control -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building envy24control 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="envy24control" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.0.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="bz2" -SRC="alsa-tools-$VERSION.tar.$PACKAGE_EXT" -URL="ftp://ftp.alsa-project.org/pub/tools/$SRC" - -SRC_DIR="$SRC_DIR/alsa-tools" -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 alsa-tools-$VERSION/$PACKAGE - -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-----------------------------------------------------| -envy24control: envy24control (Control tool for Envy24 (ice1712) based soundcards) -envy24control: -envy24control: Envy24control is a graphical utility for controlling cards based on -envy24control: the envy24 or ice1712 chipset, e.g., the Midiman Delta series and -envy24control: the Terratec EWS and EWX series. It is supplied as part of the -envy24control: alsa-tools package. The utility allows control of the digital mixer, -envy24control: channel gains and other hardware settings, as well as displaying a -envy24control: level meter for each input and output channel. -envy24control: -envy24control: -envy24control: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="AUTHORS COPYING README" - -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/exiv2/exiv2.SlackBuild b/exiv2/exiv2.SlackBuild deleted file mode 100755 index d6f3ff16..00000000 --- a/exiv2/exiv2.SlackBuild +++ /dev/null @@ -1,204 +0,0 @@ -#!/bin/bash -# -# slackbuild for exiv2, by Rudson R. Alves -# requires: none -# tested: exiv2-0.11 - -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="exiv2-0.11.tar.gz" -MD5_ORIG="269ce822946c56549d086f0c08dffc79" -PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\1/'` -VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\2/'` - EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\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-$VERSION.$EXTENSION -BUILD=${BUILD:=1rud} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} -PREFIX=${PREFIX:=/usr} -OPTCONF=${OPTCONF:=""} -MD5=${MD5:=$MD5_ORIG} -URL=${URL:="http://www.exiv2.org/$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 -# --------------- Compacta manuais ---------------------- -gzip -r $PKG/shared/man/* - -# ----------------- 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------------------------------------------------------| -exiv2: libdvdread.SlackBuild by Rudson R. Alves -exiv2: -exiv2: Exiv2 is a C++ library and a command line utility to access image -exiv2: metadata. Exiv2 is available as free software and with a commercial -exiv2: license, and is used in a growing number of projects. -exiv2: The Exiv2 library provides: -exiv2: - full read and write access to the Exif and IPTC metadata of an -exiv2: image through Exiv2 keys and standard C++ iterators -exiv2: - a smart IPTC implementation that does not affect data that -exiv2: programs like Photoshop store in the same image segment, ... -EOF - -# ----------------- Documentações ----------------------- -# Criar diretório de documentação -PKG_DOC=$PKG/usr/doc/$PACKAGE-$VERSION -mkdir -p $PKG_DOC -cp $PKG_DIR/{COPYING,README} $PKG_DOC -cp -r $PKG_DIR/doc $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/faac/faac-1.24.diff.gz b/faac/faac-1.24.diff.gz deleted file mode 100644 index cf6bdd9e..00000000 Binary files a/faac/faac-1.24.diff.gz and /dev/null differ diff --git a/faac/faac.SlackBuild b/faac/faac.SlackBuild deleted file mode 100755 index ad3228c0..00000000 --- a/faac/faac.SlackBuild +++ /dev/null @@ -1,123 +0,0 @@ -#!/bin/bash -# -# slackbuild script for faac -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building faac 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="faac" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=1.24} -BUILD=${BUILD:=1rd} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://ufpr.dl.sourceforge.net/sourceforge/faac/$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 - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff -fi - -if [ -f "$CWD/$PACKAGE-$VERSION.diff.gz" ]; then - gzip -dc $CWD/$PACKAGE-$VERSION.diff.gz | patch -p1 -fi - -sh ./bootstrap -sh ./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION -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-----------------------------------------------------| -faac: faac (faac is an AAC audio encoder) -faac: -faac: faac is a free AAC audio codec implementation. -faac: -faac: -faac: -faac: -faac: -faac: -faac: http://www.audiocoding.com/ -faac: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog INSTALL NEWS README TODO docs/faac.html docs/libfaac.html docs/libfaac.pdf;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/faad2/faad2-2.0.diff b/faad2/faad2-2.0.diff deleted file mode 100644 index 19c9e820..00000000 --- a/faad2/faad2-2.0.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- Makefile.orig 2006-10-05 04:47:27.000000000 -0300 -+++ Makefile 2006-10-05 04:47:57.000000000 -0300 -@@ -624,10 +624,6 @@ - tags tags-recursive uninstall uninstall-am uninstall-info-am - - --rpm: Makefile -- make dist -- $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz -- rm $(PACKAGE)-$(VERSION).tar.gz - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: diff --git a/faad2/faad2.SlackBuild b/faad2/faad2.SlackBuild deleted file mode 100755 index 957c28c7..00000000 --- a/faad2/faad2.SlackBuild +++ /dev/null @@ -1,120 +0,0 @@ -#!/bin/bash -# -# slackbuild script for faad2 -# by rafael at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building faad2 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="faad2" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=2.0} -BUILD=${BUILD:=1rd} -SRC_DIR=${SRC:=$CWD} -TMP=${TMP:=/tmp} -REPOS=${REPOS:=$TMP} - -if [ "$ARCH" == "x86_64" ]; then - LIBDIR=/usr/lib64 -else - LIBDIR=/usr/lib -fi - -RTOOL="wget" -PACKAGE_EXT="gz" -SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" -URL="http://ufpr.dl.sourceforge.net/sourceforge/faac/$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 - -autoreconf -vif -./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION - -if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p0 < $CWD/$PACKAGE-$VERSION.diff -fi - -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-----------------------------------------------------| -faad2: faad2 (faad2 is a free Advanced Audio Decoder) -faad2: -faad2: Faad2 is a free Advanced Audio Decoder. -faad2: -faad2: -faad2: -faad2: -faad2: -faad2: -faad2: http://www.audiocoding.com/ -faad2: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in AUTHORS COPYING ChangeLog 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/feast/feast-03b.diff b/feast/feast-03b.diff deleted file mode 100644 index baec8896..00000000 --- a/feast/feast-03b.diff +++ /dev/null @@ -1,23 +0,0 @@ -diff -Naur feast_03b.orig/Makefile feast_03b/Makefile ---- feast_03b.orig/Makefile 2005-11-10 08:19:08.000000000 -0200 -+++ feast_03b/Makefile 2006-10-19 18:43:57.000000000 -0200 -@@ -10,8 +10,8 @@ - # - # To compile just type "make" and away you go. - # --SILC_LIB = /usr/local/silc/lib --SILC_INCLUDES = /usr/local/silc/include -+SILC_LIB = /usr/lib -+SILC_INCLUDES = /usr/include - - CFLAGS = $(INCLUDES) $(SILC_COMMON_LIBS) $(LDFLAGS) - SOURCES = src/feast.c src/feast_irc.c src/feast_silc.c src/irc_parser.c src/feast_config.c -@@ -22,7 +22,7 @@ - rm -f feast - - feast: $(SOURCES) -- gcc -o feast $(SOURCES) -g -O2 -Wall -finline-functions -D_REENTRANT -I./ -I$(SILC_INCLUDES) -lcrypt -ldl -lpthread -L$(SILC_LIB) -lsilc -lsilcclient -lsilc -+ gcc -o feast $(SOURCES) -g -O2 -Wall -finline-functions -D_REENTRANT -I./ -I$(SILC_INCLUDES) -lcrypt -ldl -lpthread -L$(SILC_LIB) -lsilc -lsilcclient -lsilc -liconv - - debug: clean $(SOURCES) - gcc -o feast $(SOURCES) -g -O2 -Wall -DDEBUG -finline-functions -D_REENTRANT -I./ -I$(SILC_INCLUDES) -lcrypt -ldl -lpthread -L$(SILC_LIB) -lsilc -lsilcclient -lsilc diff --git a/feast/feast.SlackBuild b/feast/feast.SlackBuild deleted file mode 100755 index cd96dc31..00000000 --- a/feast/feast.SlackBuild +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash -# -# slackbuild script for feast -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building feast 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="feast" -ARCH=${ARCH:=i486} -VERSION=${VERSION:=03b} -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="tgz" -SRC="$PACKAGE"_"$VERSION.$PACKAGE_EXT" -URL="http://www.hick.org/~raffi/download/$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 - -if [ "$ARC" == "x86_64" ]; then - sed -e 's/\/usr\/lib/\/usr\/lib64/' Makefile > Makefile.tmp - mv Makefile.tmp Makefile -fi - -make || exit $ERROR_MAKE - -CWD="`pwd`" - -mkdir -p $TMP/package-$PACKAGE -cd $TMP/package-$PACKAGE - -mkdir -p usr/bin -cp $CWD/feast usr/bin - -mkdir -p etc/feast -cp $CWD/feast.conf etc/feast.conf.new - -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-----------------------------------------------------| -feast: feast (silc to irc translator) -feast: -feast: SILC stands for Secure Internet Live Conferencing. -feast: Far East Trader (feast) is meant to open up the world of SILC to -feast: IRC users who are to lazy to download a SILC client. -feast: -feast: -feast: -feast: -feast: -feast: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -DOCS="license.txt readme.txt" - -for file in $DOCS; do - cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ -done - -# install script -echo '( if [ ! -f "etc/feast.conf" ]; then mv etc/feast.conf.new etc/feast.conf; fi )' > install/doinst.sh - -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/feast/slack-required b/feast/slack-required deleted file mode 100644 index a22b636a..00000000 --- a/feast/slack-required +++ /dev/null @@ -1,2 +0,0 @@ -libiconv -silc-toolkit diff --git a/ffmpeg/ffmpeg.SlackBuild b/ffmpeg/ffmpeg.SlackBuild deleted file mode 100755 index 1f1f2bf8..00000000 --- a/ffmpeg/ffmpeg.SlackBuild +++ /dev/null @@ -1,122 +0,0 @@ -#!/bin/bash -# -# slackbuild script for ffmpeg -# by rhatto at riseup.net -# - -if [ -s "slack-required" ]; then - echo Recomended and required packages for building ffmpeg 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="ffmpeg" -ARCH=${ARCH:=i486} -VERSION="`date +%Y%m%d`" -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="svn" -PACKAGE_EXT="" -SRC="" -URL="" - -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 - -svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk $PACKAGE -cd $PACKAGE - -export EXTRA_AC_FLAGS="" - -if [ "$ARCH" == "powerpc" ]; then - export EXTRA_AC_FLAGS="--disable-altivec" -fi - - -./configure --prefix=/usr --libdir=$LIBDIR $EXTRA_AC_FLAGS --enable-shared --enable-pthreads --enable-mp3lame --enable-libogg --enable-vorbis --enable-pp --enable-gpl -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-----------------------------------------------------| -ffmpeg: ffmpeg (ffmpeg multimedia system) -ffmpeg: -ffmpeg: FFmpeg is a complete solution to record, convert and stream audio -ffmpeg: and video. It includes libavcodec, the leading audio/video codec -ffmpeg: library. -ffmpeg: -ffmpeg: -ffmpeg: -ffmpeg: -ffmpeg: -ffmpeg: -EOF - -# docs -mkdir -p usr/doc/$PACKAGE-$VERSION - -for file in COPYING CREDITS Changelog Doxyfile INSTALL MAINTAINERS README; 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/ffmpeg/slack-required b/ffmpeg/slack-required deleted file mode 100644 index 746d2f0d..00000000 --- a/ffmpeg/slack-required +++ /dev/null @@ -1 +0,0 @@ -lame diff --git a/media/gfx/exiv2/exiv2.SlackBuild b/media/gfx/exiv2/exiv2.SlackBuild new file mode 100755 index 00000000..d6f3ff16 --- /dev/null +++ b/media/gfx/exiv2/exiv2.SlackBuild @@ -0,0 +1,204 @@ +#!/bin/bash +# +# slackbuild for exiv2, by Rudson R. Alves +# requires: none +# tested: exiv2-0.11 + +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="exiv2-0.11.tar.gz" +MD5_ORIG="269ce822946c56549d086f0c08dffc79" +PACKAGE_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\1/'` +VERSION_ORIG=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\2/'` + EXTENSION=`echo $SRC_ORIG | sed -r 's/(.*)-(.*)\.(.*\..*)$/\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-$VERSION.$EXTENSION +BUILD=${BUILD:=1rud} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} +PREFIX=${PREFIX:=/usr} +OPTCONF=${OPTCONF:=""} +MD5=${MD5:=$MD5_ORIG} +URL=${URL:="http://www.exiv2.org/$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 +# --------------- Compacta manuais ---------------------- +gzip -r $PKG/shared/man/* + +# ----------------- 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------------------------------------------------------| +exiv2: libdvdread.SlackBuild by Rudson R. Alves +exiv2: +exiv2: Exiv2 is a C++ library and a command line utility to access image +exiv2: metadata. Exiv2 is available as free software and with a commercial +exiv2: license, and is used in a growing number of projects. +exiv2: The Exiv2 library provides: +exiv2: - full read and write access to the Exif and IPTC metadata of an +exiv2: image through Exiv2 keys and standard C++ iterators +exiv2: - a smart IPTC implementation that does not affect data that +exiv2: programs like Photoshop store in the same image segment, ... +EOF + +# ----------------- Documentações ----------------------- +# Criar diretório de documentação +PKG_DOC=$PKG/usr/doc/$PACKAGE-$VERSION +mkdir -p $PKG_DOC +cp $PKG_DIR/{COPYING,README} $PKG_DOC +cp -r $PKG_DIR/doc $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/media/libs/faac/faac-1.24.diff.gz b/media/libs/faac/faac-1.24.diff.gz new file mode 100644 index 00000000..cf6bdd9e Binary files /dev/null and b/media/libs/faac/faac-1.24.diff.gz differ diff --git a/media/libs/faac/faac.SlackBuild b/media/libs/faac/faac.SlackBuild new file mode 100755 index 00000000..ad3228c0 --- /dev/null +++ b/media/libs/faac/faac.SlackBuild @@ -0,0 +1,123 @@ +#!/bin/bash +# +# slackbuild script for faac +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building faac 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="faac" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=1.24} +BUILD=${BUILD:=1rd} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://ufpr.dl.sourceforge.net/sourceforge/faac/$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 + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p1 < $CWD/$PACKAGE-$VERSION.diff +fi + +if [ -f "$CWD/$PACKAGE-$VERSION.diff.gz" ]; then + gzip -dc $CWD/$PACKAGE-$VERSION.diff.gz | patch -p1 +fi + +sh ./bootstrap +sh ./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION +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-----------------------------------------------------| +faac: faac (faac is an AAC audio encoder) +faac: +faac: faac is a free AAC audio codec implementation. +faac: +faac: +faac: +faac: +faac: +faac: +faac: http://www.audiocoding.com/ +faac: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog INSTALL NEWS README TODO docs/faac.html docs/libfaac.html docs/libfaac.pdf;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/libs/faad2/faad2-2.0.diff b/media/libs/faad2/faad2-2.0.diff new file mode 100644 index 00000000..19c9e820 --- /dev/null +++ b/media/libs/faad2/faad2-2.0.diff @@ -0,0 +1,13 @@ +--- Makefile.orig 2006-10-05 04:47:27.000000000 -0300 ++++ Makefile 2006-10-05 04:47:57.000000000 -0300 +@@ -624,10 +624,6 @@ + tags tags-recursive uninstall uninstall-am uninstall-info-am + + +-rpm: Makefile +- make dist +- $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz +- rm $(PACKAGE)-$(VERSION).tar.gz + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: diff --git a/media/libs/faad2/faad2.SlackBuild b/media/libs/faad2/faad2.SlackBuild new file mode 100755 index 00000000..957c28c7 --- /dev/null +++ b/media/libs/faad2/faad2.SlackBuild @@ -0,0 +1,120 @@ +#!/bin/bash +# +# slackbuild script for faad2 +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building faad2 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="faad2" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.0} +BUILD=${BUILD:=1rd} +SRC_DIR=${SRC:=$CWD} +TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} + +if [ "$ARCH" == "x86_64" ]; then + LIBDIR=/usr/lib64 +else + LIBDIR=/usr/lib +fi + +RTOOL="wget" +PACKAGE_EXT="gz" +SRC="$PACKAGE-$VERSION.tar.$PACKAGE_EXT" +URL="http://ufpr.dl.sourceforge.net/sourceforge/faac/$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 + +autoreconf -vif +./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR --with-docdir=/usr/doc/$PACKAGE-$VERSION + +if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then + patch -p0 < $CWD/$PACKAGE-$VERSION.diff +fi + +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-----------------------------------------------------| +faad2: faad2 (faad2 is a free Advanced Audio Decoder) +faad2: +faad2: Faad2 is a free Advanced Audio Decoder. +faad2: +faad2: +faad2: +faad2: +faad2: +faad2: +faad2: http://www.audiocoding.com/ +faad2: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog 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/media/video/ffmpeg/ffmpeg.SlackBuild b/media/video/ffmpeg/ffmpeg.SlackBuild new file mode 100755 index 00000000..1f1f2bf8 --- /dev/null +++ b/media/video/ffmpeg/ffmpeg.SlackBuild @@ -0,0 +1,122 @@ +#!/bin/bash +# +# slackbuild script for ffmpeg +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building ffmpeg 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="ffmpeg" +ARCH=${ARCH:=i486} +VERSION="`date +%Y%m%d`" +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="svn" +PACKAGE_EXT="" +SRC="" +URL="" + +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 + +svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk $PACKAGE +cd $PACKAGE + +export EXTRA_AC_FLAGS="" + +if [ "$ARCH" == "powerpc" ]; then + export EXTRA_AC_FLAGS="--disable-altivec" +fi + + +./configure --prefix=/usr --libdir=$LIBDIR $EXTRA_AC_FLAGS --enable-shared --enable-pthreads --enable-mp3lame --enable-libogg --enable-vorbis --enable-pp --enable-gpl +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-----------------------------------------------------| +ffmpeg: ffmpeg (ffmpeg multimedia system) +ffmpeg: +ffmpeg: FFmpeg is a complete solution to record, convert and stream audio +ffmpeg: and video. It includes libavcodec, the leading audio/video codec +ffmpeg: library. +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +ffmpeg: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in COPYING CREDITS Changelog Doxyfile INSTALL MAINTAINERS README; 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/ffmpeg/slack-required b/media/video/ffmpeg/slack-required new file mode 100644 index 00000000..746d2f0d --- /dev/null +++ b/media/video/ffmpeg/slack-required @@ -0,0 +1 @@ +lame diff --git a/net/chat/ekiga/ekiga.SlackBuild b/net/chat/ekiga/ekiga.SlackBuild new file mode 100755 index 00000000..0c43d9c6 --- /dev/null +++ b/net/chat/ekiga/ekiga.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/bash +# +# slackbuild script for ekiga +# by rafael at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building ekiga 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="ekiga" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=2.0.3} +BUILD=${BUILD:=1rd} +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.ekiga.org/admin/downloads/latest/sources/sources/$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 --disable-gnome --disable-avahi --sysconfdir=/etc --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-----------------------------------------------------| +ekiga: ekiga (Ekiga is a VoIP softphone) +ekiga: +ekiga: Ekiga (formely known as GnomeMeeting) is an open source VoIP and +ekiga: video conferencing application for GNOME. Ekiga uses both the H.323 +ekiga: and SIP protocols. It supports many audio and video codecs, and is +ekiga: interoperable with other SIP compliant software and also with +ekiga: Microsoft NetMeeting. +ekiga: +ekiga: +ekiga: http://www.ekiga.org/ +ekiga: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +for file in AUTHORS COPYING ChangeLog FAQ 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/net/chat/ekiga/slack-required b/net/chat/ekiga/slack-required new file mode 100644 index 00000000..df2d09b1 --- /dev/null +++ b/net/chat/ekiga/slack-required @@ -0,0 +1,3 @@ +openldap-client +pwlib +opal diff --git a/others/envy24control/envy24control.SlackBuild b/others/envy24control/envy24control.SlackBuild new file mode 100755 index 00000000..4ba7faa6 --- /dev/null +++ b/others/envy24control/envy24control.SlackBuild @@ -0,0 +1,121 @@ +#!/bin/bash +# +# slackbuild script for envy24control +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building envy24control 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="envy24control" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=1.0.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="bz2" +SRC="alsa-tools-$VERSION.tar.$PACKAGE_EXT" +URL="ftp://ftp.alsa-project.org/pub/tools/$SRC" + +SRC_DIR="$SRC_DIR/alsa-tools" +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 alsa-tools-$VERSION/$PACKAGE + +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-----------------------------------------------------| +envy24control: envy24control (Control tool for Envy24 (ice1712) based soundcards) +envy24control: +envy24control: Envy24control is a graphical utility for controlling cards based on +envy24control: the envy24 or ice1712 chipset, e.g., the Midiman Delta series and +envy24control: the Terratec EWS and EWX series. It is supplied as part of the +envy24control: alsa-tools package. The utility allows control of the digital mixer, +envy24control: channel gains and other hardware settings, as well as displaying a +envy24control: level meter for each input and output channel. +envy24control: +envy24control: +envy24control: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="AUTHORS COPYING README" + +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/others/feast/feast-03b.diff b/others/feast/feast-03b.diff new file mode 100644 index 00000000..baec8896 --- /dev/null +++ b/others/feast/feast-03b.diff @@ -0,0 +1,23 @@ +diff -Naur feast_03b.orig/Makefile feast_03b/Makefile +--- feast_03b.orig/Makefile 2005-11-10 08:19:08.000000000 -0200 ++++ feast_03b/Makefile 2006-10-19 18:43:57.000000000 -0200 +@@ -10,8 +10,8 @@ + # + # To compile just type "make" and away you go. + # +-SILC_LIB = /usr/local/silc/lib +-SILC_INCLUDES = /usr/local/silc/include ++SILC_LIB = /usr/lib ++SILC_INCLUDES = /usr/include + + CFLAGS = $(INCLUDES) $(SILC_COMMON_LIBS) $(LDFLAGS) + SOURCES = src/feast.c src/feast_irc.c src/feast_silc.c src/irc_parser.c src/feast_config.c +@@ -22,7 +22,7 @@ + rm -f feast + + feast: $(SOURCES) +- gcc -o feast $(SOURCES) -g -O2 -Wall -finline-functions -D_REENTRANT -I./ -I$(SILC_INCLUDES) -lcrypt -ldl -lpthread -L$(SILC_LIB) -lsilc -lsilcclient -lsilc ++ gcc -o feast $(SOURCES) -g -O2 -Wall -finline-functions -D_REENTRANT -I./ -I$(SILC_INCLUDES) -lcrypt -ldl -lpthread -L$(SILC_LIB) -lsilc -lsilcclient -lsilc -liconv + + debug: clean $(SOURCES) + gcc -o feast $(SOURCES) -g -O2 -Wall -DDEBUG -finline-functions -D_REENTRANT -I./ -I$(SILC_INCLUDES) -lcrypt -ldl -lpthread -L$(SILC_LIB) -lsilc -lsilcclient -lsilc diff --git a/others/feast/feast.SlackBuild b/others/feast/feast.SlackBuild new file mode 100755 index 00000000..cd96dc31 --- /dev/null +++ b/others/feast/feast.SlackBuild @@ -0,0 +1,134 @@ +#!/bin/bash +# +# slackbuild script for feast +# by rhatto at riseup.net +# + +if [ -s "slack-required" ]; then + echo Recomended and required packages for building feast 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="feast" +ARCH=${ARCH:=i486} +VERSION=${VERSION:=03b} +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="tgz" +SRC="$PACKAGE"_"$VERSION.$PACKAGE_EXT" +URL="http://www.hick.org/~raffi/download/$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 + +if [ "$ARC" == "x86_64" ]; then + sed -e 's/\/usr\/lib/\/usr\/lib64/' Makefile > Makefile.tmp + mv Makefile.tmp Makefile +fi + +make || exit $ERROR_MAKE + +CWD="`pwd`" + +mkdir -p $TMP/package-$PACKAGE +cd $TMP/package-$PACKAGE + +mkdir -p usr/bin +cp $CWD/feast usr/bin + +mkdir -p etc/feast +cp $CWD/feast.conf etc/feast.conf.new + +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-----------------------------------------------------| +feast: feast (silc to irc translator) +feast: +feast: SILC stands for Secure Internet Live Conferencing. +feast: Far East Trader (feast) is meant to open up the world of SILC to +feast: IRC users who are to lazy to download a SILC client. +feast: +feast: +feast: +feast: +feast: +feast: +EOF + +# docs +mkdir -p usr/doc/$PACKAGE-$VERSION + +DOCS="license.txt readme.txt" + +for file in $DOCS; do + cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ +done + +# install script +echo '( if [ ! -f "etc/feast.conf" ]; then mv etc/feast.conf.new etc/feast.conf; fi )' > install/doinst.sh + +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/others/feast/slack-required b/others/feast/slack-required new file mode 100644 index 00000000..a22b636a --- /dev/null +++ b/others/feast/slack-required @@ -0,0 +1,2 @@ +libiconv +silc-toolkit -- cgit v1.2.3