mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-21 05:00:19 +00:00
Modify build rules for plugin metainfo and changelogs
Updated configuration to enable plugin metainfo installation and added logic to fetch changelogs from GitHub if in a git checkout.
This commit is contained in:
committed by
GitHub
parent
e1a639ec7a
commit
6913977100
23
debian/rules
vendored
23
debian/rules
vendored
@@ -1,18 +1,23 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
export DH_VERBOSE=1
|
export DH_VERBOSE=1
|
||||||
|
git_checkout = $(shell if [ -d .git ]; then echo true ; else echo false ; fi)
|
||||||
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --buildsystem=meson
|
dh $@ --buildsystem=meson
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure: patch
|
||||||
dh_auto_configure -- \
|
dh_auto_configure -- -Dinstall-plugin-metainfo=true -Dwith-lua=lua53
|
||||||
-Dinstall-plugin-metainfo=false \
|
|
||||||
-Dwith-lua=lua53
|
|
||||||
|
|
||||||
override_dh_installchangelogs:
|
override_dh_installchangelogs:
|
||||||
set -eux; \
|
dh_installchangelogs debian/changelog.txt
|
||||||
for p in $$(dh_listpackages); do \
|
|
||||||
mkdir -p "debian/$$p/usr/share/doc/$$p"; \
|
|
||||||
dh_installchangelogs -p"$$p" debian/changelog.txt; \
|
udoc:
|
||||||
done
|
ifeq ($(git_checkout),true)
|
||||||
|
wget https://github.com/Zoitechat/documentation/raw/master/changelog.rst -O debian/changelog.txt
|
||||||
|
wget https://github.com/Zoitechat/documentation/raw/master/plugins.rst -O debian/plugins.txt
|
||||||
|
else
|
||||||
|
$(error you are running this outside of a git checkout; this is not what the maintainer expects)
|
||||||
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user