Package Details: decklink-sdk 1:14.2-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: LicenseRef-custom
Conflicts: blackmagic-decklink-sdk
Provides: blackmagic-decklink-sdk
Replaces: blackmagic-decklink-sdk
Submitter: alub
Maintainer: dbermond
Last Packager: dbermond
Votes: 50
Popularity: 0.006980
First Submitted: 2011-05-26 11:54 (UTC)
Last Updated: 2024-08-16 02:31 (UTC)

Latest Comments

1 2 3 4 5 6 .. 8 Next › Last »

dbermond commented on 2023-07-12 16:37 (UTC)

@TurnoffNOD I've just checked, and the package is building fine. Your log shows that you are using an AUR helper, and this is not supported. Please use makepkg.

TurnoffNOD commented on 2023-07-12 07:24 (UTC) (edited on 2023-07-12 07:26 (UTC) by TurnoffNOD)

Hi, the latest PKGBUILD still build failed:

AUR Dependency (1): decklink-sdk-1:12.5.1-1
:: PKGBUILD up to date, skipping download: decklink-sdk
  1 decklink-sdk                     (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
  1 decklink-sdk                     (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
==> Making package: decklink-sdk 1:12.5.1-1 (2023年07月12日 星期三 14时59分43秒)
==> Retrieving sources...
==> ERROR: Blackmagic_DeckLink_SDK_12.5.1.zip was not found in the build directory and is not a URL.
 -> error downloading sources: /home/ashes/.cache/yay/decklink-sdk
         context: exit status 1


:: (1/1) Parsing SRCINFO: decklink-sdk
==> Making package: decklink-sdk 1:12.5.1-1 (2023年07月12日 星期三 14时59分46秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: Blackmagic_DeckLink_SDK_12.5.1.zip was not found in the build directory and is not a URL.
 -> error making: decklink-sdk-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
decklink-sdk - exit status 1

I have checked the PKGBUILD, found the "ERROR" line, which is source=("Blackmagic_DeckLink_SDK_${pkgver}.zip"::"$_srcurl").

Then I execute this curl (what _srccurl is) command in the terminal, variables manually set its value, which becomes commandline

curl -s -H "User-Agent: Mozilla/5.0 (X11; Linux ${CARCH}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.198 Safari/537.36" -H 'Content-Type: application/json;charset=UTF-8' -H "Referer: https://www.blackmagicdesign.com/support/download/8dbc1e1a31924df7ad46cfa4a8e08ce1/Linux" --data-ascii "{ \
    \"platform\": \"Linux\", \
    \"country\": \"us\", \
    \"firstname\": \"Arch\", \
    \"lastname\": \"Linux\", \
    \"email\": \"someone@archlinux.org\", \
    \"phone\": \"202-555-0194\", \
    \"state\": \"New York\", \
    \"city\": \"AUR\", \
    \"street\": \"PKGBUILD Street\", \
    \"policy\": true, \
    \"hasAgreedToTerms\": true, \
    \"product\": \"Desktop Video ${pkgver} SDK\" \
}" --compressed "https://www.blackmagicdesign.com/api/register/us/download/16b195b1b9c54c0089aaa3ef0757a457" 

Its output is:

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>openresty</center>
</body>
</html>

If I use a variable "foobar" to store it, the variable will be empty.

I guess this empty _srcurl cause this problem.

dbermond commented on 2023-07-11 16:52 (UTC)

@RiCON @brauliobo @Bink Package updated. Building fine. Thanks @RiCON for noticing the new required fields, we better keep referid while it's still present.

Bink commented on 2023-07-10 01:32 (UTC) (edited on 2023-07-10 01:33 (UTC) by Bink)

As mentioned by @brauliobo, the build is failing (early):

==> Making package: decklink-sdk 1:12.5-1 (Mon 10 Jul 2023 11:05:26)
==> Retrieving sources...
==> ERROR: Blackmagic_DeckLink_SDK_12.5.zip was not found in the build directory and is not a URL.
 -> error downloading sources: /home/bink/.cache/yay/decklink-sdk 
         context: exit status 1 

:: (1/1) Parsing SRCINFO: decklink-sdk
==> Making package: decklink-sdk 1:12.5-1 (Mon 10 Jul 2023 11:05:29)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: Blackmagic_DeckLink_SDK_12.5.zip was not found in the build directory and is not a URL.
 -> error making: decklink-sdk-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
decklink-sdk - exit status 1

I can confirm that @RICON's patch resolves it (thanks RICON!)

brauliobo commented on 2023-07-09 01:59 (UTC)

Cant yet build :(

RiCON commented on 2023-07-08 22:29 (UTC)

Fix/simplification that still works to download the latest SDK, at least for me. There's two new mandatory parameters needed in the JSON. Referer doesn't seem to be needed for a valid download link.

diff --git a/PKGBUILD b/PKGBUILD
index fead451..3518cf2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,22 @@
 # Contributor: Muhammad Yahya Harlan <muhammad.harlan@binus.ac.id>
 # Contributor: Antoine Lubineau <antoine@lubignon.info>

-_downloadid='359e4b2f20df4547bc443ad90b556968'
-_referid='bba2acb06391447db77988db0f2966e2'
+_downloadid='16b195b1b9c54c0089aaa3ef0757a457'
 _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/114.0.5735.198 Safari/537.36"

 _reqjson="{ \
     \"platform\": \"Linux\", \
+    \"policy\": true, \
+    \"hasAgreedToTerms\": true, \
     \"country\": \"us\", \
     \"firstname\": \"Arch\", \
     \"lastname\": \"Linux\", \
     \"email\": \"someone@archlinux.org\", \
     \"phone\": \"202-555-0194\", \
     \"state\": \"New York\", \
+    \"street\": \"Archlinux Way\", \
     \"city\": \"AUR\", \
-    \"hasAgreedToTerms\": true, \
     \"product\": \"Desktop Video ${pkgver} SDK\" \
 }"

@@ -24,7 +25,6 @@ _srcurl="$(curl \
             -s \
             -H "$_useragent" \
             -H 'Content-Type: application/json;charset=UTF-8' \
-            -H "Referer: https://www.blackmagicdesign.com/support/download/${_referid}/Linux" \
             --data-ascii "$_reqjson" \
             --compressed \
             "$_siteurl")"
@@ -38,7 +38,7 @@ DLAGENTS=("https::/usr/bin/curl \
               %u")

 pkgname=decklink-sdk
-pkgver=12.5
+pkgver=12.5.1
 pkgrel=1
 epoch=1
 pkgdesc='Blackmagic DeckLink SDK'
@@ -50,7 +50,7 @@ provides=('blackmagic-decklink-sdk')
 conflicts=('blackmagic-decklink-sdk')
 replaces=('blackmagic-decklink-sdk')
 source=("Blackmagic_DeckLink_SDK_${pkgver}.zip"::"$_srcurl")
-sha256sums=('ad9408c32bb0ca42efb45687b88c309753f5757c8d947b496b3ad869b370c5b1')
+sha256sums=('071858044bc988088a5f54e995f1f351d416a7c3ec080b743043a76ffbdc70fd')

 prepare() {
     pdftotext -layout "Blackmagic DeckLink SDK ${pkgver}/End User License Agreement.pdf"

dbermond commented on 2022-06-27 02:30 (UTC)

@San32 Upstream changed downloadid. Package updated, thanks for reporting.