How to build an addon locally?

Hi
I would like to compile an Addon locally . The background is, that i have fixed a bug in an Addon from Github as the developer from the Addon no longer supports Kodi Leia.

I changed the package.mk file as follows (PKG_SHA256, PKG_SITE and PKG_URL):

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)

PKG_NAME="pvr.teleboy"
PKG_VERSION="18.2.3-Leia"
PKG_SHA256="3e69c43ac43fb98c00702cc513cefdb75a08b3b53352d5f1eff9dd76a372d8e0"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="/home/ubuntu/pvr.teleboy"
PKG_URL="/home/ubuntu/Teleboy.tar.gz"
PKG_DEPENDS_TARGET="toolchain kodi-platform"
PKG_SECTION=""
PKG_SHORTDESC="pvr.teleboy"
PKG_LONGDESC="pvr.teleboy"

PKG_IS_ADDON="yes"
PKG_ADDON_TYPE="xbmc.pvrclient"

So, if i execute the command PROJECT=Amlogic ARCH=arm scripts/create_addon pvr.teleboy i get following error:

GET pvr.teleboy (archive)
/home/ubuntu/Teleboy.tar.gz: Scheme missing.
--2021-11-09 03:55:36-- http://sources.libreelec.tv/mirror/pvr.teleboy/pvr.teleboy-18.2.3-Leia.tar.gz
Resolving [sources.libreelec.tv](http://sources.libreelec.tv/) ([sources.libreelec.tv](http://sources.libreelec.tv/))... 138.68.75.163
Connecting to [sources.libreelec.tv](http://sources.libreelec.tv/) ([sources.libreelec.tv](http://sources.libreelec.tv/))|138.68.75.163|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://sources.libreelec.tv/mirror/pvr.teleboy/pvr.teleboy-18.2.3-Leia.tar.gz [following]
--2021-11-09 03:55:36-- https://sources.libreelec.tv/mirror/pvr.teleboy/pvr.teleboy-18.2.3-Leia.tar.gz
Connecting to [sources.libreelec.tv](http://sources.libreelec.tv/) ([sources.libreelec.tv](http://sources.libreelec.tv/))|138.68.75.163|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-11-09 03:55:36 ERROR 404: Not Found. 

What does it mean with Scheme missing?

If i build another addon, with no adjustment in the package.mk, it works with no error.

Thanks for your help.

Change PKG_URL line with

GET_HANDLER_SUPPORT="file"
PKG_URL="file:///home/ubuntu/Teleboy.tar.gz"
*** compressing addon pvr.teleboy ... ***
*** creating  pvr.teleboy complete ***
[166/166] [DONE] build   pvr.teleboy

Yes, great :slight_smile: ! Thank you so much

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.