summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Bermond2019-12-07 22:45:43 +0000
committerDaniel Bermond2019-12-07 22:51:45 +0000
commit034381703ca133fe73deaf44ce3940e3773f5a13 (patch)
tree5e2e66b592306c7ec25264b6687f6ed4bcd7e817 /PKGBUILD
parent5edb4115919493a6bc49056444ce4e0c04b64902 (diff)
downloadaur-034381703ca133fe73deaf44ce3940e3773f5a13.tar.gz
Updated to version 11.4
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD93
1 files changed, 72 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 52a924bdd83..24cc886e707 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,82 @@
-# Maintainer: Muhammad Yahya Harlan <muhammad.harlan@binus.ac.id>
+# Maintainer : Daniel Bermond < gmail-com: danielbermond >
+# Contributor: Muhammad Yahya Harlan <muhammad.harlan@binus.ac.id>
# Contributor: Antoine Lubineau <antoine@lubignon.info>
+_downloadid='a0340cfa110a4a9ebe2f0730ff30abcc'
+_referid='d7c7c56fde714ba3a0757e99d07735d5'
+_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/78.0.3904.108 \
+ Safari/537.36"
+_reqjson="{ \
+ \"platform\": \"Linux\", \
+ \"country\": \"us\", \
+ \"firstname\": \"Arch\", \
+ \"lastname\": \"Linux\", \
+ \"email\": \"someone@archlinux.org\", \
+ \"phone\": \"202-555-0194\", \
+ \"state\": \"New York\", \
+ \"city\": \"AUR\", \
+ \"hasAgreedToTerms\": true, \
+ \"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 \
+ -o %o \
+ --compressed \
+ %u")
pkgname=decklink-sdk
-pkgver=10.8.5
+pkgver=11.4
pkgrel=1
epoch=1
-pkgdesc="Blackmagic Design DeckLink SDK"
-arch=('i686' 'x86_64')
-url="https://www.blackmagicdesign.com/support/family/capture-and-playback"
+pkgdesc='Blackmagic DeckLink SDK'
+arch=('any')
+url='https://www.blackmagicdesign.com/support/family/capture-and-playback'
license=('custom')
-depends=('glu' 'mesa' 'qt4')
-makedepends=('unzip')
-options=('!strip')
-source=("local://Blackmagic_DeckLink_SDK_${pkgver}.zip")
-sha256sums=('06c02febfe6dde2ddd19147115aa659ae1b4cd3c11c1e17cee52eedc3c43da1a')
+provides=('blackmagic-decklink-sdk')
+conflicts=('blackmagic-decklink-sdk')
+replaces=('blackmagic-decklink-sdk')
+source=("Blackmagic_DeckLink_SDK_${pkgver}.zip"::"$_srcurl"
+ 'LICENSE')
+sha256sums=('9cfab8b1681303ba882a562b888241e32592fe1f4c172e1e7ff65b7f74e73825'
+ 'cc90e53ac2ef2442d2d0adfe9214119baa31ec080e75c3b087365efdbccc23df')
package() {
- cd "$srcdir"
-
- mkdir -p "$pkgdir/usr/src" "$pkgdir/usr/bin"
- cp -a "$srcdir/Blackmagic DeckLink SDK $pkgver/Linux/include" "$pkgdir/usr/src/decklink-sdk"
- [ "$CARCH" = "i686" ] && _arch='i386'
- [ "$CARCH" = "x86_64" ] && _arch='x86_64'
- cd "$srcdir/Blackmagic DeckLink SDK $pkgver/Linux/Samples/bin/${_arch}"
- for util in Capture DeviceList LoopThroughWithOpenGLCompositing OpenGLOutput SignalGenerator TestPattern
- do
- install -D $util "$pkgdir/usr/bin/$util"
- done
+ # headers
+ install -D -m644 "Blackmagic DeckLink SDK ${pkgver}"/Linux/include/* -t "${pkgdir}/usr/include"
+
+ # documentation
+ install -D -m644 "Blackmagic DeckLink SDK ${pkgver}/Blackmagic DeckLink SDK.pdf" -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # license
+ install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}