1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tvheadend_ynh.git synced 2024-10-01 13:34:50 +02:00

Merge pull request #17 from orhtej2/patch-1

Let shipped `deb` pull its dependencies.
This commit is contained in:
Alexandre Aubin 2024-05-02 01:24:46 +02:00 committed by GitHub
commit c65980a3e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 56 deletions

View file

@ -7,7 +7,7 @@ name = "Tvheadend"
description.en = "TV streaming server and recorder" description.en = "TV streaming server and recorder"
description.fr = "Serveur de streaming et d'enregistrement TV" description.fr = "Serveur de streaming et d'enregistrement TV"
version = "4.3.2009~ynh11" version = "4.3.2323~ynh1"
maintainers = ["Sylvain Cecchetto"] maintainers = ["Sylvain Cecchetto"]
@ -50,14 +50,15 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
[resources] [resources]
[resources.sources.main_bullseye] [resources.sources.main_bullseye]
amd64.url = "https://dl.cloudsmith.io/public/tvheadend/tvheadend/deb/debian/pool/bullseye/main/t/tv/tvheadend_4.3-2192~gc9b38a81a~bullseye/tvheadend_4.3-2192~gc9b38a81a~bullseye_amd64.deb"
amd64.sha256 = "e8f027620c5af52a805809ff6b42ee321db775f92fb161a6e5875f936f577782" amd64.url = "https://dl.cloudsmith.io/public/tvheadend/tvheadend/deb/debian/pool/bullseye/main/t/tv/tvheadend_4.3-2323~g73a6bd00d~bullseye/tvheadend_4.3-2323~g73a6bd00d~bullseye_amd64.deb"
arm64.url = "https://dl.cloudsmith.io/public/tvheadend/tvheadend/deb/debian/pool/bullseye/main/t/tv/tvheadend_4.3-2192~gc9b38a81a~bullseye/tvheadend_4.3-2192~gc9b38a81a~bullseye_arm64.deb" amd64.sha256 = "71f4ee6ad921bbb41b77964b3022f6bb1463d32ca9d0cd401a446c029fa6651a"
arm64.sha256 = "f672912eb67fe3ac9d469c55d87ce2dde097d441413c862eef758e49b140c5a8" arm64.url = "https://dl.cloudsmith.io/public/tvheadend/tvheadend/deb/debian/pool/bullseye/main/t/tv/tvheadend_4.3-2192~gc9b38a81a~bullseye/tvheadend_4.3-2323~g73a6bd00d~bullseye_arm64.deb"
armhf.url = "https://dl.cloudsmith.io/public/tvheadend/tvheadend/deb/debian/pool/bullseye/main/t/tv/tvheadend_4.3-2192~gc9b38a81a~bullseye/tvheadend_4.3-2192~gc9b38a81a~bullseye_armhf.deb" arm64.sha256 = "cfc808ff03c1b2eb4fc7486fa7c1c5bd7b789f1d5d110a75cc8ef9b47b013004"
armhf.sha256 = "2b34f372c6272e47880555dd67a1aba23b0410d4b69d5aee41483829bcb3ef89" armhf.url = "https://dl.cloudsmith.io/public/tvheadend/tvheadend/deb/debian/pool/bullseye/main/t/tv/tvheadend_4.3-2192~gc9b38a81a~bullseye/tvheadend_4.3-2323~g73a6bd00d~bullseye_armhf.deb"
rename = "tvheadend.deb" armhf.sha256 = "48b75586c8117a46ef2cabbeb5b4b3e018b716c159851ad617ace1b9cabfdc91"
rename = "tvheadend.deb"
format = "whatever" format = "whatever"
extract = false extract = false
prefetch = false prefetch = false
@ -67,10 +68,11 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
autoupdate.asset.armhf = "tarball" autoupdate.asset.armhf = "tarball"
[resources.sources.main_bookworm] [resources.sources.main_bookworm]
amd64.url = "https://dl.cloudsmith.io/public/tvheadend/tvheadend/deb/debian/pool/bookworm/main/t/tv/tvheadend_4.3-2098~g44bf691ac~bookworm/tvheadend_4.3-2098~g44bf691ac~bookworm_amd64.deb" amd64.url = "https://dl.cloudsmith.io/public/tvheadend/tvheadend/deb/debian/pool/bookworm/main/t/tv/tvheadend_4.3-2323~g73a6bd00d~bookworm/tvheadend_4.3-2323~g73a6bd00d~bookworm_amd64.deb"
amd64.sha256 = "18a95b1d9c0556590a3089f48cf95d851069eaaba2f4066ea52da2b9d27f5920" amd64.sha256 = "656e0883952f3b797008133083c322e135c3ba0fc0d2d60dc14c6955f892f574"
rename = "tvheadend.deb" # Upstream has no arm64 / armhf build for bookworm ? :|
rename = "tvheadend.deb"
format = "whatever" format = "whatever"
extract = false extract = false
prefetch = false prefetch = false
@ -92,18 +94,3 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
main.default = 9981 main.default = 9981
stream.default = 9982 stream.default = 9982
stream.exposed = "TCP" stream.exposed = "TCP"
[resources.apt]
packages = [
"libavahi-client3",
"libavahi-common3",
"libc6",
"libdbus-1-3",
"libdvbcsa1",
"libpcre3",
"libssl1.1",
"libstdc++6",
"liburiparser1",
"zlib1g",
"bzip2",
]

View file

@ -1,24 +1,9 @@
#!/bin/bash #!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
debian=$(lsb_release --codename --short)
pkg_version_bullseye="4.3-2192~gc9b38a81a~bullseye"
pkg_version_bookworm="4.3-2098~g44bf691ac~bookworm"
pkg_version_name=pkg_version_$debian
pkg_version="${!pkg_version_name}"
#=================================================
# PERSONAL HELPERS
#=================================================
_install_tvheadend_package() { _install_tvheadend_package() {
# Download the package # Download the package
if [ ! -f "$install_dir/tvheadend.deb" ]; then if [ ! -f "$install_dir/tvheadend.deb" ]; then
ynh_setup_source --dest_dir="$install_dir" --source_id="main_$debian" ynh_setup_source --dest_dir="$install_dir" --source_id="main_$YNH_DEBIAN_VERSION"
fi fi
# Pre-seed debconf database with answers of the interactive dpkg # Pre-seed debconf database with answers of the interactive dpkg
@ -32,12 +17,6 @@ _install_tvheadend_package() {
chown -R "hts:video" "$data_dir" chown -R "hts:video" "$data_dir"
# The doc says it should be called only once,
# but the code says multiple calls are supported.
# Also, they're already installed so that should be quasi instantaneous.
ynh_install_app_dependencies \
tvheadend="$pkg_version"
# Mark packages as dependencies, to allow automatic removal # Mark packages as dependencies, to allow automatic removal
apt-mark auto tvheadend apt-mark auto tvheadend
@ -53,11 +32,3 @@ _uninstall_tvheadend_package() {
# Delete the system user created by the package # Delete the system user created by the package
deluser hts --remove-home deluser hts --remove-home
} }
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================