Update rules

This commit is contained in:
ferrreo 2023-06-11 17:42:30 +01:00 committed by GitHub
parent cb1f1574b1
commit 57e162cf17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
debian/rules vendored
View File

@ -9,9 +9,7 @@ export DH_VERBOSE = 1
## Source directory, called upon by $(srcdir) ## Source directory, called upon by $(srcdir)
srcdir = $(shell debian/scripts/get_pwd.sh) srcdir = $(shell debian/scripts/get_pwd.sh)
## The Root of package number one, called upon by $(pkgdir1) ## The Root of package number one, called upon by $(pkgdir1)
pkgdir1 = $(srcdir)/debian/pkgdir1 pkgdir = $(srcdir)/debian/nwg-display
## The Root of package number two, you can add as many of these as you like
pkgdir2 = $(srcdir)/debian/pkgdir2
## If building a singular package you can remove the number, and as you guessed you call upon it with $(pkgdir) ## If building a singular package you can remove the number, and as you guessed you call upon it with $(pkgdir)
# pkgdir = $(srcdir)/debian/pkgdir # pkgdir = $(srcdir)/debian/pkgdir
@ -72,9 +70,13 @@ pkgdir2 = $(srcdir)/debian/pkgdir2
#override_dh_auto_configure: #override_dh_auto_configure:
# mkdir -p $(pkgdir1)/usr/bin # mkdir -p $(pkgdir1)/usr/bin
# cp $(srcdir)/pikman $(pkgdir1)/usr/bin/ # cp $(srcdir)/pikman $(pkgdir1)/usr/bin/
override_dh_auto_install:
python setup.py install --root=$(pkgdir) --optimize=1
install -d $(pkgdir)/usr/share/pixmaps nwg-displays.svg
install -d $(pkgdir)/usr/share/applications nwg-displays.desktop
## === End end of region === ## === End end of region ===
## This here will start the build: ## This here will start the build:
%: %:
dh $@ dh $@ --with python3