aboutsummaryrefslogblamecommitdiffstats
path: root/main/gstreamer/APKBUILD
blob: cffedc0bd1d9d6e907fa3c6e7c0bae14d439a8fc (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
                 
             
        
                                             
                                       
          
                           
                     
                                                                    
                         

                                                                       
                                                                                 

         
                      





                                                            
                                                   


           
                                                              


         
                                                               





                                              



                                  
 
                                                                                                                                                                      
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gstreamer
pkgver=1.18.3
pkgrel=0
pkgdesc="GStreamer streaming media framework"
url="https://gstreamer.freedesktop.org"
arch="all"
license="LGPL-2.0-or-later"
replaces="gstreamer1"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools $pkgname-lang"
depends_dev="libxml2-dev"
makedepends="$depends_dev bison flex glib-dev gobject-introspection-dev
	libcap-dev meson perl"
source="https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dintrospection=enabled \
		-Dbash-completion=disabled \
		-Dptp-helper-permissions=capabilities \
		-Dpackage-name="GStreamer (Alpine Linux)" \
		-Dpackage-origin="https://alpinelinux.org" \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

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

tools() {
	pkgdesc="Tools for GStreamer streaming media framework"
	# gst-feedback needs this
	depends="pkgconfig"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

doc() {
	default_doc
	replaces="${pkgname}1-doc"
}

sha512sums="c0258fb1f233facec72b5004d33d36871b11235d369e7f1f1e0597c5880bef89a5337550fa8b285688b5c9f42dac6e7d1f1208076d4b90a09363d2805e0dfba9  gstreamer-1.18.3.tar.xz"