ppp-sync/external-oibaf-graphics.sh
Ward Nakchbandi (Cosmic Fusion) 24a2b31027
2023-08-24 18:00:53 +03:00

53 lines
2.0 KiB
Bash

#! /bin/bash
set -e
# Oibaf Graphics MIRROR
mkdir -p ./output/external-oibaf-graphics
cd ./output/external-oibaf-graphics
# external-oibaf-graphics directx-headers dir
mkdir -p ./directx-headers
cd ./directx-headers
wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/d/directx-headers/
# Return to Oibaf Graphics MIRROR
cd ../
# external-oibaf-graphics drm dir
mkdir -p ./drm
cd ./drm
wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/libd/libdrm/
# Return to Oibaf Graphics MIRROR
cd ../
# external-oibaf-graphics meson dir
mkdir -p ./meson
cd ./meson
wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/m/meson/
# Return to Oibaf Graphics MIRROR
cd ../
# external-oibaf-graphics spirv dir
mkdir -p ./spirv
cd ./spirv
wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/s/
# Return to Oibaf Graphics MIRROR
cd ../
mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages
dpkg-sig --sign builder ./output/*.deb
# Pull down existing ppa repo db files etc
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
# Check if the external component exists
if cat ./output/repo/conf/distributions | grep Components: | grep external
then
true
else
sed -i "s#Components:#Components: external#" ./output/repo/conf/distributions
fi
# Add the new package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/