Skip to content

Commit

Permalink
github: fix build-deb-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wheeler committed Aug 15, 2024
1 parent 8fce85a commit 3dc078e
Showing 1 changed file with 26 additions and 20 deletions.
46 changes: 26 additions & 20 deletions .github/workflows/build-deb-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,32 @@ jobs:
- name: Generate Debian Packaging Files
run: |
if [ ! -d "debian" ]; then
dh_make --createorig -y --single --native --packagename xnec2c_$VERSION
echo -e '#!/usr/bin/make -f\n%:\n\tdh $@' > debian/rules
chmod +x debian/rules
echo "9" > debian/compat
echo "Source: xnec2c" > debian/control
echo "Section: utils" >> debian/control
echo "Priority: optional" >> debian/control
echo "Maintainer: Your Name <[email protected]>" >> debian/control
echo "Build-Depends: debhelper (>= 9), autotools-dev, automake, autoconf, libtool, libgtk-3-dev, libglib2.0-dev, gettext, desktop-file-utils" >> debian/control
echo "Standards-Version: 3.9.6" >> debian/control
echo "Homepage: https://www.example.com" >> debian/control
echo "" >> debian/control
echo "Package: xnec2c" >> debian/control
echo "Architecture: any" >> debian/control
echo "Depends: \${shlibs:Depends}, \${misc:Depends}" >> debian/control
echo "Description: A multi-threaded EM tool to model antenna near- and far-field radiation patterns." >> debian/control
echo " Xnec2c is a high-performance multi-threaded electromagnetic simulation" >> debian/control
echo " package to model antenna near- and far-field radiation patterns for" >> debian/control
echo " Linux and UNIX operating systems." >> debian/control
rm -rf ./debian
dh_make --createorig -y --single --native --packagename xnec2c_$VERSION
echo -e '#!/usr/bin/make -f\n%:\n\tdh $@' > debian/rules
chmod +x debian/rules
echo "9" > debian/compat
echo "Source: xnec2c" > debian/control
echo "Section: utils" >> debian/control
echo "Priority: optional" >> debian/control
echo "Maintainer: Your Name <[email protected]>" >> debian/control
echo "Build-Depends: debhelper (>= 9), autotools-dev, automake, autoconf, libtool, libgtk-3-dev, libglib2.0-dev, gettext, desktop-file-utils" >> debian/control
echo "Standards-Version: 3.9.6" >> debian/control
echo "Homepage: https://www.example.com" >> debian/control
echo "" >> debian/control
echo "Package: xnec2c" >> debian/control
echo "Architecture: any" >> debian/control
echo "Depends: \${shlibs:Depends}, \${misc:Depends}" >> debian/control
echo "Description: A multi-threaded EM tool to model antenna near- and far-field radiation patterns." >> debian/control
echo " Xnec2c is a high-performance multi-threaded electromagnetic simulation" >> debian/control
echo " package to model antenna near- and far-field radiation patterns for" >> debian/control
echo " Linux and UNIX operating systems." >> debian/control
- name: Verify Debian Directory
run: |
if [ ! -f "debian/rules" ]; then
echo "Error: debian/rules file not found!"
exit 1
fi
- name: Build the DEB package using debuild
Expand Down

0 comments on commit 3dc078e

Please sign in to comment.