### this file is sourced not run
PKGVER=1.6.2
PKGBUILD=1
PKGARCH=i686

# source: post BLFS 7.8 2016-01-6
TARBALL=gst-plugins-good-$PKGVER.tar.xz
MD5SUM=ef4f5bc4f31f706832a234b0f603967b
SRC_URL=http://gstreamer.freedesktop.org/src/gst-plugins-good/$TARBALL
BUNDLE=

SLACKREQ='gstreamer2_32 gst2-plugins-base32 cairo32 libflac32 libjpeg-turbo32 
libpng32 libspeex32 libjack2_32' # v4l-utils not included
SLACKDESC="gst2-plugins-good32: gst2-plugins-good32 $PKGVER (Gstreamer good plugins)  
gst2-plugins-good32:  
gst2-plugins-good32: The GStreamer Good Plug-ins is a set of plug-ins considered 
gst2-plugins-good32: by the GStreamer developers to have good quality code, 
gst2-plugins-good32: correct functionality, and the preferred license (LGPL for 
gst2-plugins-good32: the plug-in code, LGPL or LGPL-compatible for the supporting 
gst2-plugins-good32: library). A wide range of video and audio decoders, 
gst2-plugins-good32: encoders, and filters are included.  
gst2-plugins-good32: 
gst2-plugins-good32: This set of plugins are for gstreamer2 framework.
gst2-plugins-good32: This is 32-bit version of the library.s
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/gst*
	
	# don't use libv4l2, sometimes it's buggy
	
	./configure $CONFFLAGS --with-package-name="GStreamer Good Plugins $PKGVER BLFS" \
            --with-package-origin="http://www.linuxfromscratch.org/blfs/view/svn/" \
            --disable-jack --disable-oss4 --with-libv4l2=no \
            --host=${CLFS_TARGET32} &&
    make $MAKEFLAGS && make install &&
	pkg_build_slackdesc
}


