Update amdgpu.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-09-02 23:09:00 +03:00 committed by GitHub
parent f8f97a8e38
commit 2149279290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,19 @@ wget http://repo.radeon.com/amdgpu/5.5.3/ubuntu/pool/main/a/amdgpu-dkms/amdgpu-d
# Return to AMDGPU MIRROR
cd ../
mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \;
mkdir -p ./output-tmp
find . -name \*.deb -exec cp -vf {} ./output-tmp \;
cd ./output-tmp
for i in ./*.deb
do
mkdir $i-tmp
dpkg-deb -R $i $i-tmp
sed -i "s#$(cat $i-tmp/DEBIAN/control | grep "Version: ")#$(cat $i-tmp/DEBIAN/control | grep "Version: ")-pika$(date +"%Y%m%d").lunar#" $i-tmp/DEBIAN/control
dpkg-deb -b $i-tmp $i-fixed.deb
done
cd ../
mv -v /output-tmp/*-fixed.deb ./output/
# Sign the packages
dpkg-sig --sign builder ./output/*.deb