Compare commits
No commits in common. "c0c76d8bc3349f64f7ff6239ca40ffa7bb5a7bfb" and "361c1059598519b2e747a8e60258bbd1a41417fe" have entirely different histories.
c0c76d8bc3
...
361c105959
4 changed files with 5 additions and 27 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,2 @@
|
||||||
output
|
output
|
||||||
*.whl
|
*.whl
|
||||||
wheel2deb.yml
|
|
||||||
|
|
27
build.sh
27
build.sh
|
@ -1,20 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DISTRIBUTION=${DISTRIBUTION:-noble}
|
DISTRIBUTION=${DISTRIBUTION:-jammy}
|
||||||
REVISION=${REVISION:-1}
|
|
||||||
|
|
||||||
rm -rf output
|
rm -rf output
|
||||||
rm -rf *.whl
|
|
||||||
rm wheel2deb.yml
|
|
||||||
|
|
||||||
# Download latest weels
|
# Download latest weels
|
||||||
python3 -m pip wheel PySide6-Essentials
|
python3 -m pip wheel PySide6-Essentials
|
||||||
python3 -m pip wheel PySide6-Addons
|
python3 -m pip wheel PySide6-Addons
|
||||||
|
|
||||||
# Create wheel for distribution
|
|
||||||
cp wheel2deb.src.yml wheel2deb.yml
|
|
||||||
sed -i -e "s/\\[DIST\\]/$DISTRIBUTION/g" wheel2deb.yml
|
|
||||||
|
|
||||||
wheel2deb convert -c ./wheel2deb.yml
|
wheel2deb convert -c ./wheel2deb.yml
|
||||||
|
|
||||||
echo -e "\n[Writing modifications]\n"
|
echo -e "\n[Writing modifications]\n"
|
||||||
|
@ -23,24 +16,10 @@ for i in output/*; do
|
||||||
cp copyright "$i/debian" # Add copyrights
|
cp copyright "$i/debian" # Add copyrights
|
||||||
perl -i -p0e 's/python3 \(<< 3.(\d)+\),//gm' "$i/debian/control" # Remove upper limit from control.
|
perl -i -p0e 's/python3 \(<< 3.(\d)+\),//gm' "$i/debian/control" # Remove upper limit from control.
|
||||||
sed -i "s/stable;/$DISTRIBUTION;/g" "$i/debian/changelog" # Change distribution.
|
sed -i "s/stable;/$DISTRIBUTION;/g" "$i/debian/changelog" # Change distribution.
|
||||||
sed -i "s/1~w2d0/$REVISION/g" "$i/debian/changelog" # Change suffix
|
|
||||||
mv "$i" "${i/1~w2d0/$REVISION}"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Moving the shaders library over to essentials since it's required by Qt5Compat
|
# Moving the shaders library over to essentials since it's required by Qt5Compat
|
||||||
mv output/python3-pyside6-addons_*_amd64/src/PySide6/Qt/lib/libQt6ShaderTools.so.6 output/python3-pyside6-essentials_*_amd64/src/PySide6/Qt/lib/
|
# mv output/python3-pyside6-addons_*_amd64/src/PySide6/Qt/lib/libQt6ShaderTools.so.6 output/python3-pyside6-essentials_*_amd64/src/PySide6/Qt/lib/
|
||||||
|
|
||||||
# Remove conflicting files between Essentials and Addons
|
# Remove conflicting files between Essentials and Addons
|
||||||
rm output/python3-pyside6-addons_*_amd64/src/PySide6/{__init__.py,_config.py,_git_pyside_version.py}
|
rm output/python3-pyside6-addons_*_amd64/src/PySide6/__init__.py
|
||||||
rm -r output/python3-pyside6-addons_*_amd64/src/PySide6/{QtAsyncio,support,scripts}
|
|
||||||
|
|
||||||
# Removing conflictual directories
|
|
||||||
rm -rf output/python3-pyside6-addons_*_amd64/src/shiboken6*
|
|
||||||
rm -rf output/python3-pyside6-essentials_*_amd64/src/shiboken6*
|
|
||||||
rm -rf output/python3-shiboken6_*_amd64/src/PySide6
|
|
||||||
|
|
||||||
function filter() { cat "$1" | awk "$2" > "$1"; }
|
|
||||||
|
|
||||||
filter output/python3-shiboken6_*_amd64/debian/install '/^src\/shiboken6/ { print $0; }'
|
|
||||||
filter output/python3-pyside6-essentials_*_amd64/debian/install '/^src\/PySide6/ { print $0; }'
|
|
||||||
filter output/python3-pyside6-addons_*_amd64/debian/install '/^src\/PySide6/ { print $0; }'
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
PPA_ARCHIVE="ppa:ad5001/logarithmplotter"
|
PPA_ARCHIVE="ppa:ad5001/logarithmplotter"
|
||||||
|
|
||||||
# Build and sign the packages.
|
# Build and sign the packages.
|
||||||
for i in output/*_amd64; do
|
for i in output/*; do
|
||||||
cd "$i"
|
cd "$i"
|
||||||
debuild -S -sa -k"mail@ad5001.eu"
|
debuild -S -sa -k"mail@ad5001.eu"
|
||||||
cd ../../
|
cd ../../
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.:
|
.:
|
||||||
maintainer_name: 'Ad5001'
|
maintainer_name: 'Ad5001'
|
||||||
maintainer_email: 'mail@ad5001.eu'
|
maintainer_email: 'mail@ad5001.eu'
|
||||||
distribution: [DIST]
|
distribution: jammy
|
Loading…
Reference in a new issue