#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums) pkgname=gst-plugins-standard pkgver=0.10.14 zenver=62 pkgrel=1 arch=i486 source=("http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-0.10.14.tar.bz2" "http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.11.tar.bz2" "http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-0.10.11.tar.bz2" "http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-0.10.7.tar.bz2") sourcetemplate=http://pnboy.pinguix.com/gapan/gstreamer/$pkgname url="http://gstreamer.freedesktop.org/" options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gst-plugins-standard - plugins for handling all kinds of media" "gst-plugins-standard provides the gstreamer plugins for handling the" "majority of media formats with gstreamer. Other additional plugins can" "be found in the gst-plugins-extra, gst-plugins-libvisual and" "gst-plugins-lame packages." ) build() { cd $startdir/src/gst-plugins-good-0.10.14 ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-static make || return 1 make install DESTDIR=$startdir/pkg cd $startdir/src/gst-plugins-ugly-0.10.11 ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-examples --disable-static make || return 1 make install DESTDIR=$startdir/pkg cd $startdir/src/gst-plugins-bad-0.10.11 ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-static --disable-dirac make || return 1 make install DESTDIR=$startdir/pkg cd $startdir/src/gst-ffmpeg-0.10.7 sed -i "s/-O3/-O2/" gst-libs/ext/ffmpeg/configure ./configure --prefix=/usr --disable-static make || return 1 make install DESTDIR=$startdir/pkg # gconf stuff export GCONF_CONFIG_SOURCE="xml::$startdir/pkg/etc/gconf/gconf.xml.defaults" if [ -d $startdir/pkg/etc/gconf/schemas ]; then install -v -d -m755 $startdir/pkg/etc/gconf/gconf.xml.defaults SCHEMAS=$startdir/pkg/etc/gconf/schemas for schema in $SCHEMAS/*.schemas; do gconftool-2 --makefile-install-rule $schema done # Reset / Verify correct permissions ( cd $startdir/pkg/etc/gconf ; find . -type d -exec chmod 755 {} \; ) ( cd $startdir/pkg/etc/gconf ; find . -type f -exec chmod 644 {} \; ) fi # Package extra plugins not needed for the iso separately mkdir -p $startdir/pkgtemp/usr/lib/gstreamer-0.10/ mv $startdir/pkg/usr/lib/gstreamer-0.10/libgst{sid,x264,soundtouch,sndfile,ofa,trm,jp2k,faac,cacasink,1394,jack,amr*}.* $startdir/pkgtemp/usr/lib/gstreamer-0.10/ mkdir -p $startdir/pkgtemp/install # Create the slack-desc file cat > $startdir/pkgtemp/install/slack-desc << END |-----handy-ruler------------------------------------------------------| gst-plugins-extra: gst-plugins-extra - extra gstreamer plugins gst-plugins-extra: gst-plugins-extra: gst-plugins-extra is a collection of gstreamer plugins that are not gst-plugins-extra: needed by most users, like plugins for encoding to aac audio or gst-plugins-extra: x264 video with gstreamer. gst-plugins-extra: gst-plugins-extra: gst-plugins-extra: gst-plugins-extra: gst-plugins-extra: gst-plugins-extra: END mkdir -p $startdir/pkgtemp/usr/src/gst-plugins-extra cp $startdir/ZENBUILD $startdir/pkgtemp/usr/src/gst-plugins-extra cp $startdir/build-$pkgname.sh $startdir/pkgtemp/usr/src/ cd $startdir/pkgtemp /sbin/makepkg -l y -c n $startdir/gst-plugins-extra-$pkgver-i486-$zenver\.$pkgrel.tgz md5sum $startdir/gst-plugins-extra-$pkgver-i486-$zenver\.$pkgrel.tgz > $startdir/gst-plugins-extra-$pkgver-i486-$zenver\.$pkgrel.md5 rm -rf $startdir/pkgtemp # Package the lame plugin separately mkdir -p $startdir/pkgtemp/usr/lib/gstreamer-0.10/ mv $startdir/pkg/usr/lib/gstreamer-0.10/libgstlame.* $startdir/pkgtemp/usr/lib/gstreamer-0.10/ mkdir -p $startdir/pkgtemp/install # Create the slack-desc file cat > $startdir/pkgtemp/install/slack-desc << END |-----handy-ruler------------------------------------------------------| gst-plugins-lame: gst-plugins-lame - mp3 encoding pluginfor gstreamer gst-plugins-lame: gst-plugins-lame: gst-plugins-lame is a gstreamer plugin that allows to create mp3 gst-plugins-lame: audio files by using the lame mp3 encoder. gst-plugins-lame: gst-plugins-lame: gst-plugins-lame: gst-plugins-lame: gst-plugins-lame: gst-plugins-lame: gst-plugins-lame: END mkdir -p $startdir/pkgtemp/usr/src/gst-plugins-lame cp $startdir/ZENBUILD $startdir/pkgtemp/usr/src/gst-plugins-lame cp $startdir/build-$pkgname.sh $startdir/pkgtemp/usr/src cd $startdir/pkgtemp /sbin/makepkg -l y -c n $startdir/gst-plugins-lame-$pkgver-i486-$zenver\.$pkgrel.tgz md5sum $startdir/gst-plugins-lame-$pkgver-i486-$zenver\.$pkgrel.tgz > $startdir/gst-plugins-lame-$pkgver-i486-$zenver\.$pkgrel.md5 rm -rf $startdir/pkgtemp }