ffmpeg-kit/scripts/source.sh

283 lines
6.5 KiB
Bash
Raw Normal View History

2020-08-05 03:53:02 +03:00
#!/bin/bash
#
# 1. library name
# 2. source type 1/2/3
#
get_library_source() {
case $1 in
2020-11-23 00:51:45 +02:00
config)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/gnu-config"
2021-08-14 22:19:51 +03:00
SOURCE_ID="v20210814"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
chromaprint)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/chromaprint"
SOURCE_ID="v1.5.1"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
2020-08-05 03:53:02 +03:00
cpu-features)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/cpu_features"
2022-09-04 20:15:16 +03:00
SOURCE_ID="v0.7.0"
2020-10-28 23:03:24 +02:00
SOURCE_TYPE="TAG"
;;
2021-01-30 01:35:05 +02:00
dav1d)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/dav1d"
2022-09-04 20:15:16 +03:00
SOURCE_ID="1.0.0"
2021-01-30 01:35:05 +02:00
SOURCE_TYPE="TAG"
;;
2020-10-28 23:03:24 +02:00
expat)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libexpat"
2022-09-04 20:15:16 +03:00
SOURCE_ID="R_2_4_8"
2020-08-05 03:53:02 +03:00
SOURCE_TYPE="TAG"
;;
ffmpeg)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/FFmpeg"
2022-09-28 06:58:45 +03:00
SOURCE_ID="n5.1.2"
2022-09-06 01:21:00 +03:00
SOURCE_TYPE="TAG"
2020-08-05 03:53:02 +03:00
;;
2020-10-28 23:03:24 +02:00
fontconfig)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/fontconfig"
2022-09-04 20:15:16 +03:00
SOURCE_ID="2.14.0"
2020-10-28 23:03:24 +02:00
SOURCE_TYPE="TAG"
;;
freetype)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/freetype2"
2022-09-04 20:15:16 +03:00
SOURCE_ID="VER-2-12-1"
2020-10-28 23:03:24 +02:00
SOURCE_TYPE="TAG"
;;
fribidi)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/fribidi"
2022-09-04 20:15:16 +03:00
SOURCE_ID="v1.0.12"
2020-10-28 23:03:24 +02:00
SOURCE_TYPE="TAG"
;;
2020-11-23 00:51:45 +02:00
giflib)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/giflib"
2020-11-23 00:51:45 +02:00
SOURCE_ID="5.1.4"
SOURCE_TYPE="TAG"
;;
gmp)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/gmp"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v6.2.0"
SOURCE_TYPE="TAG"
;;
gnutls)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/gnutls"
2020-11-23 00:51:45 +02:00
SOURCE_ID="3.6.15.1"
SOURCE_TYPE="TAG"
;;
harfbuzz)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/harfbuzz"
2022-09-28 06:58:45 +03:00
SOURCE_ID="5.2.0"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
2020-10-28 23:03:24 +02:00
jpeg)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libjpeg-turbo"
2022-09-04 20:15:16 +03:00
SOURCE_ID="2.1.4"
2020-10-28 23:03:24 +02:00
SOURCE_TYPE="TAG"
;;
2020-11-23 00:51:45 +02:00
kvazaar)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/kvazaar"
SOURCE_ID="v2.1.0"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
lame)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/lame"
2020-11-23 00:51:45 +02:00
SOURCE_ID="RELEASE__3_100"
SOURCE_TYPE="TAG"
;;
leptonica)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/leptonica"
2020-11-23 00:51:45 +02:00
SOURCE_ID="1.78.0"
SOURCE_TYPE="TAG"
;;
libaom)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libaom"
2022-09-28 06:58:45 +03:00
SOURCE_ID="v3.5.0"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
2020-10-28 23:03:24 +02:00
libass)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libass"
SOURCE_ID="0.15.2"
2020-10-28 23:03:24 +02:00
SOURCE_TYPE="TAG"
;;
libiconv)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libiconv"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v1.16.2"
2020-10-28 23:03:24 +02:00
SOURCE_TYPE="TAG"
;;
libilbc)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libilbc"
2020-10-28 23:03:24 +02:00
SOURCE_ID="v2.0.2"
SOURCE_TYPE="TAG"
;;
2020-11-23 00:51:45 +02:00
libogg)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/ogg"
SOURCE_ID="v1.3.5"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
libpng)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libpng"
2022-09-28 06:58:45 +03:00
SOURCE_ID="v1.6.38"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
libsamplerate)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libsamplerate"
SOURCE_ID="0.2.2"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
libsndfile)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libsndfile"
2021-05-15 01:55:25 +03:00
SOURCE_ID="1.0.31"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
libtheora)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/theora"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v1.1.1"
SOURCE_TYPE="TAG"
;;
libuuid)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libuuid"
2020-11-23 00:51:45 +02:00
SOURCE_ID="libuuid-1.0.3"
SOURCE_TYPE="TAG"
;;
libvidstab)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/vid.stab"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v1.1.0"
SOURCE_TYPE="TAG"
;;
libvorbis)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/vorbis"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v1.3.7"
SOURCE_TYPE="TAG"
;;
libvpx)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libvpx"
2022-09-04 20:15:16 +03:00
SOURCE_ID="v1.12.0"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
libwebp)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libwebp"
2022-09-04 20:15:16 +03:00
SOURCE_ID="v1.2.4"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
libxml2)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libxml2"
2022-09-12 01:07:49 +03:00
SOURCE_ID="v2.10.1"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
nettle)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/nettle"
2022-09-04 20:15:16 +03:00
SOURCE_ID="nettle_3.8.1_release_20220727"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
opencore-amr)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/opencore-amr"
2022-09-04 20:15:16 +03:00
SOURCE_ID="v0.1.6"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
2020-10-28 23:03:24 +02:00
openh264)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/openh264"
2022-09-28 06:58:45 +03:00
SOURCE_ID="v2.3.1"
2020-10-28 23:03:24 +02:00
SOURCE_TYPE="TAG"
;;
openssl)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/openssl"
2022-09-04 20:15:16 +03:00
SOURCE_ID="openssl-3.0.5"
SOURCE_TYPE="TAG"
;;
2020-11-23 00:51:45 +02:00
opus)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/opus"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v1.3.1"
SOURCE_TYPE="TAG"
;;
rubberband)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/rubberband"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v1.8.2"
SOURCE_TYPE="TAG"
;;
sdl)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/SDL"
2020-11-23 00:51:45 +02:00
SOURCE_ID="release-2.0.8"
SOURCE_TYPE="TAG"
;;
shine)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/shine"
2020-11-23 00:51:45 +02:00
SOURCE_ID="3.1.1"
SOURCE_TYPE="TAG"
;;
snappy)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/snappy"
SOURCE_ID="1.1.9"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
soxr)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/soxr"
2020-11-23 00:51:45 +02:00
SOURCE_ID="0.1.3"
SOURCE_TYPE="TAG"
;;
speex)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/speex"
2022-09-04 20:15:16 +03:00
SOURCE_ID="Speex-1.2.1"
2020-11-23 00:51:45 +02:00
SOURCE_TYPE="TAG"
;;
srt)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/srt"
2022-09-28 06:58:45 +03:00
SOURCE_ID="v1.5.1"
SOURCE_TYPE="TAG"
;;
2020-11-23 00:51:45 +02:00
tesseract)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/tesseract"
2020-11-23 00:51:45 +02:00
SOURCE_ID="3.05.02"
SOURCE_TYPE="TAG"
;;
tiff)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/libtiff"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v4.1.0"
SOURCE_TYPE="TAG"
;;
twolame)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/twolame"
2020-11-23 00:51:45 +02:00
SOURCE_ID="0.4.0"
SOURCE_TYPE="TAG"
;;
vo-amrwbenc)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/vo-amrwbenc"
2020-11-23 00:51:45 +02:00
SOURCE_ID="v0.1.3"
SOURCE_TYPE="TAG"
;;
x264)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/x264"
SOURCE_ID="7628a5696f79a1f0421dda99ab37b34481c69821"
SOURCE_TYPE="COMMIT"
2020-11-23 00:51:45 +02:00
;;
x265)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/x265"
2020-11-23 00:51:45 +02:00
SOURCE_ID="3.4"
SOURCE_TYPE="TAG"
;;
xvidcore)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/xvidcore"
2020-11-23 00:51:45 +02:00
SOURCE_ID="release-1_3_7"
SOURCE_TYPE="TAG"
;;
zimg)
2022-09-27 23:14:51 +03:00
SOURCE_REPO_URL="https://github.com/arthenica/zimg"
2022-09-04 20:15:16 +03:00
SOURCE_ID="release-3.0.4"
SOURCE_TYPE="TAG"
;;
2020-08-05 03:53:02 +03:00
esac
case $2 in
1)
echo "${SOURCE_REPO_URL}"
;;
2)
echo "${SOURCE_ID}"
;;
3)
echo "${SOURCE_TYPE}"
;;
esac
}