summaryrefslogtreecommitdiffstats
path: root/source/d/nv-codec-headers/fetch-sources.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/nv-codec-headers/fetch-sources.sh')
-rwxr-xr-xsource/d/nv-codec-headers/fetch-sources.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/d/nv-codec-headers/fetch-sources.sh b/source/d/nv-codec-headers/fetch-sources.sh
new file mode 100755
index 000000000..5443e429f
--- /dev/null
+++ b/source/d/nv-codec-headers/fetch-sources.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+VERSION=${VERSION:-12.1.14.0}
+
+rm -rf nv-codec-headers-*.tar.?z*
+
+git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git nv-codec-headers
+
+cd nv-codec-headers
+ git checkout n$VERSION
+cd ..
+
+mv nv-codec-headers nv-codec-headers-$VERSION
+
+tar --exclude-vcs -cf nv-codec-headers-$VERSION.tar nv-codec-headers-$VERSION
+plzip -9 nv-codec-headers-$VERSION.tar
+
+rm -rf nv-codec-headers-$VERSION