File: get_libkate.sh

package info (click to toggle)
ffmpeg2theora 0.30-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 596 kB
  • ctags: 526
  • sloc: ansic: 5,810; python: 1,021; sh: 83; makefile: 21; xml: 1
file content (31 lines) | stat: -rwxr-xr-x 649 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

version=0.4.1
baseurl="http://libkate.googlecode.com/files/libkate-$version.tar.gz"

which wget >& /dev/null
if [ $? -eq 0 ]
then
  test -e "libkate-$version.tar.gz" || wget "$baseurl"
else
  which curl >& /dev/null
  if [ $? -eq 0 ]
  then
    test -e "libkate-$version.tar.gz" || curl "$baseurl" -o "libkate-$version.tar.gz"
  else
    echo "Neither wget nor curl were found, cannot download libkate"
    exit 1
  fi
fi

if [ $? -ne 0 ]
then
  echo "Failed to download libkate"
  exit 1
fi

tar xfz "libkate-$version.tar.gz"
test -L libkate && rm libkate
ln -fs "libkate-$version" libkate
cd libkate && ./configure && make && cd lib