diff --git a/build-deb.sh b/build-deb.sh index b62d2cc..21639a5 100644 --- a/build-deb.sh +++ b/build-deb.sh @@ -32,10 +32,13 @@ rsync -a "${DEB_DIR}/debian/copyright" "${DATA_DIR}/copyright" # install plugin requirements pip3 install -r "${ROOT_DIR}/requirements.txt" -t "${DATA_DIR}/lib/lib" +# remove darwin tdlib +find "${DATA_DIR}/lib/lib" -name "libtdjson.dylib" -type f -delete # build deb pushd "${DEB_DIR}" find . | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf tar -czf "${ROOT_DIR}/build/${PACKAGE_NAME}_${VERSION}".orig.tar.gz "data/" +export DEB_DH_SHLIBDEPS_ARGS_ALL=--dpkg-shlibdeps-params=--ignore-missing-info debuild -us -uc popd diff --git a/debian/changelog b/debian/changelog index d5fd387..8d49557 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -rhythmbox-telegram-plugin (1.0-1) stable; urgency=medium +rhythmbox-telegram-plugin (1.0) stable; urgency=medium * Initial release. diff --git a/debian/control b/debian/control index 179a1ff..857c373 100644 --- a/debian/control +++ b/debian/control @@ -6,10 +6,11 @@ Standards-Version: 4.6.0 Homepage: https://github.com/mervick/rhythmbox-telegram Vcs-Git: https://github.com/mervick/rhythmbox-telegram.git Vcs-browser: https://github.com/mervick/rhythmbox-telegram +Build-Depends: debhelper (>= 13) Package: rhythmbox-telegram-plugin Version: {VERSION} -Depends: rhythmbox, python3, ${misc:Depends} +Depends: rhythmbox, python3, ${shlibs:Depends}, ${misc:Depends} Architecture: all Description: Telegram plugin for Rhythmbox Listen and download music from Telegram directly within Rhythmbox diff --git a/debian/copyright b/debian/copyright index c2c21af..4bddea9 100644 --- a/debian/copyright +++ b/debian/copyright @@ -20,3 +20,6 @@ License: GPL-3+ . You should have received a copy of the GNU General Public License along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-3. diff --git a/debian/postinst b/debian/postinst index bfaf4cd..084fc80 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,6 +1,7 @@ #!/bin/bash set -e +#DEBHELPER# glib-compile-schemas /usr/share/glib-2.0/schemas/ diff --git a/debian/rules b/debian/rules index 3d706f5..ec6a9b2 100755 --- a/debian/rules +++ b/debian/rules @@ -3,5 +3,14 @@ %: dh $@ +override_dh_makeshlibs: + dh_makeshlibs -V + override_dh_builddeb: dh_builddeb -- -Zgzip + +override_dh_strip: + dh_strip --exclude=libtdjson.so + +override_dh_shlibdeps: + dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info