blob: bd9463731e26c1a76259d058a1578c42bf8053ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainers: Perry Hung <perry@leaflabs.com> Florent Thiery <fthiery@gmail.com> Théo Le Calvar <tlc@kher.nl>
pkgbase=decklink
pkgname=(decklink mediaexpress)
_pkgname=decklink
pkgver=14.2.1
pkgrel=1
pkgdesc="Drivers for Blackmagic Design DeckLink, Intensity or Multibridge video editing cards"
arch=('i686' 'x86_64')
url="https://www.blackmagicdesign.com/support/family/capture-and-playback"
license=('custom')
makedepends=('curl')
options=('!strip' 'staticlibs')
[ "$CARCH" = "i686" ] && _arch='i386'
[ "$CARCH" = "x86_64" ] && _arch='x86_64'
_pkgsrc_url="https://www.blackmagicdesign.com/api/register/us/download/de70ac89064045368ae353935078e818"
_pkgsrc_file=${_pkgname}-${pkgver}.tar.gz
DLAGENTS=("https::/usr/bin/curl \
-o %o \
-H Referer:\ %u \
$(curl \
-s \
-H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0" \
-H 'Content-Type: application/json;charset=utf-8' \
--data "{\"country\":\"us\",\"platform\":\"Linux\"}" \
"${_pkgsrc_url}" \
)"
)
source=("${_pkgsrc_file}"::"${_pkgsrc_url}"
)
sha256sums=('819c70964d2440980ee77b89b31ba53cc8decc77eb96f8e372692db9d2dcea96')
prepare() {
cd $srcdir/Blackmagic_Desktop_Video_Linux_$pkgver/other/${_arch}
tar xf desktopvideo-*-${_arch}.tar.gz
cd desktopvideo-*/usr/src
# for p in ${srcdir}/*.patch;
# do
# echo "Applying ${p}"
# patch --forward --strip=1 --input="${p}"
# done
}
package_decklink() {
install=decklink.install
depends=('dkms' 'qt5-base' 'libpng')
mkdir -p "$pkgdir/usr/share/licenses/$pkgbase"
chmod 755 "$pkgdir/usr/share/licenses/$pkgbase"
ln -s /usr/share/doc/desktopvideo/License.txt "$pkgdir/usr/share/licenses/$pkgbase/DesktopVideo"
cd $srcdir/Blackmagic_Desktop_Video_Linux_$pkgver/other/${_arch}
cp -a desktopvideo-*-${_arch}/* $pkgdir
rm -rf $pkgdir/usr/sbin
chmod 755 "$pkgdir/usr"
chmod 755 "$pkgdir/usr/share"
chmod 755 "$pkgdir/usr/share/doc"
}
package_mediaexpress() {
depends=('glu' 'qt5-base' 'qt5-svg' 'libpng' 'decklink')
mkdir -p "$pkgdir/usr/share/licenses/$pkgbase"
chmod 755 "$pkgdir/usr/share/licenses/$pkgbase"
ln -s /usr/share/doc/mediaexpress/License.txt "$pkgdir/usr/share/licenses/$pkgbase/MediaExpress"
cd $srcdir/Blackmagic_Desktop_Video_Linux_$pkgver/other/${_arch}
tar xf mediaexpress-*-${_arch}.tar.gz
cp -a mediaexpress-*-${_arch}/* $pkgdir
chmod 755 "$pkgdir/usr"
chmod 755 "$pkgdir/usr/share"
chmod 755 "$pkgdir/usr/share/doc"
}
|