publish intel to pigeon
All checks were successful
Process Intel Official Repository (Pigeon) / build (push) Successful in 47s

This commit is contained in:
Ward from fusion-voyager-3 2024-07-31 18:52:16 +03:00
parent 093b579aa3
commit deea706700
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
6
7

View File

@ -31,13 +31,16 @@ apt update
apt download -y intel-gsc intel-gsc-dev libmetee-dev libmetee intel-gpu-mesa3d intel-gpu-mesa3d-dev
# Patch Downloaded Packages control files
PACKAGE_VER_APPEND=$(apt show intel-level-zero-gpu 2>&1 | grep -v "does not have a stable" | grep Version: | head -n1 | cut -f2 -d":" | tr -d ' ')
for i in ./*.deb
do
mkdir $i-tmp
dpkg-deb -R $i $i-tmp
cat $i-tmp/DEBIAN/control | grep Version: | head -n1 | cut -d":" -f2- | tr -d ' ' > $i-version
sed -i "s#$(cat $i-version)#$(cat $i-version)+pigeon$(date +"%Y%m%d")#g" $i-tmp/DEBIAN/control
sed -i "s#$(cat $i-version)#$(cat $i-version)+pigeon2$(date +"%Y%m%d")#g" $i-tmp/DEBIAN/control
sed -e s"#(=#(>=#"g -i $i-tmp/DEBIAN/control
sed "s#-$(echo $PACKAGE_VER_APPEND | cut -d '-' -f2-)##g" -i $i-tmp/DEBIAN/control
dpkg-deb -b $i-tmp $i-"$(date +"%Y%m%d")"-pigeon-fixed.deb
done