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"
|
2021-12-29 01:25:06 +02:00
|
|
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v0.8.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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="1.2.1"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="R_2_5_0"
|
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"
|
2023-08-03 08:32:35 +03:00
|
|
|
SOURCE_ID="n6.0"
|
|
|
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="2.14.2"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="VER-2-13-0"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v1.0.13"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="5.2.1"
|
2020-11-23 00:51:45 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
gmp)
|
2022-09-27 23:14:51 +03:00
|
|
|
SOURCE_REPO_URL="https://github.com/arthenica/gmp"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v6.2.1"
|
2020-11-23 00:51:45 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
gnutls)
|
2022-09-27 23:14:51 +03:00
|
|
|
SOURCE_REPO_URL="https://github.com/arthenica/gnutls"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="3.7.9"
|
2020-11-23 00:51:45 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
harfbuzz)
|
2022-09-27 23:14:51 +03:00
|
|
|
SOURCE_REPO_URL="https://github.com/arthenica/harfbuzz"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="8.0.1"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="3.0.0"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v2.2.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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="1.83.1"
|
2020-11-23 00:51:45 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libaom)
|
2022-09-27 23:14:51 +03:00
|
|
|
SOURCE_REPO_URL="https://github.com/arthenica/libaom"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v3.6.1"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="0.17.1"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v1.17"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v3.0.4"
|
2020-10-28 23:03:24 +02:00
|
|
|
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"
|
2021-09-17 15:33:40 +03:00
|
|
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v1.6.40"
|
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"
|
2021-09-17 15:33:40 +03:00
|
|
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="1.2.0"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v1.1.1"
|
2020-11-23 00:51:45 +02:00
|
|
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v1.13.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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v1.3.1"
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v2.11.4"
|
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"
|
|
|
|
;;
|
2021-12-25 20:07:45 +02:00
|
|
|
openssl)
|
2022-09-27 23:14:51 +03:00
|
|
|
SOURCE_REPO_URL="https://github.com/arthenica/openssl"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="openssl-3.1.1"
|
2021-12-25 20:07:45 +02:00
|
|
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v1.4"
|
2020-11-23 00:51:45 +02:00
|
|
|
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"
|
2021-09-17 15:33:40 +03:00
|
|
|
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"
|
|
|
|
;;
|
2021-12-25 20:07:45 +02:00
|
|
|
srt)
|
2022-09-27 23:14:51 +03:00
|
|
|
SOURCE_REPO_URL="https://github.com/arthenica/srt"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="v1.5.2"
|
2021-12-25 20:07:45 +02:00
|
|
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="5.3.2"
|
2020-11-23 00:51:45 +02:00
|
|
|
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"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="eaa68fad9e5d201d42fde51665f2d137ae96baf0"
|
2022-09-12 01:10:30 +03:00
|
|
|
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"
|
|
|
|
;;
|
2021-12-25 20:07:45 +02:00
|
|
|
zimg)
|
2022-09-27 23:14:51 +03:00
|
|
|
SOURCE_REPO_URL="https://github.com/arthenica/zimg"
|
2023-07-17 01:59:12 +03:00
|
|
|
SOURCE_ID="release-3.0.5"
|
2021-12-25 20:07:45 +02:00
|
|
|
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
|
|
|
|
}
|