Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: ffnvcodec-headers #6422

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ fennel-bin
ferdium-deb
ferium-bin
feroxbuster-bin
ffnvcodec-headers
ffsend-bin
firefox-arm64-deb
firefox-bin
Expand Down
12 changes: 12 additions & 0 deletions packages/ffnvcodec-headers/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pkgbase = ffnvcodec-headers
gives = ffnvcodec-headers
pkgver = 12.2.72.0
pkgdesc = FFmpeg version of headers required to interface with Nvidias codec APIs
url = https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
makedepends = git
license = MIT
maintainer = Luis Garcia <pacstall@luigi311.com>
source = https://github.com/FFmpeg/nv-codec-headers/releases/download/n12.2.72.0/nv-codec-headers-12.2.72.0.tar.gz
sha256sums = c295a2ba8a06434d4bdc5c2208f8a825285210d71d91d572329b2c51fd0d4d03

pkgname = ffnvcodec-headers
33 changes: 33 additions & 0 deletions packages/ffnvcodec-headers/ffnvcodec-headers.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pkgname="ffnvcodec-headers"
gives="ffnvcodec-headers"
pkgver="12.2.72.0"
url='https://git.videolan.org/git/ffmpeg/nv-codec-headers.git'
pkgdesc="FFmpeg version of headers required to interface with Nvidias codec APIs"
maintainer=("Luis Garcia <pacstall@luigi311.com>")
license=('MIT')

source=(
"https://github.com/FFmpeg/nv-codec-headers/releases/download/n${pkgver}/nv-codec-headers-${pkgver}.tar.gz"
)
sha256sums=(
"c295a2ba8a06434d4bdc5c2208f8a825285210d71d91d572329b2c51fd0d4d03"
)

makedepends=(
'git'
)
depends=()
optdepends=()

build() {
cd "${_archive}"
make PREFIX=/usr
sed -n '4,25p' include/ffnvcodec/nvEncodeAPI.h > LICENSE # Extract license
sed -i '1,22s/^.\{,3\}//' LICENSE # Delete C comments
}

package() {
cd "${_archive}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/ffnvcodec-headers/
}
13 changes: 13 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -2599,6 +2599,19 @@ pkgbase = feroxbuster-bin

pkgname = feroxbuster-bin
---
pkgbase = ffnvcodec-headers
gives = ffnvcodec-headers
pkgver = 12.2.72.0
pkgdesc = FFmpeg version of headers required to interface with Nvidias codec APIs
url = https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
makedepends = git
license = MIT
maintainer = Luis Garcia <pacstall@luigi311.com>
source = https://github.com/FFmpeg/nv-codec-headers/releases/download/n12.2.72.0/nv-codec-headers-12.2.72.0.tar.gz
sha256sums = c295a2ba8a06434d4bdc5c2208f8a825285210d71d91d572329b2c51fd0d4d03

pkgname = ffnvcodec-headers
---
pkgbase = ffsend-bin
gives = ffsend
pkgver = 0.2.76
Expand Down
Loading