-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_last_vlc_arch.old
73 lines (66 loc) · 2.19 KB
/
get_last_vlc_arch.old
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
## Semi-automatic script to download build and install vlc-git on arch linux
## Req.: grep hash head tail wc git wget make gcc... Use: ./get_last_vlc_arch
## Author Andrew S. License MIT and/or GPL
## https://github.com/quarkscript/Build_from_source
## https://gitlab.com/quarkscript/arch_linux_scripts/tree/master/pkgs_bulds_scripts
## get required Simple_func_scripts from github
wget https://raw.githubusercontent.com/quarkscript/Simple_func_scripts/master/sfslib
## get required Simple_func_scripts from gitlab
# wget https://gitlab.com/quarkscript/arch_linux_scripts/raw/master/pkgs_bulds_scripts/sfslib
chmod +x sfslib
./sfslib cxx_flags
## For make a local hardware independent build uncomment next line
#echo "">cxxflags.txt
mkdir aurdep
cd aurdep
mkdir depdep
cd depdep
git clone https://aur.archlinux.org/libdvdcss-git.git
cp ../../cxxflags.txt cxxflags.txt
../../sfslib mpbsmpks
echo !!! sudo password is required
sudo pacman -U *pkg.tar.xz
cd ../
mkdir dep
cd dep
git clone https://aur.archlinux.org/libdvdread-git.git
cp ../../cxxflags.txt cxxflags.txt
../../sfslib mpbsmpks
echo !!! sudo password is required
sudo pacman -U *pkg.tar.xz
cd ../../
mkdir vlc
cd vlc
cp ../sfslib sfslib
cp ../cxxflags.txt cxxflags.txt
git clone https://aur.archlinux.org/vlc-git.git
## mod deps if ffmpeg-full installed
if $(pacman -Qq | grep -xq ffmpeg-full); then
./sfslib mcolif 'vlc-git/PKGBUILD' 'ffmpeg' 'ffmpeg' 'ffmpeg-full'
fi
## mod deps if chromaprint installed
if $(pacman -Qq | grep -xq chromaprint-fftw); then
./sfslib mcolif 'vlc-git/PKGBUILD' 'chromaprint' 'chromaprint' 'chromaprint-fftw'
fi
## some mods
./sfslib rmls 'vlc-git/PKGBUILD' 'enable-realrtsp'
./sfslib rmls 'vlc-git/PKGBUILD' 'enable-aa'
./sfslib rmls 'vlc-git/PKGBUILD' 'enable-chromaprint-fftw'
## extract deps
./sfslib edfpb "vlc-git/PKGBUILD"
cat deps2 >>deps1
./sfslib rmdtpi "deps1"
req_pacs_list=$(cat deps1.req)
## cheks for absent deps
if [ "$req_pacs_list" != "" ]; then
echo "
building vlc required absent packages:
$req_pacs_list
!!! sudo password is required to install it"
sudo pacman -S --needed $req_pacs_list
fi
## make vlc
./sfslib mpbsmpks
echo !!! sudo password is required to install vlc
sudo pacman -U *pkg.tar.xz