From 7f2533c1be1b6eec476bc51b427f4c316b8107cc Mon Sep 17 00:00:00 2001 From: knotteye Date: Sun, 18 Apr 2021 19:40:58 -0500 Subject: [PATCH] Update deb skeleton --- deb/DEBIAN/control | 2 +- deb/DEBIAN/postinst | 8 ++++++-- deb/DEBIAN/postrm | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/deb/DEBIAN/control b/deb/DEBIAN/control index 8ba7514..c92192d 100644 --- a/deb/DEBIAN/control +++ b/deb/DEBIAN/control @@ -6,5 +6,5 @@ Architecture: linux-amd64 Description: A pleroma chat client Homepage: https://git.waldn.net/git/knotteye/plchat Maintainer: Knott Eye -Depends: python3 (>=3.8.0), PyQt5 (=5.15.2), dbus, libmagic1, python-pyqt5.qtmultimedia, libc6, libgstreamer-plugins-bad1.0-0, qtgstreamer-plugins-qt5 +Depends: python3 (~3.8), python3-pip(>=19.3), python3-venv, dbus, libmagic1, libc6, gstreamer1.0-nice, gstreamer1.0-libav, gstreamer1.0-plugins-bad, gstreamer1.0-plugins-good, gstreamer1.0-plugins-ugly, gstreamer1.0-qt5, gstreamer1.0-plugins-base, gstreamer1.0-python3-plugin-loader, bash Suggests: gnome-keyring (>= 2.30) diff --git a/deb/DEBIAN/postinst b/deb/DEBIAN/postinst index 484e476..dfde7ac 100755 --- a/deb/DEBIAN/postinst +++ b/deb/DEBIAN/postinst @@ -1,2 +1,6 @@ -#!/bin/sh -ln -sf /usr/lib/plchat/plchat /usr/bin/plchat +#!/bin/bash +mkdir -p /usr/lib/plchat +cd /usr/lib/plchat +python3 -m venv venv +source venv/bin/activate +pip3 install PyQt5==5.15.4 PyQt5-Qt5 PyQt5-sip certifi cryptography diff --git a/deb/DEBIAN/postrm b/deb/DEBIAN/postrm index 6599efe..c5dcca3 100755 --- a/deb/DEBIAN/postrm +++ b/deb/DEBIAN/postrm @@ -1,2 +1,3 @@ #!/bin/sh +rm -rf /usr/lib/plchat rm -f /usr/bin/plchat