summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 145c5e277d3b6205c7724fab6b3a788e5c2d3eb1 (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: Cristian Burneci <cburneci at gmail dot com>

pkgname=tv-lite
pkgver=0.8.1
pkgrel=1
pkgdesc="IPTV player with Sopcast and Acestream handling capabilities.  It wants to be a replacement for the older TV-Maxe"
arch=('i686' 'x86_64')
url="https://www.tv-lite.com"
license=('GPL2')
groups=()
depends=('libvlc' 'vlc-plugins-all' 'wxwidgets-gtk3' 'sqlite' 'curl' 'util-linux-libs')
makedepends=('rapidjson' 'cmake')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(https://gitlab.com/cburneci/tv-lite/-/archive/$pkgver/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=('86fdd6717262ed8e731fa62231607d5f') #generate with 'makepkg -g'

build() {
  cd "$srcdir/$pkgname-$pkgver/src"
  mkdir -p build
  cd build
  if [ -f '/usr/bin/wx-config-gtk3' ]
  then 
    echo "Old wx-config found"
    wxcfg="wx-config-gtk3"
  else
    wxcfg="wx-config"
  fi    
  cmake -DWX_CONFIG=$wxcfg -DCMAKE_POLICY_VERSION_MINIMUM=3.12 ..
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver/src/build"

  make DESTDIR="$pkgdir/" install
}