### this file is sourced not run
PKGVER=1.22.5
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 11.3 updated to SVN r1297
TARBALL=gst-plugins-ugly-$PKGVER.tar.xz
MD5SUM=8649b3c009336f1ebfeb1b7e3931a3a0
SRC_URL=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/$TARBALL
BUNDLE=

SLACKREQ='gstreamer2 gst2-plugins-base lame libdvdnav libdvdread liba52 \
libmad libopencore-amr liborc twolame libx264'
SLACKDESC="gst2-plugins-ugly: gst2-plugins-ugly $PKGVER (Gstreamer ugly plugins)  
gst2-plugins-ugly:  
gst2-plugins-ugly: The GStreamer Ugly Plug-ins is a set of plug-ins considered 
gst2-plugins-ugly: by the GStreamer developers to have good quality and correct 
gst2-plugins-ugly: functionality, but distributing them might pose problems. 
gst2-plugins-ugly: The license on either the plug-ins or the supporting 
gst2-plugins-ugly: libraries might not be how the GStreamer developers would 
gst2-plugins-ugly: like. The code might be widely known to present patent 
gst2-plugins-ugly: problems.  
gst2-plugins-ugly: 
gst2-plugins-ugly: This set of plugins are for gstreamer2 framework.
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### 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
}
