Skip to content

Commit

Permalink
Update debian build
Browse files Browse the repository at this point in the history
  • Loading branch information
mervick committed Dec 18, 2024
1 parent 3647ec2 commit de6bd68
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rhythmbox-telegram-plugin (1.0-1) stable; urgency=medium
rhythmbox-telegram-plugin (1.0) stable; urgency=medium

* Initial release.

Expand Down
3 changes: 2 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-3.
1 change: 1 addition & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

set -e
#DEBHELPER#

glib-compile-schemas /usr/share/glib-2.0/schemas/

Expand Down
9 changes: 9 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit de6bd68

Please sign in to comment.