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

# source: BLFS 11.3 updated to SVN r890
TARBALL=gst-plugins-good-$PKGVER.tar.xz
MD5SUM=6d8134ee72fd3e0fd5d92640e149721f
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*

	mkdir build &&
	cd build &&
	meson setup $MESONFLAGS \
		-Dpackage-origin=https://www.linuxfromscratch.org/blfs/view/11.3/ \
		-Dpackage-name="GStreamer $PKGVER BLFS" \
		--wrap-mode=nodownload           \
		--libexec=/usr/$LIBDIR/gstreamer \
	.. &&
	ninja $NINJAFLAGS &&
	ninja $NINJAINSTALLFLAGS install &&
	
	pkg_build_slackdesc
}


