Skip to content

Commit

Permalink
21.04 packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ebruck committed Apr 17, 2021
1 parent f289e0b commit 4197a0c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
4 changes: 4 additions & 0 deletions package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ if (LSB_RELEASE_EXECUTABLE)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libbsd0, libcurl4, libjsoncpp1, libxdg-basedir1, libnotify4, python3-lxml, libglibmm-2.4-1v5, libboost-filesystem${BOOST_DEB_VERSION}, libboost-system${BOOST_DEB_VERSION}, libboost-log${BOOST_DEB_VERSION}, libboost-thread${BOOST_DEB_VERSION}, libboost-program-options${BOOST_DEB_VERSION}, libgstreamer1.0-0, libappindicator3-1, gstreamer1.0-plugins-good, gstreamer1.0-plugins-bad, gstreamer1.0-plugins-ugly, libwxgtk3.0-gtk3-0v5")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA ${PROJECT_SOURCE_DIR}/package/postinst;${PROJECT_SOURCE_DIR}/package/postrm;${PROJECT_SOURCE_DIR}/package/conffiles)

if (${RELEASE} STREQUAL "21.04")
string(REPLACE "libjsoncpp1" "libjsoncpp24" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS})
endif()

# no libcurl4 on Debian Stretch
# https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1754294
if (${RELEASE} STREQUAL "16.04" OR ${CODENAME} STREQUAL "stretch")
Expand Down
14 changes: 11 additions & 3 deletions package/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

set -e

gtk-update-icon-cache -f -t -q /usr/share/icons/breeze/
gtk-update-icon-cache -f -t -q /usr/share/icons/hicolor/
gtk-update-icon-cache -f -t -q /usr/share/icons/Yaru/
if [ -d "/usr/share/icons/breeze" ]; then
gtk-update-icon-cache -f -t -q /usr/share/icons/breeze/
fi

if [ -d "/usr/share/icons/hicolor" ]; then
gtk-update-icon-cache -f -t -q /usr/share/icons/hicolor/
fi

if [ -d "/usr/share/icons/Yaru" ]; then
gtk-update-icon-cache -f -t -q /usr/share/icons/Yaru/
fi

if [ -d "/usr/share/icons/ubuntu-mono-light" ]; then
gtk-update-icon-cache -f -t -q /usr/share/icons/ubuntu-mono-light/
Expand Down
14 changes: 11 additions & 3 deletions package/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

set -e

gtk-update-icon-cache -f -t -q /usr/share/icons/breeze/
gtk-update-icon-cache -f -t -q /usr/share/icons/hicolor/
gtk-update-icon-cache -f -t -q /usr/share/icons/Yaru/
if [ -d "/usr/share/icons/breeze" ]; then
gtk-update-icon-cache -f -t -q /usr/share/icons/breeze/
fi

if [ -d "/usr/share/icons/hicolor" ]; then
gtk-update-icon-cache -f -t -q /usr/share/icons/hicolor/
fi

if [ -d "/usr/share/icons/Yaru" ]; then
gtk-update-icon-cache -f -t -q /usr/share/icons/Yaru/
fi

if [ -d "/usr/share/icons/ubuntu-mono-light" ]; then
gtk-update-icon-cache -f -t -q /usr/share/icons/ubuntu-mono-light/
Expand Down

0 comments on commit 4197a0c

Please sign in to comment.