1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kodi_ynh.git synced 2024-09-03 19:26:34 +02:00

cleaning up

This commit is contained in:
ericgaspar 2021-11-12 09:07:35 +01:00
parent 0e4f96b245
commit d65ef911de
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 29 additions and 30 deletions

1
doc/DESCRIPTION.md Normal file
View file

@ -0,0 +1 @@
Kodi is a media center and entertainment hub that brings all your digital media together. It is 100% free and open source, very customisable and runs on a wide variety of devices. Users can play and view most videos, music, podcasts, games and other digital media files from local and network storage media and the internet.

View file

@ -3,8 +3,8 @@
"id": "kodi", "id": "kodi",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "Transform your YunoHost server into media center with Kodi", "en": "Media center that brings all your digital media together",
"fr": "Transfromez votre serveur YunoHost en media center avec Kodi" "fr": "Centre multimédia qui rassemble tous vos médias numériques"
}, },
"version": "17.3~ynh1", "version": "17.3~ynh1",
"url": "https://kodi.tv", "url": "https://kodi.tv",
@ -21,7 +21,7 @@
"url": "blog.cecchettosylvain.fr" "url": "blog.cecchettosylvain.fr"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.1.3" "yunohost": ">= 4.2.3"
}, },
"multi_instance": false, "multi_instance": false,
"services": [ "services": [
@ -31,8 +31,7 @@
"install" : [ "install" : [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain"
"example": "example.com"
}, },
{ {
"name": "path", "name": "path",

View file

@ -19,6 +19,30 @@ package_check_dependencies="xserver-xorg-video-dummy"
# EXPERIMENTAL HELPERS # EXPERIMENTAL HELPERS
#================================================= #=================================================
# Check the architecture
#
# example: architecture=$(ynh_detect_arch)
#
# usage: ynh_detect_arch
#
# Requires YunoHost version 2.2.4 or higher.
ynh_detect_arch(){
local architecture
if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then
architecture="arm64"
elif [ -n "$(uname -m | grep 64)" ]; then
architecture="x86-64"
elif [ -n "$(uname -m | grep 86)" ]; then
architecture="i386"
elif [ -n "$(uname -m | grep arm)" ]; then
architecture="arm"
else
architecture="unknown"
fi
echo $architecture
}
#================================================= #=================================================
# FUTURE OFFICIAL HELPERS # FUTURE OFFICIAL HELPERS
#================================================= #=================================================

View file

@ -1,25 +0,0 @@
#!/bin/bash
# Check the architecture
#
# example: architecture=$(ynh_detect_arch)
#
# usage: ynh_detect_arch
#
# Requires YunoHost version 2.2.4 or higher.
ynh_detect_arch(){
local architecture
if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then
architecture="arm64"
elif [ -n "$(uname -m | grep 64)" ]; then
architecture="x86-64"
elif [ -n "$(uname -m | grep 86)" ]; then
architecture="i386"
elif [ -n "$(uname -m | grep arm)" ]; then
architecture="arm"
else
architecture="unknown"
fi
echo $architecture
}