blob: 709343d9b583c6d290676b8194c26a02f466e72e (
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
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=ndi-sdk
pkgver=6.0.1.r139791.20240506
pkgrel=1
_majver="${pkgver%%.*}"
pkgdesc='NewTek NDI SDK'
arch=('x86_64')
url='https://ndi.tv/sdk/'
license=('LicenseRef-custom')
depends=('avahi')
provides=('libndi')
conflicts=('libndi')
options=('!strip' '!debug')
_srcfile="Install_NDI_SDK_v${pkgver}_Linux.tar.gz"
source=("$_srcfile"::"https://downloads.ndi.tv/SDK/NDI_SDK_Linux/Install_NDI_SDK_v${_majver}_Linux.tar.gz")
noextract=("$_srcfile")
sha256sums=('e56c0c6286a733debc8b45103121a2385d5f7306fff570231669b3b2d76b9558')
prepare() {
mkdir -p "${pkgname}-${pkgver}"
bsdtar -x -f "$_srcfile" -C "${pkgname}-${pkgver}"
local _target_line
cd "${pkgname}-${pkgver}"
_target_line="$(sed -n '/^__NDI_ARCHIVE_BEGIN__$/=' "Install_NDI_SDK_v${_majver}_Linux.sh")"
_target_line="$((_target_line + 1))"
tail -n +"$_target_line" "Install_NDI_SDK_v${_majver}_Linux.sh" | tar -zxvf -
}
package() {
local _sdkdir="${srcdir}/${pkgname}-${pkgver}/NDI SDK for Linux"
# binary executables
install -D -m755 "${_sdkdir}/bin/${CARCH}-linux-gnu/"* -t "${pkgdir}/usr/bin"
# headers
cp -dr --no-preserve='ownership' "${_sdkdir}/include" "${pkgdir}/usr"
# library
install -D -m755 "${_sdkdir}/lib/${CARCH}-linux-gnu/libndi.so.${_majver}".*.* -t "${pkgdir}/usr/lib"
cd "${pkgdir}/usr/lib"
ln -s "libndi.so.${_majver}".*.* "libndi.so.${_majver}"
ln -s "libndi.so.${_majver}" libndi.so
# docs
install -D -m644 "${_sdkdir}/documentation/"*.pdf -t "${pkgdir}/usr/share/doc/${pkgname}"
# license
install -D -m644 "${_sdkdir}/NDI SDK License Agreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 "${_sdkdir}/licenses/libndi_licenses.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|