aboutsummaryrefslogblamecommitdiffstats
path: root/community/gst-plugins-bad/APKBUILD
blob: 3f228beab309d90a5aac6234b8920254af2e6e64 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
                       
             
        
                                                          
                                       
                                                  
                                            
                                                      
                           

                                                                            
                                                                      
                                                                       
                                                                            
                                                                              




                                                                              
         


                 
                 

                                                                          

    
                                        
                                                                                             
                               
 
         
                      

                                                                        
                                         
                                
                        
                                                   


         




                                                                               


           
                                                              

 
                                                                                                                                                                            
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gst-plugins-bad
pkgver=1.18.4
pkgrel=2
pkgdesc="GStreamer streaming media framework bad plug-ins"
url="https://gstreamer.freedesktop.org"
arch="all !mips64" # mips64 blocked by openexr-dev
license="GPL-2.0-or-later LGPL-2.0-or-later"
options="!check" # 3 out of 51 tests fail as of 1.16.0
replaces="gst-plugins-bad1"
makedepends="alsa-lib-dev bluez-dev bzip2-dev curl-dev directfb-dev faac-dev
	faad2-dev flite-dev glib-dev glu-dev gsm-dev gst-plugins-base-dev
	gstreamer-dev libass-dev libdc1394-dev libmms-dev libgudev-dev
	libmodplug-dev libsrtp-dev libvdpau-dev libwebp-dev libnice-dev
	libx11-dev mesa-dev meson neon-dev openssl-dev opus-dev orc-compiler
	orc-dev spandsp-dev tiff-dev x265-dev vulkan-loader-dev vulkan-headers
	wayland-dev wayland-protocols gobject-introspection-dev libusrsctp-dev
	lcms2-dev pango-dev chromaprint-dev fdk-aac-dev fluidsynth-dev
	libde265-dev openal-soft-dev openexr-dev openjpeg-dev libdvdnav-dev
	libdvdread-dev sbc-dev libsndfile-dev soundtouch-dev libxkbcommon-dev
	zbar-dev gtk+3.0-dev rtmpdump-dev vo-aacenc-dev vo-amrwbenc-dev
	"

case "$CARCH" in
	s390x) ;;
	mips*) ;;
	armv7|armhf) makedepends="$makedepends librsvg-dev libexif-dev" ;;
	*) makedepends="$makedepends librsvg-dev aom-dev libexif-dev" ;;
esac

subpackages="$pkgname-lang $pkgname-dev"
source="https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-$pkgver.tar.xz"
ldpath="/usr/lib/gstreamer-1.0"

build() {
	abuild-meson \
		-Dpackage-origin="https://alpinelinux.org" \
		-Dpackage-name="GStreamer bad plug-ins (Alpine Linux)" \
		-Dintrospection=enabled \
		-Dsctp=enabled \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	# XDG_RUNTIME_DIR is just a temporary directory for a user, created
	# by pam_systemd (or in Alpine's case elogind's pam_elogind) mounted at
	# run/user/$(id -u), since we don't run elogind on the builders we can
	# just point it at /tmp
	XDG_RUNTIME_DIR=/tmp meson test -C output --print-errorlogs
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="02123e054419f5ce6ca2ebe0bdf23572269ea4120bf463b4d672efbe5d9e5d417d4d711cc80094be974c4569f754d8b2ad93f59b827e3b018d450582834cb125  gst-plugins-bad-1.18.4.tar.xz"