# Maintainer: Justin Gassner _pkgname=ffmpeg pkgname=$_pkgname-jxir pkgver=4.1 pkgrel=1 epoch=1 pkgdesc='Complete solution to record, convert and stream audio and video' arch=('x86_64') url='https://ffmpeg.org/' license=('GPL3') depends=('alsa-lib' 'bzip2' 'fontconfig' 'libass' 'zlib') makedepends=('git' 'nasm') provides=('libavcodec.so' 'libavdevice.so' 'libavfilter.so' 'libavformat.so' 'libavutil.so' 'libpostproc.so' 'libswresample.so' 'libswscale.so' 'ffmpeg') conflicts=('ffmpeg') source=("http://ffmpeg.org/releases/$_pkgname-$pkgver.tar.xz"{,.asc}) sha256sums=('a38ec4d026efb58506a99ad5cd23d5a9793b4bf415f2c4c2e9c1bb444acd1994' 'SKIP') validpgpkeys=('FCF986EA15E6E293A5644F10B4322F04D67658D8') build() { cd "$srcdir/$_pkgname-$pkgver" ./configure \ --prefix='/usr' \ --enable-gpl \ --enable-version3 \ --disable-static \ --enable-shared \ --disable-runtime-cpudetect \ --disable-swscale-alpha \ --disable-ffplay \ --disable-doc \ --disable-network \ --disable-everything \ --enable-rdft \ --enable-decoder=aac,h264,opus \ --enable-hwaccel=h264_vaapi,vp9_vaapi \ --enable-muxer=mp4,matroska,webm \ --enable-demuxer=aac,ass,h264,matroska,mov \ --enable-parser=aac,h264,opus,vp9 \ --enable-bsf=vp9_superframe \ --enable-protocol=file \ --enable-libass \ --enable-libfontconfig \ --enable-libfreetype \ --disable-debug make } package() { cd "$srcdir/$_pkgname-$pkgver" make DESTDIR="$pkgdir" install install-man }