Skip to content

Commit

Permalink
Update debian packaging with meson build
Browse files Browse the repository at this point in the history
- Use meson buildsystem for debian packaging
- Add meson build dependencies
  • Loading branch information
hsbasu committed Oct 18, 2024
1 parent d748d67 commit 7b118e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
9 changes: 5 additions & 4 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ Section: utils
Priority: optional
Maintainer: Himadri Sekhar Basu <[email protected]>
Build-Depends: debhelper-compat (= 13),
desktop-file-utils,
dh-python,
gettext,
libglib2.0-bin,
python3-all,
python3-setuptools,
python3-sphinx
libgtk-4-bin,
meson,
pybuild-plugin-pyproject,
python3,
Standards-Version: 4.6.0
Homepage: https://hsbasu.github.io/theme-manager
#Vcs-Browser: https://salsa.debian.org/debian/theme-manager
Expand All @@ -20,7 +22,6 @@ Package: theme-manager
Architecture: all
Depends: gir1.2-gtk-3.0,
gir1.2-appindicator3-0.1,
python3-tldextract,
redshift,
${python3:Depends},
${misc:Depends}
Expand Down
13 changes: 4 additions & 9 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
# export DH_VERBOSE = 1

export PYBUILD_NAME=theme-manager
export PYBUILD_INSTALL_ARGS_python3=--install-scripts=usr/bin
export PYBUILD_SYSTEM=pyproject

%:
dh ${@} --with=python3 --buildsystem=pybuild
dh ${@} --with=python3 --buildsystem=meson


# If you need to rebuild the Sphinx documentation
# Add sphinxdoc to the dh --with line
Expand All @@ -23,11 +24,5 @@ export PYBUILD_INSTALL_ARGS_python3=--install-scripts=usr/bin
# docs/ usr/share/man/man1 # Manpage generator

override_dh_install:
dh_install -O--buildsystem=pybuild
rm -rf debian/theme-manager/usr/lib/python*/dist-packages/ThemeManager/__pycache__
install -D -m 0644 debian/theme-manager.1 debian/theme-manager/usr/share/man/man1/theme-manager.1
dh_install -O--buildsystem=meson
install -D -m 0644 data/theme-manager-autostart.desktop.in debian/theme-manager/etc/xdg/autostart/theme-manager-autostart.desktop
rm -f debian/theme-manager/usr/share/glib-2.0/schemas/gschemas.compiled

override_dh_auto_install:
dh_auto_install --destdir=$(CURDIR)/$(DEB_SOURCE) -O--buildsystem=pybuild

0 comments on commit 7b118e9

Please sign in to comment.