summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 13 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d1d7028b60d..f08aa4708b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,11 @@
# Contributor: Muhammad Yahya Harlan <muhammad.harlan@binus.ac.id>
# Contributor: Antoine Lubineau <antoine@lubignon.info>
-_downloadid='b7ea0c6787dc447bbf4544b584027724'
-_referid='8a60e5ae8c7040c0866f2432acea4e70'
+_downloadid='761a49d851a24c20bb54f6ab010a8909'
+_referid='fbbb2af999e546cfb86389978700480a'
_siteurl="https://www.blackmagicdesign.com/api/register/us/download/${_downloadid}"
+_useragent="User-Agent: Mozilla/5.0 (X11; Linux ${CARCH}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
-_useragent="User-Agent: Mozilla/5.0 (X11; Linux ${CARCH}) \
- AppleWebKit/537.36 (KHTML, like Gecko) \
- Chrome/83.0.4103.61 \
- Safari/537.36"
_reqjson="{ \
\"platform\": \"Linux\", \
\"country\": \"us\", \
@@ -23,55 +20,44 @@ _reqjson="{ \
\"product\": \"Desktop Video ${pkgver} SDK\" \
}"
-_reqjson="$( printf '%s' "$_reqjson" | sed 's/[[:space:]]\+/ /g')"
-_useragent="$(printf '%s' "$_useragent" | sed 's/[[:space:]]\+/ /g')"
-_useragent_escaped="${_useragent// /\\ }"
-
_srcurl="$(curl \
-s \
- -H 'Host: www.blackmagicdesign.com' \
- -H 'Accept: application/json, text/plain, */*' \
- -H 'Origin: https://www.blackmagicdesign.com' \
-H "$_useragent" \
-H 'Content-Type: application/json;charset=UTF-8' \
-H "Referer: https://www.blackmagicdesign.com/support/download/${_referid}/Linux" \
- -H 'Accept-Encoding: gzip, deflate, br' \
- -H 'Accept-Language: en-US,en;q=0.9' \
- -H 'Authority: www.blackmagicdesign.com' \
- -H 'Cookie: _ga=GA1.2.1849503966.1518103294; _gid=GA1.2.953840595.1518103294' \
--data-ascii "$_reqjson" \
--compressed \
"$_siteurl")"
DLAGENTS=("https::/usr/bin/curl \
-gqb '' -C - --retry 3 --retry-delay 3 \
- -H Host:\ sw.blackmagicdesign.com \
-H Upgrade-Insecure-Requests:\ 1 \
- -H ${_useragent_escaped} \
- -H Accept:\ text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 \
- -H Accept-Language:\ en-US,en;q=0.9 \
+ -H ${_useragent// /\\ } \
-o %o \
--compressed \
%u")
pkgname=decklink-sdk
-pkgver=11.5.1
+pkgver=11.6
pkgrel=1
epoch=1
pkgdesc='Blackmagic DeckLink SDK'
arch=('any')
url='https://www.blackmagicdesign.com/support/family/capture-and-playback'
license=('custom')
+makedepends=('poppler')
provides=('blackmagic-decklink-sdk')
conflicts=('blackmagic-decklink-sdk')
replaces=('blackmagic-decklink-sdk')
-source=("Blackmagic_DeckLink_SDK_${pkgver}.zip"::"$_srcurl"
- 'LICENSE')
-sha256sums=('60df0abb766c724c5c60cd44f1ff9715725ed79ee0a8e3ffef34c4d24ba5811f'
- 'cc90e53ac2ef2442d2d0adfe9214119baa31ec080e75c3b087365efdbccc23df')
+source=("Blackmagic_DeckLink_SDK_${pkgver}.zip"::"$_srcurl")
+sha256sums=('2cecde0b6af98ef3cefa425ec0595849fb30a26da4063becd80582dbc0483183')
+
+prepare() {
+ pdftotext -layout "Blackmagic DeckLink SDK ${pkgver}/End User License Agreement.pdf"
+}
package() {
install -D -m644 "Blackmagic DeckLink SDK ${pkgver}"/Linux/include/* -t "${pkgdir}/usr/include"
install -D -m644 "Blackmagic DeckLink SDK ${pkgver}/Blackmagic DeckLink SDK.pdf" -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -D -m644 "Blackmagic DeckLink SDK ${pkgver}/End User License Agreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}