summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 296af0c57b2acff81e0be7e79ee535196c745c35 (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
# Maintainer: Allen Wild <allenwild93@gmail.com>

pkgname=ts-analyzer-git
pkgver=0.1.r12.g5d7f034
pkgrel=3
pkgdesc='MPEG TS Stream analyzer, based on Qt5 and FFmpeg'
arch=('x86_64')
url='https://github.com/xuguangxiao/ts_analyzer'
license=('LGPL3')
depends=('qt5-base' 'qtav' 'ffmpeg4.4')
makedepends=('cmake' 'git')
# note: use packager fork with build patches
source=("git+https://github.com/aswild/ts_analyzer")
sha256sums=('SKIP')
provides=('ts-analyzer')
conflicts=('ts-analyzer')

pkgver() {
  # no git tags, just use revision count
  cd "$srcdir/ts_analyzer"
  echo "0.1.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
  mkdir -p build
  export PKG_CONFIG_PATH=/usr/lib/ffmpeg4.4/pkgconfig
  cmake -S "$srcdir/ts_analyzer" -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr

  cmake --build build
}

package() {
  cmake --build build -- install DESTDIR="$pkgdir"
}

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