-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathubbuild.sh
32 lines (25 loc) · 1.33 KB
/
ubbuild.sh
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
#!/bin/bash
sudo apt update
sudo apt install -y autoconf automake build-essential byacc devscripts dos2unix fakeroot flex xa65 p7zip-full subversion
sudo apt install -y libasound-dev libflac-dev libgif-dev libmp3lame-dev libmpg123-dev libpcap-dev libvorbis-dev libcurl4-openssl-dev
sudo apt install -y libglew-dev libgtk-3-dev libpulse-dev subversion libavfilter-dev libavformat-dev libavcodec-dev libevdev-dev
sudo update-alternatives --set fakeroot /usr/bin/fakeroot-tcp
svn checkout svn://svn.code.sf.net/p/vice-emu/code/trunk/vice vice
export USE_SVN_REVISION=1
dos2unix *.sh
chmod a+x *.sh
cd vice
ARGS="--disable-arch --disable-pdf-docs --with-png --with-gif --with-vorbis --with-flac --enable-ethernet --enable-midi --enable-cpuhistory --enable-platformdox --enable-html-docs --enable-rs232 --enable-new8580filter --with-resid --enable-x64 --enable-x64-image --enable-realdevice --enable-ffmpeg"
ARGS="--enable-gtk3ui $ARGS"
sudo apt search ffmpeg
./autogen.sh
./configure $ARGS
patch -p0 <../patches.zibri
make -j8 DESTDIR=../data/build install-strip
rev=$(svnversion)
cp -R data/data/build/usr/local/share data/build/usr/local/
cd data/build/
7z a ../../gtk3vice_${rev}.7z *
cp ../../../vice_update_ubuntu.sh ../../../vice_update.sh
cp ../../../installer.sh ../../../gtk3vice_${rev}.sh
cat ../../gtk3vice_${rev}.7z >>../../../gtk3vice_${rev}.sh