Package Details: decklink-sdk 1:11.6-1

Git Clone URL: https://aur.archlinux.org/decklink-sdk.git (read-only, click to copy)
Package Base: decklink-sdk
Description: Blackmagic DeckLink SDK
Upstream URL: https://www.blackmagicdesign.com/support/family/capture-and-playback
Licenses: custom
Conflicts: blackmagic-decklink-sdk
Provides: blackmagic-decklink-sdk
Replaces: blackmagic-decklink-sdk
Submitter: alub
Maintainer: dbermond
Last Packager: dbermond
Votes: 40
Popularity: 0.51
First Submitted: 2011-05-26 11:54
Last Updated: 2020-07-17 16:37

Required by (10)

Sources (1)

Latest Comments

1 2 3 4 5 6 Next › Last »

dbermond commented on 2020-06-28 21:44

@abcfy2 Good that you managed it by yourself.

abcfy2 commented on 2020-06-28 18:45

Hi @dbermond. I find a very simple solution, here is the patch:

diff --git a/PKGBUILD b/PKGBUILD
index d1d7028..355e5a4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,7 +27,7 @@ _reqjson="$(  printf '%s' "$_reqjson"   | sed 's/[[:space:]]\+/ /g')"
 _useragent="$(printf '%s' "$_useragent" | sed 's/[[:space:]]\+/ /g')"
 _useragent_escaped="${_useragent// /\\ }"

-_srcurl="$(curl \
+_srcurl="$(curl -L --post301 \
             -s \
             -H 'Host: www.blackmagicdesign.com' \
             -H 'Accept: application/json, text/plain, */*' \
@@ -43,17 +43,6 @@ _srcurl="$(curl \
             --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 \
-              -o %o \
-              --compressed \
-              %u")
-
 pkgname=decklink-sdk
 pkgver=11.5.1
 pkgrel=1

Both my network and proxy could work.

abcfy2 commented on 2020-06-28 18:15

@dbermond It seems a location issue. I find in my country must request via http. I try to use a American proxy, your PKGBUILD is very well.

But my patch is not working via American proxy, it's sad.

Is there any way try both http and https download?

abcfy2 commented on 2020-06-28 12:59

A little strange. I try your PKGBUILD, but failed. So I download from upstream manually. And I find the download must request via http. If https, then the download url will redirect to http.

dbermond commented on 2020-06-28 12:51

@abcfy2 The source file is downloading fine for me without the need of any modifications.

abcfy2 commented on 2020-06-28 11:49

Hi @dbermond, I've already fixed by myself. I find the upstream URL use http download files. So here is the patch to fix:

diff --git a/PKGBUILD b/PKGBUILD
index d1d7028..08fff13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@

 _downloadid='b7ea0c6787dc447bbf4544b584027724'
 _referid='8a60e5ae8c7040c0866f2432acea4e70'
-_siteurl="https://www.blackmagicdesign.com/api/register/us/download/${_downloadid}"
+_siteurl="http://www.blackmagicdesign.com/api/register/us/download/${_downloadid}"

 _useragent="User-Agent: Mozilla/5.0 (X11; Linux ${CARCH}) \
                         AppleWebKit/537.36 (KHTML, like Gecko) \
@@ -12,6 +12,7 @@ _useragent="User-Agent: Mozilla/5.0 (X11; Linux ${CARCH}) \
                         Safari/537.36"
 _reqjson="{ \
     \"platform\": \"Linux\", \
+    \"policy\": true, \
     \"country\": \"us\", \
     \"firstname\": \"Arch\", \
     \"lastname\": \"Linux\", \
@@ -41,9 +42,10 @@ _srcurl="$(curl \
             -H 'Cookie: _ga=GA1.2.1849503966.1518103294; _gid=GA1.2.953840595.1518103294' \
             --data-ascii "$_reqjson" \
             --compressed \
+            --insecure \
             "$_siteurl")"

-DLAGENTS=("https::/usr/bin/curl \
+DLAGENTS=("http::/usr/bin/curl \
               -gqb '' -C - --retry 3 --retry-delay 3 \
               -H Host:\ sw.blackmagicdesign.com \
               -H Upgrade-Insecure-Requests:\ 1 \

abcfy2 commented on 2020-06-28 10:41

404 Not found:

❯ LC_ALL=en_US.UTF-8 yay -S decklink-sdk :: Checking for conflicts... :: Checking for inner conflicts... [Aur: 1] decklink-sdk-1:11.5.1-1

1 decklink-sdk (Build Files Exist) ==> Packages to cleanBuild? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> :: PKGBUILD up to date, Skipping (1/1): decklink-sdk 1 decklink-sdk (Build Files Exist) ==> Diffs to show? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> :: Parsing SRCINFO (1/1): decklink-sdk ==> Making package: decklink-sdk 1:11.5.1-1 (Sun 28 Jun 2020 06:39:49 PM CST) ==> Retrieving sources... ==> ERROR: Blackmagic_DeckLink_SDK_11.5.1.zip was not found in the build directory and is not a URL. Error downloading sources: decklink-sdk

I've tried the download URL, also 404:

wget 'https://sw.blackmagicdesign.com/DeckLink/v11.5.1/Blackmagic_DeckLink_SDK_11.5.1.zip?Key-Pair-Id=APKAJTKA3ZJMJRQITVEA&Signature=DLX0AB6Nqq6Y/PSno4VMT9U2WxaQ61U12Hw4qgaXUn0f0p0RitYMXWZoTW5ry5veCf12EkhuADqNthLP3E/mZnwBzO0n0lfq7nir2ca8xCToAIZ4uR8D7UQsVyOcgx6CLdhQeVvUY1D8HEonrn8ffvj/tqdYsziQHHEXLjrMky+/ShYmVwTue6z6xc4hUl/M4bxBQG4xxLkavcPeSsEOQYAHCA9teLrY2JlMzUkxMlGjKU+VxLd2iIDSNJT+xCgPku/87FneHeiRQYoEgExWTHWwCqC9UdeKRQu+egL5CfAnEP1i+Gf7ZkINerTIUIPqJ9WnqFOTDWx6EusEpszvIg==&Expires=1589504134'

Trying to shorten... New name is Blackmagic_DeckLink_SDK_11.5.1.zip?Key-Pair-Id=APKAJTKA3ZJMJRQITVEA&Signature=DLX0AB6Nqq6Y%2FPSno4VMT9U2WxaQ61U12Hw4qgaXUn0f0p0RitYMXWZoTW5ry5veCf12EkhuADqNthLP3E%2FmZnwBzO0n0lfq7nir2ca8xCToAIZ4uR8D7UQsVyOcgx6CLdhQeVvUY1D8HEonrn8ffvj%2F. --2020-06-28 18:40:47-- https://sw.blackmagicdesign.com/DeckLink/v11.5.1/Blackmagic_DeckLink_SDK_11.5.1.zip?Key-Pair-Id=APKAJTKA3ZJMJRQITVEA&Signature=DLX0AB6Nqq6Y/PSno4VMT9U2WxaQ61U12Hw4qgaXUn0f0p0RitYMXWZoTW5ry5veCf12EkhuADqNthLP3E/mZnwBzO0n0lfq7nir2ca8xCToAIZ4uR8D7UQsVyOcgx6CLdhQeVvUY1D8HEonrn8ffvj/tqdYsziQHHEXLjrMky+/ShYmVwTue6z6xc4hUl/M4bxBQG4xxLkavcPeSsEOQYAHCA9teLrY2JlMzUkxMlGjKU+VxLd2iIDSNJT+xCgPku/87FneHeiRQYoEgExWTHWwCqC9UdeKRQu+egL5CfAnEP1i+Gf7ZkINerTIUIPqJ9WnqFOTDWx6EusEpszvIg==&Expires=1589504134 Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving sw.blackmagicdesign.com (sw.blackmagicdesign.com)... 99.84.224.113, 99.84.224.38, 99.84.224.67, ... Connecting to sw.blackmagicdesign.com (sw.blackmagicdesign.com)|99.84.224.113|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2020-06-28 18:40:48 ERROR 404: Not Found.

pangwa commented on 2020-06-09 23:24

It seems to be the local network problem. I can download it now. Thanks @dbermond

dbermond commented on 2020-06-09 16:10

@pangwa The source file is downloading fine for me.

pangwa commented on 2020-06-09 15:11

Can't download Blackmagic_DeckLink_SDK_11.5.1.zip...

==> Making package: decklink-sdk 1:11.5.1-1 (Tue 09 Jun 2020 10:56:37 PM CST) ==> Retrieving sources... ==> ERROR: Blackmagic_DeckLink_SDK_11.5.1.zip was not found in the build directory and is not a URL. Error downloading sources: decklink-sdk