Project

General

Profile

RE: Compiling Errors » Build TVH.sh

David G, 2020-01-27 17:34

 
1
#!/bin/bash
2

    
3
BASE=$(dirname "$0")
4
(
5
  if [ -d "$BASE/tvheadend" ]; then
6
    cd "$BASE/tvheadend" 
7
    git pull
8
  else
9
    cd "$BASE" 
10
    git clone https://github.com/tvheadend/tvheadend.git tvheadend # --depth=5 (need version tag workaround else 0.0.0 version)
11
#     git clone -b release/4.2 https://github.com/tvheadend/tvheadend.git tvheadend
12
    cd "$BASE/tvheadend" 
13
  fi
14
  time AUTOBUILD_CONFIGURE_EXTRA="--enable-omx --disable-ffmpeg_static --disable-libvpx --disable-libvpx_static --disable-libopus --disable-libopus_static --disable-libx264 --disable-libx264_static --disable-libx265 --disable-libx265_static " ./Autobuild.sh -j$(nproc) # edit only betwin "quotation marks" 
15
) | tee "$BASE/build.log" 
(1-1/2)