### 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-ugly-$PKGVER.tar.xz
MD5SUM=2beed209d131fb4b997183b11ced9fce
SRC_URL=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/$TARBALL
BUNDLE=

SLACKREQ='gstreamer2_32 gst2-plugins-base32 lame32 libdvdnav32 libdvdread32 liba52_32 \
libmad32 libopencore-amr32 liborc32 twolame32 libx264_32'
SLACKDESC="gst2-plugins-ugly32: gst2-plugins-ugly32 $PKGVER (Gstreamer ugly plugins)  
gst2-plugins-ugly32:  
gst2-plugins-ugly32: The GStreamer Ugly Plug-ins is a set of plug-ins considered 
gst2-plugins-ugly32: by the GStreamer developers to have good quality and correct 
gst2-plugins-ugly32: functionality, but distributing them might pose problems. 
gst2-plugins-ugly32: The license on either the plug-ins or the supporting 
gst2-plugins-ugly32: libraries might not be how the GStreamer developers would 
gst2-plugins-ugly32: like. The code might be widely known to present patent 
gst2-plugins-ugly32: problems.  
gst2-plugins-ugly32: This set of plugins are for gstreamer2 framework.
gst2-plugins-ugly32: This contains 32-bit version of the library
"

### 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 \
		-Dgpl=enabled       \
		-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
}


