# Description: FFmpeg version of headers required to interface with Nvidias codec APIs.
# URL: https://github.com/FFmpeg/nv-codec-headers
# Maintainer: unmaintained

name=nv-codec-headers
version=12.0.16.0
release=1
source=(https://github.com/FFmpeg/nv-codec-headers/archive/n$version/$name-n$version.tar.gz)

build() {
	cd $name-n$version

	sed -i -e 's|/include|/include/ffnvcodec|g' ffnvcodec.pc.in

	make PREFIX=/usr LIBDIR=/share
	make PREFIX=/usr LIBDIR=/share DESTDIR="$PKG" install
}
