summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a8f7f67e0dda5997cdf7028f6f14c8182c62071 (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
# Maintainer: Nikos Toutountzoglou <nikos dot toutou at protonmail dot com>

pkgname=dektec-avfifo-examples
pkgver=2023.2
pkgrel=9
_sdkver=2024.11.0
pkgdesc='AvFifoExamples - DekTec AvFifo (SMPTE 2110) Code Examples for Linux'
arch=('x86_64')
url="https://www.dektec.com/downloads/SDK/#linux"
license=('LicenseRef-custom')
depends=(
  'gcc-libs' 
  'glibc' 
  'dektec-drivers-dkms' 
  'sdl2'
)
source=("https://www.dektec.com/products/SDK/DTAPI/Downloads/LinuxSDK_v${_sdkver}.tar.gz"
        "https://www.dektec.com/products/SDK/AvFifoExamples/downloads/avfifo_examples.tar.gz")
sha256sums=('4f33e0ea6ded407f026c1e6cd4a3f17601adef23181f268fc53d67d2098e1c87'
            '378109bd8548ff6d210f78efd24057022c5fb1e96e74a570b62fab7941c1c8bb')

prepare() {
  # Include DTAPI (SDK) for AvFifo
  cp LinuxSDK/DTAPI/Include/DTAPI.h avfifo_examples/Common/DTAPI/include
  cp LinuxSDK/DTAPI/Include/DTAPI_AvFifo.h avfifo_examples/Common/DTAPI/include
  cp -r LinuxSDK/DTAPI/Lib/GCC7.5.0/* avfifo_examples/Common/DTAPI/lib/GCC8
}

build() {
  # Compile AvFifoRx
  cd "${srcdir}/avfifo_examples/AvFifo_VideoRx"
  make
  # Compile AvFifoTx
  cd "${srcdir}/avfifo_examples/AvFifo_VideoTx"
  make
}

package() {
  install -Dm755 "${srcdir}/avfifo_examples/AvFifo_VideoRx/AvFifo_VideoRx" "${pkgdir}/usr/bin/AvFifo_VideoRx"
  install -Dm755 "${srcdir}/avfifo_examples/AvFifo_VideoTx/AvFifo_VideoTx" "${pkgdir}/usr/bin/AvFifo_VideoTx"
  install -Dm644 "${srcdir}/LinuxSDK/License" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: