mangohud/main32.sh

38 lines
1.4 KiB
Bash
Raw Normal View History

2023-03-09 19:29:53 +01:00
# Add dependent repositories
sudo dpkg --add-architecture i386
wget -q -O - https://ppa.pika-os.com/key.gpg | sudo apt-key add -
2023-05-02 11:11:47 +02:00
touch /etc/apt/sources.list.d/pika.list
echo 'deb https://ppa.pika-os.com/ lunar main' > /etc/apt/sources.list.d/pika.list
2023-05-06 22:39:58 +02:00
add-apt-repository ppa:pikaos/pika
add-apt-repository ppa:kubuntu-ppa/backports
2023-05-02 11:11:47 +02:00
apt update
2023-03-09 19:29:53 +01:00
# Clone Upstream
2023-06-18 16:46:29 +02:00
git clone https://github.com/flightlessmango/MangoHud -b v0.6.9-1
mv ./MangoHud ./mangohud
2023-03-09 20:11:20 +01:00
cp -rvf ./debian ./mangohud/
2023-03-09 19:29:53 +01:00
cd ./mangohud
2023-06-18 16:46:29 +02:00
LOGNAME=root dh_make --createorig -y -l -p mangohud_0.6.9.1
2023-03-09 19:29:53 +01:00
# Get build deps
2023-05-06 22:32:34 +02:00
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
apt-get build-dep -y ./
debuild -S -uc -us
cd ../
apt-get install -y pbuilder debootstrap devscripts debhelper sbuild debhelper ubuntu-dev-tools piuparts
2023-03-09 19:29:53 +01:00
2023-05-06 22:32:34 +02:00
apt install -y debian-archive-keyring
cp -rvf ./pbuilderrc /etc/pbuilderrc
mkdir -p /var/cache/pbuilder/hook.d/
cp -rvf ./hooks/* /var/cache/pbuilder/hook.d/
rm -rf /var/cache/apt/
mkdir -p /pbuilder-results
DIST=lunar ARCH=i386 pbuilder create --distribution lunar --architecture i386 --debootstrapopts --include=ca-certificates
echo 'starting build'
DIST=lunar ARCH=i386 pbuilder build ./*.dsc --distribution lunar --architecture i386 --debootstrapopts --include=ca-certificates
2023-03-09 19:29:53 +01:00
# Move the debs to output
mkdir -p ./output
2023-05-06 22:32:34 +02:00
mv /var/cache/pbuilder/result/*.deb ./output/ || sudo mv ../*.deb ./output/